postgresql - Postgres not logging all queries, despite logging the duration -
i trying postgresql 9.3 server log sql runs longer 1 second. have set:
log_min_duration=1s log_statement='mod' log_duration=off for queries, logging working correclty, statements, such "create table as" or "insert" not logging statement. log duration, not complete sql.
has else seen type of issue before, or know why postgres may not logging sql? (possibly transaction block?) appreciated, thanks.
the correct parameter log_min_duration_statement , not log_min_duration.
and note, docs,
note: when using option log_statement, text of statements logged because of log_statement not repeated in duration log message. if not using syslog, recommended log pid or session id using log_line_prefix can link statement message later duration message using process id or session id.
consider explanation problem.
Comments
Post a Comment