Re: Statement logging per connection

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: KÖPFERL Robert <robert(dot)koepferl(at)sonorys(dot)at>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Statement logging per connection
Date: 2005-07-21 14:50:24
Message-ID: 200507211450.j6LEoOb05603@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

KPFERL Robert wrote:
> Hi,
>
> is it possible to enable statement logging just for certain statements?
>
> several tries with SET xxx to yyy
> resulted in messages like xx can't be set now?
>
> When can it be set?

In 8.0 you can say:

SET log_statement = 'mod';

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Filipe Knoedt 2005-07-21 15:38:18 N-to-N implementation
Previous Message Brad Nicholson 2005-07-21 14:46:25 Re: PGSQL 7.4.8 : idle in transaction problem