Re: pg_stat_statements : how to catch non successfully finishedstatements ? - Mailing list pgsql-general

From legrand legrand
Subject Re: pg_stat_statements : how to catch non successfully finishedstatements ?
Date
Msg-id 1524946656214-0.post@n3.nabble.com
Whole thread Raw
In response to Re: pg_stat_statements : how to catch non successfully finishedstatements ?  (Arthur Zakirov <a.zakirov@postgrespro.ru>)
Responses Re: pg_stat_statements : how to catch non successfully finished statements ?
List pgsql-general
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


pgsql-general by date:

Previous
From: "g@luxsci.net"
Date:
Subject: Re: Rationale for aversion to the central database?
Next
From: Tom Lane
Date:
Subject: Re: pg_stat_statements : how to catch non successfully finished statements ?