Duration logged but not the statement — postgresql. Are there any specific queries for this behavior?

后端 未结 1 611
清酒与你
清酒与你 2020-12-12 00:26

I have the following setting in my postgresql.conf

log_statement=\'all\'
log_duration=on

When I run psql, and run any query li

相关标签:
1条回答
  • 2020-12-12 00:44

    But after that it logs two more durations, whose statement is not printed.

    These are probably the parse, bind and execute durations for the three phases of statement execution, if you have log_duration = on. It's only done in three phases via client applications - psql runs in a single go.

    If you just want the total, use log_min_duration_statement = 0 instead.

    Yes, that's confusing. Maybe it's worth writing it up and submitting it as a usability problem report to pgsql-general.

    0 讨论(0)
提交回复
热议问题