[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [GENERAL] [ADMIN] Backend crash
From:       Tom Lane <tgl () sss ! pgh ! pa ! us>
Date:       2004-05-31 4:30:58
Message-ID: 6969.1085977858 () sss ! pgh ! pa ! us
[Download RAW message or body]

"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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic