pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: David Lowry <dlowry@bju.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: way to turn off epochs in log_filename
Date: Fri, 26 Oct 2007 17:45:00 -0400
Message-ID: <27413.1193435100@sss.pgh.pa.us> (raw)
In-Reply-To: <20071026144005.3aa6cc29@scratch>
References: <E11307EB-94DF-4CDD-A89D-0C88A84F2B99@bju.edu>
	<26960.1193434395@sss.pgh.pa.us>
	<20071026144005.3aa6cc29@scratch>

"Joshua D. Drake" <jd@commandprompt.com> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If logrotate would work, we'd never have bothered writing our own
>> substitute.  But there's no way for logrotate to repoint postmaster's
>> stderr into other files.

> Uh... can't we just use copytruncate with logroate?

How's that going to reset the offsets in the stderr file descriptors of
the various PG processes?  There might be some platforms and
configurations where it will work, but I wouldn't tout it as a portable
approach.  I'd also suppose that there are race conditions involved:
you'll either lose or duplicate messages that are emitted while
copytruncate works.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <27413.1193435100@sss.pgh.pa.us>
Permalink:  ../27413.1193435100@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27413.1193435100@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jd@commandprompt.com, dlowry@bju.edu
  Subject: Re: way to turn off epochs in log_filename
  In-Reply-To: <27413.1193435100@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