pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: George Pavlov <gpavlov@mynewplace.com>
Cc: Ed L. <pgsql@bluepolka.net>
Cc: pgsql-general@postgresql.org
Subject: Re: query log corrupted-looking entries
Date: Thu, 07 Jun 2007 21:17:41 -0400
Message-ID: <11458.1181265461@sss.pgh.pa.us> (raw)
In-Reply-To: <8C5B026B51B6854CBE88121DBF097A86DEA716@ehost010-33.exch010.intermedia.net>
References: <29860.1161202644@sss.pgh.pa.us>
	<8C5B026B51B6854CBE88121DBF097A86C39FC2@ehost010-33.exch010.intermedia.net>
	<200705291119.55567.pgsql@bluepolka.net>
	<8C5B026B51B6854CBE88121DBF097A86CDD9A4@ehost010-33.exch010.intermedia.net>
	<24195.1180733773@sss.pgh.pa.us>
	<8C5B026B51B6854CBE88121DBF097A86CDD9D2@ehost010-33.exch010.intermedia.net>
	<24885.1180736713@sss.pgh.pa.us>
	<8C5B026B51B6854CBE88121DBF097A86CDDA32@ehost010-33.exch010.intermedia.net>
	<8C5B026B51B6854CBE88121DBF097A86DEA716@ehost010-33.exch010.intermedia.net>

"George Pavlov" <gpavlov@mynewplace.com> writes:
> I tried the patch and it has no effect whatsoever -- even with the
> patch, under the correct load the corrupted entries are coming fast and
> furious (I found a load profile on my app that reproduces these very
> clearly).

What are the total lengths of the log entries in which you see the
failure?  (The "length" here includes all the lines belonging to a
single logical entry, eg, ERROR, DETAIL, HINT.)

I believe that this shouldn't be happening except in the case in which
the entry-interpolated-into exceeds PIPE_BUF bytes.  I'm not entirely
sure what PIPE_BUF is on Linux machines, but IIRC the Posix spec says it
has to be at least 512, and on older Unix kernels it tends to be 8K.

			regards, tom lane



view thread (30+ messages)  latest in thread

Message-ID: <11458.1181265461@sss.pgh.pa.us>
Permalink:  ../11458.1181265461@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11458.1181265461@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gpavlov@mynewplace.com, pgsql@bluepolka.net, pgsql-general@postgresql.org
  Subject: Re: query log corrupted-looking entries
  In-Reply-To: <11458.1181265461@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