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 1525903576324-0.post@n3.nabble.com
Whole thread Raw
In response to Re: pg_stat_statements : how to catch non successfully finishedstatements ?  (legrand legrand <legrand_legrand@hotmail.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Antonio Silva
Date:
Subject: Re: issues when installing postgres
Next
From: Adrian Klaver
Date:
Subject: Re: Error creating plpython3u extension