pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: System/IJS - Joko <system@ijs.co.id>
To: pgsql-performance@postgresql.org
Subject: Re: log_statement at postgres.conf
Date: Mon, 21 Jul 2008 13:35:20 +0700
Message-ID: <009b01c8eafb$f29fa9e0$12068cc0@edp03> (raw)
References: <01a601c8e7e9$41ad45d0$12068cc0@edp03>
	<b41c75520807170229x7768f6d3u68fb6369bafea270@mail.gmail.com>
	<Pine.LNX.4.64.0807171134490.17374@localhost>
	<014d01c8e899$dc597670$12068cc0@edp03>
	<Pine.LNX.4.64.0807181013150.14417@localhost>

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' ?
CMIIW

Regards,
Joko [SYSTEM]
PT. Indra Jaya Swastika
Phone: +62 31 7481388  Ext 201
http://www.ijs.co.id

--sorry for my bad english

----- Original Message ----- 
From: "Pomarede Nicolas" <npomarede@corp.free.fr>
To: "System/IJS - Joko" <system@ijs.co.id>
Cc: <pgsql-performance@postgresql.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@ijs.co.id
PT Indra Jaya Swastika | Jl. Kalianak Barat 57A | +62-31-7481388





view thread (7+ messages)  latest in thread

Message-ID: <009b01c8eafb$f29fa9e0$12068cc0@edp03>
Permalink:  ../009b01c8eafb$f29fa9e0$12068cc0@edp03/
Also on:    postgresql.org/message-id/009b01c8eafb$f29fa9e0$12068cc0@edp03

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: system@ijs.co.id
  Subject: Re: log_statement at postgres.conf
  In-Reply-To: <009b01c8eafb$f29fa9e0$12068cc0@edp03>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox