PostgreSQL 8.3 query log configuration
You can enable PostgreSQL 8.3 to log all executed SQL queries by modifying the data/postgresql.conf
file.
The specific steps are as follows:
log_statement
parameter to 'all'
: This will enable logging of all SQL statements. log_destination
parameter is set to 'stderr'
or 'syslog'
to specify the log writing location. logging_collector
parameter to control the process of writing logs to the target location. log_directory
directory exists in the data directory and that the postgres user has write permissions. Other notes
log_directory
directory exists and that the postgres user has write permissions. The above is the detailed content of How Do I Enable Query Logging in PostgreSQL 8.3?. For more information, please follow other related articles on the PHP Chinese website!