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

log_statement not working on pl/pgsql functions

From: "Fernando Moreno" <azazel(dot)7(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: log_statement not working on pl/pgsql functions
Date: 2008-08-28 21:41:14
Message-ID: b1c45530808281441r3ebb5e44hc55d7a827ad542c8@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Hi, I've changed the setting log_statement to mod, in order to log data
modifications, and it's working fine with sentences sent by the client
application (psql included), but insert/update/delete sentences executed
inside functions are not logged. Functions are called in a select query.

I've reloaded (even restarted) the server, the line with the setting is
uncommented and "show log_statement" returns "mod". I changed its value to
"all" for a while and it worked as expected, logging every single query. By
the way, I'm using Postgresql 8.3.1 on window xp.

Am I doing something wrong?

Responses

pgsql-general by date

Next:From: Scott MarloweDate: 2008-08-28 22:06:14
Subject: Re: MySQL LAST_INSERT_ID() to Postgres
Previous:From: Raymond O'DonnellDate: 2008-08-28 21:40:05
Subject: Re: ERROR: relation . . . does not exist

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