elog in 7.4

Поиск
Список
Период
Сортировка
От Laszlo Hornyak
Тема elog in 7.4
Дата
Msg-id 414F3D36.50702@forgeahead.hu
обсуждение исходный текст
Ответы Re: elog in 7.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi!

I have a error callback function registered to run each time an SQL
error occurs. The problem is that the errfinish() calls it both if the
executed SQL statement was wrong, and if the statem,ent or plan logging
is enabled, and it seems elog.h doesn't provide the API to find out the
reason why my callback was called. I see that version 8.0 has lots of
improvements on this area.

Why does errfinish() do this? Will I break something if I modify it to
call the callbacks only on ERROR and FATAL events?

Thanks,
Laszlo


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disabling bgwriter on my notebook
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Disabling bgwriter on my notebook