pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Wed, 9 May 2018 15:06:16 -0700 (MST)
Message-ID: <1525903576324-0.post@n3.nabble.com> (raw)
In-Reply-To: <1525646770300-0.post@n3.nabble.com>
References: <1524774265469-0.post@n3.nabble.com>
	<20180427114503.GA12829@zakirov.localdomain>
	<1524946656214-0.post@n3.nabble.com>
	<3099.1524949133@sss.pgh.pa.us>
	<1525018491488-0.post@n3.nabble.com>
	<1525646770300-0.post@n3.nabble.com>

Hello,

Here is a patch that  :
- adds a new guc: pg_stat_statements.track_errors boolean (default to true),
- capture of DML, DDL, PL/PGSQL commands in error into pgss.

There is always a risk that new code used in PG_CATCH (mainly pgss_store)
gives an error.
I'm not able to tell when it could occur and what would be the impact ...

see
pgss_with_errors.patch
<http://www.postgresql-archive.org/file/t348768/pgss_with_errors.patch;  

pgss_with_errors.txt
<http://www.postgresql-archive.org/file/t348768/pgss_with_errors.txt;  

Regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




view thread (10+ messages)  latest in thread

Message-ID: <1525903576324-0.post@n3.nabble.com>
Permalink:  ../1525903576324-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1525903576324-0.post@n3.nabble.com

 · 

reply

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: <1525903576324-0.post@n3.nabble.com>
  References: <1524774265469-0.post@n3.nabble.com> <20180427114503.GA12829@zakirov.localdomain> <1524946656214-0.post@n3.nabble.com> <3099.1524949133@sss.pgh.pa.us> <1525018491488-0.post@n3.nabble.com> <1525646770300-0.post@n3.nabble.com> <1525903576324-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