Re: Log Query and Execution time

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Log Query and Execution time
Date: 2007-03-26 08:59:21
Message-ID: 20070326085921.GB10235@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Mon, dem 26.03.2007, um 15:45:07 +0700 mailte Luki Rustianto folgendes:
> Hi All,
>
> Is there is a way to log every SQL query on potgresql server and also
> their execution time?

Yes.

log_statement = 'all'
log_min_duration_statement = 0

(postgresql.conf)

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message filippo 2007-03-26 09:19:32 Re: shell script to SQL statement: `pg_dump | psql -U`
Previous Message Luki Rustianto 2007-03-26 08:45:07 Log Query and Execution time