Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 71E8FB5DBC5 for ; Fri, 10 Jun 2011 11:22:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 95213-04 for ; Fri, 10 Jun 2011 14:22:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174]) by mail.postgresql.org (Postfix) with ESMTP id 096DDB5DBCA for ; Fri, 10 Jun 2011 11:22:02 -0300 (ADT) Received: by wya21 with SMTP id 21so1894868wya.19 for ; Fri, 10 Jun 2011 07:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=GAmolM4MZ1SrP9/u2urVazw75EO3++M2ITzTQuFQur8=; b=m+V8TVf00nqwQWXrCRMwg+nMsoTq7ct08iv00rj1z1G8Vcm1GUZsEHU4QI9rYW6gDr H1XToF8s4F2sz2NA7Id7cLQTuEn1qR9HFuQmYmFs0Q5Clbj4xZG1rVCAU14XwSp/T1bx 4EEovbazqlSvdNpLnFBIZtQb+7YI5cyi1g2IQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qZNn/3JHDCatMAM6+asbS5sHVEJnm1+mM//8Q4I2DFQ3ZBMk7J2UHQzPUI86OO8nU/ QFG0lUWq3IUaNa68hJ4EMwyMkXU3sl+cVpwg4yK5aIqg3ZtCrAG3X6RupMsBH0iI5lEZ +D70hic4dlpoyMePwnWlWU8nh98+o5Ffo2uZE= Received: by 10.227.177.72 with SMTP id bh8mr2200987wbb.67.1307715722805; Fri, 10 Jun 2011 07:22:02 -0700 (PDT) Received: from [192.168.0.6] (gev44-1-78-228-108-65.fbx.proxad.net [78.228.108.65]) by mx.google.com with ESMTPS id fl19sm2063647wbb.49.2011.06.10.07.22.00 (version=SSLv3 cipher=OTHER); Fri, 10 Jun 2011 07:22:00 -0700 (PDT) Message-ID: <4DF22887.6020701@gmail.com> Date: Fri, 10 Jun 2011 16:21:59 +0200 From: Marc Cousin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110601 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #5741: syslog line length References: <201011021617.oA2GH8L6089397@wwwmaster.postgresql.org> In-Reply-To: <201011021617.oA2GH8L6089397@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.888 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201106/100 X-Sequence-Number: 30479 On 02/11/2010 17:17, heasley wrote: > The following bug has been logged online: > > Bug reference: 5741 > Logged by: heasley > Email address: heas@shrubbery.net > PostgreSQL version: 8.4 > Operating system: solaris > Description: syslog line length > Details: > > * Max string length to send to syslog(). Note that this doesn't count the > * sequence-number prefix we add, and of course it doesn't count the prefix > * added by syslog itself. On many implementations it seems that the > hard > * limit is approximately 2K bytes including both those prefixes. > */ > #ifndef PG_SYSLOG_LIMIT > #define PG_SYSLOG_LIMIT 1024 > #endif > > solaris' syslogd limits the line length to 1024, with a > FQDN and it's silly "msg ID" quite a bit is dropped by > syslogd. > I've been having the exact same problem with CentOS 5.5 these days (and a customer's Red Hat 5.4). This same problem occurs with sysklogd, which has a #define MAXLINE 1024 /* maximum line length */ Replacing sysklogd with rsyslog, metalog or syslog-ng solves the problem, as they all have 2048 for their buffer size. But CentOS and RedHat 5 both seem to have sysklogd as the default logger. I'll solve this by changing their logger, but I thought it would be worthy to mention.