Re: trappable warnings, dynamic change of minimal level for PG_RE_THROW

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trappable warnings, dynamic change of minimal level for PG_RE_THROW
Дата
Msg-id 10639.1165349918@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trappable warnings, dynamic change of minimal level for PG_RE_THROW  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
> Current code in errfinish (elog.c) throw signal only when level is error.
> I have to dynamicly change this level for all sql/psm block. Can be solution 
> using of global variable? Like error_context_stack?

You certainly would not want to use TRY/CATCH to handle warnings,
because that way would cause the statement to be aborted before
completion, quite possibly without essential cleanup.  Another problem
is that the conditions you are interested don't produce elog messages at
all (and shouldn't).  You need a new mechanism for this, likely.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Configuring BLCKSZ and XLOGSEGSZ (in 8.3)
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: psql possible TODO