pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arthur Ward <award@dominionsciences.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: syslog enabled causes random hangs?
Date: Tue, 29 Jul 2003 18:56:40 -0400
Message-ID: <5212.1059519400@sss.pgh.pa.us> (raw)
In-Reply-To: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com>
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com>

"Arthur Ward" <award@dominionsciences.com> writes:
> I'm encountering strange hangs in postgresql backends at random moments.
> They seem to be associated with attempts to issue log entries via syslog.
> I have run backtraces on the hung backends a few times, and they routinely
> trace into system libraries where it looks like a stuck syslog call. So
> far, I haven't had this problem with any other apps, so I'm thinking it's
> a condition being aggravated by Postgres.

How verbose are your Postgres logging settings?

On most platforms I've dealt with, syslog drops messages on the floor if
it starts to get saturated.  It may be that the Linux implementation has
worse behavior than that under heavy load :-(.  In any case I'd suggest
filing a bug against syslog.  There's very little we can do about it if
the syslog library call hangs up.

Personally I find it more reliable to pipe the postmaster's stderr to
some sort of log-rotation program than to depend on syslog.  It seems
that the Apache folks have found the same, since they include a suitable
log-rotation filter in their distribution ...

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <5212.1059519400@sss.pgh.pa.us>
Permalink:  ../5212.1059519400@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5212.1059519400@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, award@dominionsciences.com
  Subject: Re: syslog enabled causes random hangs?
  In-Reply-To: <5212.1059519400@sss.pgh.pa.us>
  References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> <5212.1059519400@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