Re: AW: Shutdown term - Mailing list pgsql-hackers

From Thomas Swan
Subject Re: AW: Shutdown term
Date
Msg-id 5.0.2.1.0.20010314122925.027370f8@tangent.ics.olemiss.edu
Whole thread Raw
In response to Re: AW: Shutdown term  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
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...



pgsql-hackers by date:

Previous
From: "Martin A. Marques"
Date:
Subject: Re: database died
Next
From: Tom Lane
Date:
Subject: Re: Re: database died