From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_stat_statements : how to catch non successfully finished statements ?
Date: Sat, 28 Apr 2018 13:17:36 -0700 (MST)
Message-ID: <1524946656214-0.post@n3.nabble.com> (raw)
In-Reply-To: <20180427114503.GA12829@zakirov.localdomain>
References: <1524774265469-0.post@n3.nabble.com>
<20180427114503.GA12829@zakirov.localdomain>
OK I see ...
This hook should be used only for ERROR (no WARNING nor NOTICE ...)
and the only real interesting information is
ErrorData -> internalquery; /* text of internally-generated query */
This doesn't permit to (re)build the link to queryid
(that is based on parse tree, but not available here)
So the only solution is to had queryId to ErrorData in this hook
or create a new hook fired on ERROR and containing queryId ?
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: pg_stat_statements : how to catch non successfully finished statements ?
In-Reply-To: <1524946656214-0.post@n3.nabble.com>
References: <1524774265469-0.post@n3.nabble.com> <20180427114503.GA12829@zakirov.localdomain> <1524946656214-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