CertGrid CertGrid
Hands-on Lab·PostgreSQL

PostgreSQL Reload, Restart and pending_restart

Change shared_buffers, reload, and the value does not move - but pending_restart flips to t. The server is telling you it has accepted the change and is waiting for a restart to apply it.

Configuration Guide 14 of 47 Intermediate

pending_restart has been in pg_settings since 9.5. It is one of the most useful columns in the view and one of the least known.

Every command on this page ran on db-a01.
Server NameIP AddressOSRolesCPURAMHDD
db-a01192.168.0.81Ubuntu 26.04 LTSPrimary / Source / Replica Set Member 12 Core4 GB50 GB

This guide includes

Use this when a change is in the file and the running value has not moved. This matters because a reload cannot apply everything - and pending_restart is the server telling you exactly that.

Before you start

  1. Stage a change that a reload cannot apply

  2. Restart, and watch it apply

Official sources