From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: [proposal] pg_stat_statements: extension timing instrumentation
Date: Sun, 21 Oct 2018 15:14:30 -0700 (MST)
Message-ID: <1540160070161-0.post@n3.nabble.com> (raw)
In-Reply-To: <1538225322173-0.post@n3.nabble.com>
References: <1538225322173-0.post@n3.nabble.com>
An other way is to use "waits" reporting ...
something like :
pgss_store (...)
pgstat_report_wait_start(PG_WAIT_EXTENSION);
...
pgstat_report_wait_end();
gives waits of type "Extension", name "Extension" when spending time in this
part of pgss.
This can help those working with waits sampling
as found in pg_stat_activity, pg_wait_sampling or pgsentinel.
note: some of the contentions are already reported as "LWLock" /
"pg_stat_statements"
Regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: legrand_legrand@hotmail.com
Subject: Re: [proposal] pg_stat_statements: extension timing instrumentation
In-Reply-To: <1540160070161-0.post@n3.nabble.com>
References: <1538225322173-0.post@n3.nabble.com> <1540160070161-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox