Re: FATAL: terminating connection due to administrator

From: Richard Huxton <dev(at)archonet(dot)com>
To: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: FATAL: terminating connection due to administrator
Date: 2006-01-24 09:16:55
Message-ID: 43D5F087.70007@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

surabhi.ahuja wrote:
> The exact message i saw is this:
>
> LOG: received fast shutdown request LOG: aborting any active
> transactions FATAL: terminating connection due to administrator
> command
>
> so does this mean that someone is trying to stop postmaster by
> sending it a kill signal?

Someone or something. It can be Linux's out-of-memory facility picking
processes to kill. Google "oom killer" for discussion. It would need to
be sent from the postgres user or root though (or a process running as
them).

> i also have these questions:
>
> 1. many times i have seen two instances of postmaster running. how
> does that happen and how to prevent it from happening?

Shouldn't (unless you have two installations of course). You shouldn't
have to do anything to prevent it from happening. Try and capture
details of the processes with "ps aux" and "pstree" if you can.

> 2. into the logfile (which i specify at the time of starting
> postmaster), i want to add timestamps, for each log/warning etc. How
> do i do that?

See the manuals for details - run-time environment / error reporting and
logging.
http://www.postgresql.org/docs/

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-01-24 09:19:26 Re: Quoted NULLs with COPY FROM
Previous Message Martijn van Oosterhout 2006-01-24 09:15:42 Re: [HACKERS] [PATCH] Better way to check for getaddrinfo function.