Re: fix log_min_duration_statement logic error

From: ohp(at)pyrenet(dot)fr
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix log_min_duration_statement logic error
Date: 2003-10-05 17:38:38
Message-ID: Pine.UW2.4.53.0310051936420.21079@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Sun, 5 Oct 2003, Rod Taylor wrote:

> Date: Sun, 05 Oct 2003 13:05:32 -0400
> From: Rod Taylor <rbt(at)rbt(dot)ca>
> To: ohp(at)pyrenet(dot)fr
> Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>,
> Peter Eisentraut <peter_e(at)gmx(dot)net>, Neil Conway <neilc(at)samurai(dot)com>,
> PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
> Subject: Re: [PATCHES] fix log_min_duration_statement logic error
>
> > > That was true already with log_statement and log_duration as separate
> > > operations. People use log_pid to deal with it.
> > Sorry to jump in... the log_pid is NOT ENOUGH where you have more than
> > 30000 connections a day (witch is my case)
>
> log_pid isn't enough, but log_pid + log_connections certainly is.
>
> log_connections tells you when a new connection was made, so guessing
> isn't required.
>
> > There has been discussion as to have 1 Log file/database where are we on
> > that? Is it dead?
>
> Well, this wouldn't help either unless you happen to have several not so
> active databases that makes for a busy system.
>
Only that I could give the log file to the customer owning the database(s)
that would make my job esier.

Also I'd love to see the log_query being settable per database...

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-10-05 17:40:43 Re: fix log_min_duration_statement logic error
Previous Message Tom Lane 2003-10-05 17:35:04 Re: fix log_min_duration_statement logic error