I modified the parameter maintenance_work_mem in postgresql.conf in my production environment. I'd like to know if I send a SIGHUP to the postgres process it will reload that variable, and if it's safe for such environment.
From the manpage:
The SIGHUP signal will reload the server configuration files. It is also possible to send SIGHUP to an individual server process, but that is usually not sensible.
So it should work. In general you can use the
reload command of a service's initscript in order to trigger a reload (which may or may not use SIGHUP as the mechanism). If the service doesn't support this the initscript should report an error, so this is fairly safe to try.
You can also use a SQL statement to reload the configuration:
You need superuser permissions.