Re: Trying to understand postgres crash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hanns Hartman <hwhartman(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trying to understand postgres crash
Date: 2011-12-22 18:14:56
Message-ID: 17136.1324577696@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hanns Hartman <hwhartman(at)gmail(dot)com> writes:
> On Thu, Dec 22, 2011 at 7:29 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Best guess is that something sent the background writer process a
>> SIGUSR2 signal.

> One other thought, my current setup mainly interacts with postgresql
> via libpq and very rarely via psql. I have four connections open to
> postgresql, two of which are connected to one database and two
> connected to another. Could that set up or some bad usage of libpq be
> leading to this signal being generated?

Shouldn't. You're not running the client-side code as the postgres
user, are you? Barring a surprising kernel bug, only postgres-owned
or root-owned processes could successfully issue kill(SIGUSR2) against
the background writer process, so that set of processes is where you
need to look. I'd first try getting rid of any operations that are
running under the postgres account but don't really need to do so.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hanns Hartman 2011-12-22 18:42:37 Re: Trying to understand postgres crash
Previous Message John R Pierce 2011-12-22 18:12:59 Re: Unable to connect to PostgreSQL server : Could not get socket error status