pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: angshumitra ghosh <angshumitrag@hotmail.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Backend crash
Date: Mon, 31 May 2004 00:30:58 -0400
Message-ID: <6969.1085977858@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY7-F49JrI7CMLdtEX0003a0a0@hotmail.com>
References: <BAY7-F49JrI7CMLdtEX0003a0a0@hotmail.com>

"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



view thread (2+ messages)

Message-ID: <6969.1085977858@sss.pgh.pa.us>
Permalink:  ../6969.1085977858@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6969.1085977858@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, angshumitrag@hotmail.com, pgsql-general@postgresql.org
  Subject: Re: Backend crash
  In-Reply-To: <6969.1085977858@sss.pgh.pa.us>
  References: <BAY7-F49JrI7CMLdtEX0003a0a0@hotmail.com> <6969.1085977858@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox