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

Re: log_statement at postgres.conf

From: "System/IJS - Joko" <system(at)ijs(dot)co(dot)id>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: log_statement at postgres.conf
Date: 2008-07-21 06:35:20
Message-ID: 009b01c8eafb$f29fa9e0$12068cc0@edp03 (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Thx a lot Nicolas,

I finaly success to log query statement because of your simple explanation.
I have other question:
1. Is there posibility to automatically logging that statement to table?
2. All of that statement is come from every database on my server,
  could I know from which database that statement come?
  or at least I can filter to log only from database X ?
3. If I need to log only changed made on my database, then the value of 
'log_statement' is 'mod' ?

PT. Indra Jaya Swastika
Phone: +62 31 7481388  Ext 201

--sorry for my bad english

----- Original Message ----- 
From: "Pomarede Nicolas" <npomarede(at)corp(dot)free(dot)fr>
To: "System/IJS - Joko" <system(at)ijs(dot)co(dot)id>
Cc: <pgsql-performance(at)postgresql(dot)org>
Sent: Friday, July 18, 2008 3:16 PM
Subject: Re: [PERFORM] log_statement at postgres.conf

> There're 2 points in your question :
>  - what to log
>  - where to log
> To choose 'what' to log in your case, you can change 'log_statement' to 
> 'all'.
> Then, to choose 'where' to log, you can either use the proposal in the 
> first answer, or change 'log_destination' to 'stderr' and 
> 'redirect_stderr' to 'on'.
> Nicolas

If you have any problem with our services ,
please contact us at 70468146 or e-mail: helpdesk(at)ijs(dot)co(dot)id
PT Indra Jaya Swastika | Jl. Kalianak Barat 57A | +62-31-7481388

In response to


pgsql-performance by date

Next:From: Pomarede NicolasDate: 2008-07-21 08:27:35
Subject: Re: log_statement at postgres.conf
Previous:From: Greg SmithDate: 2008-07-20 23:12:28
Subject: Re: Performance on Sun Fire X4150 x64 (dd, bonnie++, pgbench)

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