dbTalk Databases Forums  

[BUGS] BUG #2180: log_statement=mod does not work

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2180: log_statement=mod does not work in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gilles
 
Posts: n/a

Default [BUGS] BUG #2180: log_statement=mod does not work - 01-19-2006 , 02:46 PM







The following bug has been logged online:

Bug reference: 2180
Logged by: Gilles
Email address: s_gilou (AT) yahoo (DOT) com
PostgreSQL version: 8.1.0
Operating system: Linux RedHat ES3
Description: log_statement=mod does not work
Details:

When I configure in the file postgresql.conf:
log_statement=mod
I don't have the update, delete, insert queries logged like it says in the
documentation :
http://www.postgresql.org/docs/8.1/i...g-logging.html

Could you tell me, what I need to do to get these queries logged?

Thanks
Gilles

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2180: log_statement=mod does not work - 01-19-2006 , 03:56 PM






"Gilles" <s_gilou (AT) yahoo (DOT) com> writes:
Quote:
When I configure in the file postgresql.conf:
log_statement=mod
I don't have the update, delete, insert queries logged like it says in the
documentation :
http://www.postgresql.org/docs/8.1/i...g-logging.html
Did you remember to do "pg_ctl reload" (or kill -HUP the postmaster)
after changing the config file? Perhaps you neglected to remove the #
comment marker from that line in the file?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
  #3  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] BUG #2180: log_statement=mod does not work - 01-19-2006 , 04:15 PM



On Wed, Jan 18, 2006 at 03:38:17PM +0000, Gilles wrote:
Quote:
When I configure in the file postgresql.conf:
log_statement=mod
I don't have the update, delete, insert queries logged like it says in the
documentation :
http://www.postgresql.org/docs/8.1/i...g-logging.html

Could you tell me, what I need to do to get these queries logged?
Works here. Did you restart or reload the server after making the
change? Are you sure you changed the right postgresql.conf (this can
be a problem if you have multiple versions of PostgreSQL installed)?
What does "SHOW log_statement" show? Are you sure you're looking in
the right log file? Do you see other log entries?

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.