transaction logging in the form of SQL statements

Поиск
Список
Период
Сортировка
Искать

transaction logging in the form of SQL statements

От:
Omar Mehmood <omarmehmood@yahoo.com>
Дата:
Is there any way to enable transaction logging in the format of SQL statements for committed transactions only ?  In other words, a way to log all the SQL statements (including START TRANSACTION and COMMIT statements) for all committed mod type statements (INSERT UPDATE DELETE etc).

Thanks,
Omar


      

Re: transaction logging in the form of SQL statements

От:
AI Rumman <rummandba@gmail.com>
Дата:
Use
log_min_duration_statement=0
at postgresql.conf file to log every statement.

 
On Tue, Jan 12, 2010 at 7:50 AM, Omar Mehmood <omarmehmood@yahoo.com> wrote:
Is there any way to enable transaction logging in the format of SQL statements for committed transactions only ?  In other words, a way to log all the SQL statements (including START TRANSACTION and COMMIT statements) for all committed mod type statements (INSERT UPDATE DELETE etc).

Thanks,
Omar




--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Re: transaction logging in the form of SQL statements

От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
2010/1/12 Omar Mehmood :
> Is there any way to enable transaction logging in the format of SQL statements for committed transactions only ?  In other words, a way to log all the SQL statements (including START TRANSACTION and COMMIT statements) for all committed mod type statements (INSERT UPDATE DELETE etc).

no, you can log only all SQL statements.

Regards
Pavel Stehule

>
> Thanks,
> Omar
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
FAQ