Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Palle Girgensohn <girgen(at)partitur(dot)se>
Cc: pgsql-ports(at)postgresql(dot)org, "PostgreSQL::General List" <pgsql-general(at)postgresql(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)
Date: 2000-05-22 21:58:33
Message-ID: Pine.LNX.4.21.0005222353580.392-100000@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-announcepgsql-generalpgsql-hackerspgsql-ports
Palle Girgensohn writes:

> > > The real problem with redirecting the postmaster output is the issue
> > > of log rolling,

> I really enjoy using apache's rotatelogs program. stderr is
> redirected through a pipe to a very small and robust C program,
> rotatelogs, that takes as arguments number of seconds between
> log rotates and the log filename. Logs are rotated every
> argv[2] seconds. The rotatelogs program takes care of closing
> and reopening, and nothing has to done from the application,
> just start postmaster with '2>&1 | rotatelogs ...' at the end,
> and log to stderr.

Now there's a good idea. Why don't we abduct that program and teach pg_ctl
about it. (After all, we abducted that one as well. :)


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e(at)gmx(dot)net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


In response to

Responses

pgsql-ports by date

Next:From: Murad NayalDate: 2000-05-22 22:33:05
Subject: Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Murad NayalDate: 2000-05-22 21:28:16
Subject: Re: port v7.0 to SGI-IRIX-6.5.7/64

pgsql-hackers by date

Next:From: Murad NayalDate: 2000-05-22 22:33:05
Subject: Re: port v7.0 to SGI-IRIX-6.5.7/64
Previous:From: Peter EisentrautDate: 2000-05-22 21:58:21
Subject: Re: Last call for comments: fmgr rewrite [LONG]

pgsql-announce by date

Next:From: Roderick A. AndersonDate: 2000-05-22 23:13:31
Subject: Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)
Previous:From: Palle GirgensohnDate: 2000-05-22 15:02:37
Subject: Re: [PORTS] Logging (was Re: PostgreSQL 7.0-2 RPMset released.)

pgsql-general by date

Next:From: Bruce MomjianDate: 2000-05-22 22:22:36
Subject: Re: loading data from flat text file
Previous:From: Voitenko, DenisDate: 2000-05-22 21:14:33
Subject: loading data from flat text file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group