Databases

Decision to Restart Postgresql Upon Configuration Change

How to determine whether Postgresql requires a restart upon configuration changes?

Decision to Restart Postgresql Upon Configuration Change
Photo by Emile Perron on Unsplash
select pending_restart , context , name, setting
from pg_catalog.pg_settings
where name = 'max_slot_wal_keep_size';
The outcome of the given query

when the context is postmaster, it requires a restart otherwise not.

You will immediately observe a change in the configuration when it does not require a restart as opposed to those that require a restart.

select pending_restart , context , name, setting
from pg_catalog.pg_settings
where context = 'postmaster';

Resources

Databases

10 stories
Essential metrics to monitor continuous archiving & point-in-time recovery
Restoring a node from backups stored in the AWS cloud
Want to connect?
https://anasanjaria.bio.link/
Want to subscribe to my newsletter?
https://medium.com/subscribe/@anasanjaria

--

--

Follow me for back-end development. https://anasanjaria.bio.link

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store