pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 14:40:05 -0700
Message-ID: <20071026144005.3aa6cc29@scratch> (raw)
In-Reply-To: <26960.1193434395@sss.pgh.pa.us>
References: <E11307EB-94DF-4CDD-A89D-0C88A84F2B99@bju.edu>
	<26960.1193434395@sss.pgh.pa.us>

On Fri, 26 Oct 2007 17:33:15 -0400
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> David Lowry <dlowry@bju.edu> writes:
> > The docs state that if there are no %-escapes in log_filename,
> > then it will add the epoch onto the end of the log filename. Is
> > there any way to turn off this behavior and just use the filename
> > specified in log_filename? I'd like have all the log data written
> > to a file like postgresql.log and let logrotate do the rotation.
> 
> 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? That way
we don't have to repoint. That is how we do it anyway... Or am I missing
something?

Joshua D. Drake


> 
> 			regards, tom lane
> 
> ---------------------------(end of
> broadcast)--------------------------- TIP 1: if posting/reading
> through Usenet, please send an appropriate subscribe-nomail command
> to majordomo@postgresql.org so that your message can get through to
> the mailing list cleanly
> 


-- 

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
			UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (9+ messages)  latest in thread

Message-ID: <20071026144005.3aa6cc29@scratch>
Permalink:  ../20071026144005.3aa6cc29@scratch/
Also on:    postgresql.org/message-id/20071026144005.3aa6cc29@scratch

 · 

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: jd@commandprompt.com, tgl@sss.pgh.pa.us, dlowry@bju.edu
  Subject: Re: way to turn off epochs in log_filename
  In-Reply-To: <20071026144005.3aa6cc29@scratch>

* 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