Re: Backend crash - Mailing list pgsql-admin

From Tom Lane
Subject Re: Backend crash
Date
Msg-id 6969.1085977858@sss.pgh.pa.us
Whole thread Raw
In response to Backend crash  ("angshumitra ghosh" <angshumitrag@hotmail.com>)
List pgsql-admin
"angshumitra ghosh" <angshumitrag@hotmail.com> writes:
> Can anyone please tell me why postmaster is shutting down ?   What all
> causes the SIGINT signal to be sent to postmaster that causes rollback of
> open transactions and  disconnection of open connections ?

I suspect that you are doing something roughly along the lines of

    postmaster ... &

    psql ...

    ^C

When you launch the postmaster from an interactive session, it is still
susceptible to being SIGINT'd by your shell unless you take steps to
prevent that.  When I need to manually launch a postmaster, I usually
do this sort of thing:

    nohup postmaster ...args... </dev/null >logfile 2>&1 &

The combination of nohup and making sure that none of stdin, stdout,
stderr are still connected to your terminal is enough to disconnect
the postmaster from your shell session in the Unixen that I've used.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Can't restore from pg_dump. Authentication failed
Next
From: Tom Lane
Date:
Subject: Re: determining when a database was created