X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8C1C4D1C7F7 for ; Tue, 29 Jul 2003 22:56:45 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 04492-05 for ; Tue, 29 Jul 2003 19:55:47 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 57DE0D1C7F5 for ; Tue, 29 Jul 2003 19:56:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6TMueQ3005213; Tue, 29 Jul 2003 18:56:40 -0400 (EDT) To: "Arthur Ward" Cc: pgsql-admin@postgresql.org Subject: Re: syslog enabled causes random hangs? In-reply-to: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> Comments: In-reply-to "Arthur Ward" message dated "Tue, 29 Jul 2003 17:13:42 -0500" Date: Tue, 29 Jul 2003 18:56:40 -0400 Message-ID: <5212.1059519400@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/306 X-Sequence-Number: 9646 "Arthur Ward" 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