pg_stat_statements doesn't track commit from pl/pgsql blocks

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_stat_statements doesn't track commit from pl/pgsql blocks
Date: 2019-02-17 21:52:07
Message-ID: 1550440327871-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Riaan Stander 2019-02-17 22:11:22 Table Inheritance and Foreign Keys
Previous Message Jeff Janes 2019-02-17 21:36:44 Re: [External] Re: FDW, too long to run explain