pg_stat_statements doesn't track commit from pl/pgsql blocks - Mailing list pgsql-general

From legrand legrand
Subject pg_stat_statements doesn't track commit from pl/pgsql blocks
Date
Msg-id 1550440327871-0.post@n3.nabble.com
Whole thread Raw
Responses Re: pg_stat_statements doesn't track commit from pl/pgsql blocks  (Bruce Momjian <bruce@momjian.us>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: [External] Re: FDW, too long to run explain
Next
From: "Riaan Stander"
Date:
Subject: Table Inheritance and Foreign Keys