I have the following setting in my postgresql.conf
log_statement=\'all\'
log_duration=on
When I run psql, and run any query li
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.