Hello,
It seems that pgss doesn't track commit (nor rollback) commands from
pl/pgsql blocks.
using psql in version 11.1:
select pg_stat_statements_reset();
do $$ begin commit; end $$;
select calls,query from pg_stat_statements;
...
I don't know how difficult it would be to fix it,
but this could help in trouble shouting.
Regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html