pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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, 7 Jun 2007 21:32:01 -0400
Message-ID: <20070608013201.GD20828@alvh.no-ip.org> (raw)
In-Reply-To: <11458.1181265461@sss.pgh.pa.us>
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>
	<11458.1181265461@sss.pgh.pa.us>

Tom Lane wrote:
> "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.

4096, although for some archs it may be bigger (it's the page size).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (30+ messages)  latest in thread

Message-ID: <20070608013201.GD20828@alvh.no-ip.org>
Permalink:  ../20070608013201.GD20828@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070608013201.GD20828@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, 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: <20070608013201.GD20828@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