Postgres turn on log_statement programmatically
Posted
by rwallace
on Stack Overflow
See other posts from Stack Overflow
or by rwallace
Published on 2010-05-22T15:06:26Z
Indexed on
2010/05/22
15:10 UTC
Read the original article
Hit count: 180
I want to turn on logging of all SQL statements that modify the database. I could get that on my own machine by setting the log_statement flag in the configuration file, but it needs to be enabled on the user's machine. How do you enable it from program code? (I'm using Python with psycopg2 if it matters.)
© Stack Overflow or respective owner