Re: Replace run-time error check with assertion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Replace run-time error check with assertion
Дата
Msg-id 1210610.1621954283@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Replace run-time error check with assertion  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> In the attached patch, the error message was checking that the 
> structures returned from the parser matched expectations.  That's 
> something we usually use assertions for, not a full user-facing error 
> message.  So I replaced that with an assertion (hidden inside 
> lfirst_node()).

Works for me.  It's certainly silly to use a translatable ereport
rather than elog for this.

Localizing those variables some more looks sane too.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_rewind fails if there is a read only file.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CALL versus procedures with output-only arguments