Remotely reload server config?

Started by Tony Cadutoover 20 years ago3 messagesgeneral
Jump to latest
#1Tony Caduto
tony_caduto@amsoftwaredesign.com

Does anyone know if there is a way to reload the server config remotely
via a sql command?

I looked through the docs, but may have missed it.

Thanks,

Tony

#2Florian Pflug
fgp@phlo.org
In reply to: Tony Caduto (#1)
Re: Remotely reload server config?

Tony Caduto wrote:

Does anyone know if there is a way to reload the server config remotely
via a sql command?

I looked through the docs, but may have missed it.

AFAIK thats not possible with postgresql out-of-the-box.

The latest pgadminIII release (1.4), however, includes some
server-side funktions that allow remotely editing the config
file, and also allow restarting the server i believe.

You'd have to install those funktions into some database
on your server.

greetings, Florian Pflug

#3Bruce Momjian
bruce@momjian.us
In reply to: Florian Pflug (#2)
Re: Remotely reload server config?

Florian G. Pflug wrote:

Tony Caduto wrote:

Does anyone know if there is a way to reload the server config remotely
via a sql command?

I looked through the docs, but may have missed it.

AFAIK thats not possible with postgresql out-of-the-box.

The latest pgadminIII release (1.4), however, includes some
server-side funktions that allow remotely editing the config
file, and also allow restarting the server i believe.

You'd have to install those funktions into some database
on your server.

PostgreSQL 8.1 RC1 has pg_reload_conf() which does what you want.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073