From: | "Cory Vokey" <cvokey(at)gmail(dot)com> |
---|---|
To: | "Guido Barosio" <gbarosio(at)gmail(dot)com> |
Cc: | "Scott Marlowe" <smarlowe(at)g2switchworks(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Postgres process terminating |
Date: | 2006-03-15 02:31:10 |
Message-ID: | 68df54b40603141831o593b46e8te81d2dab811c5d94@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On 3/14/06, Guido Barosio <gbarosio(at)gmail(dot)com> wrote:
>
> Indeed, from the pg_ctl man pages:
>
> ``Immediate'' mode will abort all server processes without a clean
> shutdown. This will lead to a recovery run on restart.
>
> Regards,
> Guido Barosio
>
> On 3/14/06, Scott Marlowe <smarlowe(at)g2switchworks(dot)com> wrote:
> > On Tue, 2006-03-14 at 14:05, Guido Barosio wrote:
> > > Hi Cory,
> > >
> > > Actually it seems that the database wasn't shut down properly, and
> > > while it was doing the recovery, it refused connections. Expected and
> > > what needs to happen, indeed.
> > >
> > > That's why if you are a client about to connect, you'll recieve the "
> > > FATAL ...database is starting up " message.
> > >
> > > Ideally, you (the dba) should let the server end this task (the
> > > recovery). AFAIK, the recovery started as a consecuence of dirty data
> > > somewere, probably a big transaction not comitted when the server went
> > > off.
> > >
> > > Are you aware of a shutdown prior to this messages?
> > >
> > > Nothing to do with your current issue, but you will receive comments
> > > related with your pgsql version if you are not using a pgsql 8 :)
> >
> > As mentioned, this is normal operation.
> >
> > Note that the command:
> >
> > pg_ctl -m immediate stop
> >
> > will cause a recovery. It's pretty much a functional equivalent of
> > senting kill -9 to all backends and the postmaster at once. Brutal but
> > effective.
> >
>
>
> --
> /"\ ASCII Ribbon Campaign .
> \ / - NO HTML/RTF in e-mail .
> X - NO Word docs in e-mail .
> / \ -----------------------------------------------------------------
>
Ok, thanks a lot guys.
It seems that I should have brought the database down to "local access" mode
via pg_hba.conf and allow all transactions to fully recover before starting
up replication or allowing other applications to access the db.
Have a good night all!
--
Cory Vokey
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2006-03-15 04:27:24 | Re: Wisconsin Circuit Court Access (WCCA) on |
Previous Message | Bruno Wolff III | 2006-03-15 02:02:08 | Re: Wisconsin Circuit Court Access (WCCA) on |