Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CA7C11337B54 for ; Fri, 24 Sep 2010 01:21:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34313-08 for ; Fri, 24 Sep 2010 04:21:34 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 57D0D1337B53 for ; Fri, 24 Sep 2010 01:21:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o8O4LWje005957; Fri, 24 Sep 2010 00:21:32 -0400 (EDT) To: Evan Rempel cc: "pgsql-admin@postgresql.org" Subject: Re: Syslog line wrapping In-reply-to: References: Comments: In-reply-to Evan Rempel message dated "Thu, 23 Sep 2010 20:55:10 -0700" Date: Fri, 24 Sep 2010 00:21:32 -0400 Message-ID: <5956.1285302092@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/142 X-Sequence-Number: 35686 Evan Rempel writes: > I am running Postgresql 8.3 and would like to get postgres to > NOT wrap the syslog lines. Is ther any configuration to do this. > Perhaps I can wrap them at a very large line number? The problem we're up against is explained in src/backend/utils/error/elog.c: * Our problem here is that many syslog implementations don't handle long * messages in an acceptable manner. While this function doesn't help that * fact, it does work around by splitting up messages into smaller pieces. If you are fortunate enough to have a less-broken-than-average syslog facility, you could increase the PG_SYSLOG_LIMIT constant defined there. On the whole, though, I'd suggest not depending on syslog. It has other issues besides this one, like sometimes losing messages entirely. regards, tom lane