From: Alvaro Herrera <alvherre@commandprompt.com>
To: Michael Monnerie <michael.monnerie@it-management.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: syslog: log line length?
Date: Wed, 18 Jul 2007 11:05:01 -0400
Message-ID: <20070718150501.GD6651@alvh.no-ip.org> (raw)
In-Reply-To: <200707181256.58191@zmi.at>
References: <200706292005.22378@zmi.at>
<200707181256.58191@zmi.at>
Michael Monnerie wrote:
> On Freitag, 29. Juni 2007 Michael Monnerie wrote:
> > I have most entries split over several lines:
> >
> > Jun 29 19:56:40 db.xxx.xxx postgres[10640]: [5-1] DB=XXX U=XXX
> > H=1.1.1.1 16854186.2190 idleLOG: Verbindungsende: Sitzungszeit:
> > 0:01:22.10 Jun 29 19:56:40 db.xxx.xxx postgres[10640]: [5-2]
> > Benutzer=xxx Datenbank=xxxx Host=1.1.1.1 port=23640
> >
> > Is it possible to tell postgres to split entries only after 200
> > chars, not already at about 80? 200 should fit most log lines into
> > one entry.
Postgres does not split entries. They are split by infelicities in the
underlying facilities used (pipes). There's ongoing work to fix this
problem. In the meantime, I think you could work around it by using
syslog instead of redirect_stderr.
--
Alvaro Herrera http://www.PlanetPostgreSQL.org/
"La primera ley de las demostraciones en vivo es: no trate de usar el sistema.
Escriba un guión que no toque nada para no causar daños." (Jakob Nielsen)
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@commandprompt.com, michael.monnerie@it-management.at
Subject: Re: syslog: log line length?
In-Reply-To: <20070718150501.GD6651@alvh.no-ip.org>
* 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