Re: Tracking SQLs that update data - Mailing list pgsql-general

From Phoenix Kiula
Subject Re: Tracking SQLs that update data
Date
Msg-id AANLkTinWBv28ozTNWfHhHwqV8u6LDEYYylxZCNgAPu9-@mail.gmail.com
Whole thread Raw
In response to Re: Tracking SQLs that update data  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Tracking SQLs that update data
List pgsql-general
> It's far easier to adjust the logging.
>
> psql mydb
> alter mydb set log_statement='mod';



Thanks Scott.

Two questions:

1. Will this log_statement='mod' be a permanent thing, or when I have
done my testing and identifying the problem SQL, I can set it back to
default so not too much logging is being done?

2. After this statement, how or where do I find the culprit SQL?

Thanks

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: use window as field name in 8.4
Next
From: Martin Gainty
Date:
Subject: Re: [Blatant Alias Abuse] Anyone want to help out with a coding problem?