Re: pg_stat_statements : how to catch non successfully finishedstatements ?

Поиск
Список
Период
Сортировка
Искать
От
Arthur Zakirov
Тема
Re: pg_stat_statements : how to catch non successfully finishedstatements ?
Дата
Msg-id
20180427114503.GA12829@zakirov.localdomain
Ответ на
Список
Дерево обсуждения
pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? Arthur Zakirov <a.zakirov@postgrespro.ru>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finished statements ? Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Re: pg_stat_statements : how to catch non successfully finished statements ? Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_stat_statements : how to catch non successfully finishedstatements ? legrand legrand <legrand_legrand@hotmail.com>
Hello,

On Thu, Apr 26, 2018 at 01:24:25PM -0700, legrand legrand wrote:
> Hello all,
> 
> I was wondering if there is a hook to collect non successfully finished SQL
> statements in pg_stat_statements (timed-out, cancelled, killed, or simply
> errored) ?

Some time ago I looked for a such hook. My case was to log failed access
permissions checks. I didn't find a way to do it, except adding a
narrow-focused hook within ExecCheckRTPerms().

There is ErrorContextCallback. Context callbacks are called when an
error was raised. But I don't think that it is a good approach for
pg_stat_statements cases.

-- 
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company

В списке pgsql-general по дате отправления
От: Olivier Macchioni
Дата:
От: Steven Lembark
Дата:
FAQ