At 3/14/2001 11:13 AM, Peter Eisentraut wrote:
>Thomas Swan writes:
>
> > It may seem stupid but I was thinking the reason could be an argument to
> > the pg_ctl program with a default of (Database Shutdown).
> >
> > pg_ctl stop --message="System going down for a reboot"
> > or
> > pg_ctl stop -msg "System upgrade. System will be available again at 5:00am"
>
>I foresee a PQmotd(PGconn *) function ... ;-)
Well, I also thought you could use the same method to do a warning.
pg_ctl --message="Database going offline in 5 minutes"
or something along those lines...