Re: [GENERAL] log sql?

Поиск
Список
Период
Сортировка
Искать
От
scott.marlowe
Тема
Re: [GENERAL] log sql?
Дата
Msg-id
Pine.LNX.4.44.0207301221580.21839-100000@css120.ihs.com
Ответ на
Re: [GENERAL] log sql? (Andrew Sullivan)
Список
Дерево обсуждения
Re: [GENERAL] log sql? Robert Treat <xzilla@users.sourceforge.net>
Re: [GENERAL] log sql? Laurette Cisneros <laurette@nextbus.com>
Re: [GENERAL] log sql? <mallah@trade-india.com>
Re: [GENERAL] log sql? Laurette Cisneros <laurette@nextbus.com>
Re: [GENERAL] log sql? Andrew Sullivan <andrew@libertyrms.info>
Re: [GENERAL] log sql? "scott.marlowe" <scott.marlowe@ihs.com>
On Tue, 30 Jul 2002, Andrew Sullivan wrote:

> On Tue, Jul 30, 2002 at 09:53:23AM -0700, Laurette Cisneros wrote:
> > Yes indeed...the size has reach 9.6M in 15 minutes...it is spewing a lot of
> > info.  Hmmm....
> 
> You really need some mechanism for rotating your logs if you are
> going to use them.  Otherwise, they become too unwieldy.

If one has apache installed, one has the mechanism installed.  Apache has 
a nice little log rotation utility called rotatelogs that can used for 
this purpose, just put it into the path of the postgres user and start the 
database like so:

pg_ctl start | rotatelogs "$PGDATA/logs/pgsql" 86400 &

where $PGDATA/logs is a directory you made and pgsql will be the name all 
your log files start with.

В списке pgsql-admin по дате отправления
От: Achilleus Mantzios
Дата:
Сообщение: Re: [SQL] 3-tier
От: Murthy Kambhampaty
Дата:
FAQ