Re: Missing errcode() in ereport

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missing errcode() in ereport
Дата
Msg-id 24281.1585540670@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Missing errcode() in ereport  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
Craig Ringer <craig@2ndquadrant.com> writes:
> I'd have found it helpful to just have the docs explain clearly how it
> works by chaining the comma operator using functions with ignored return
> values.

Want to write some text?

> That would also help people understand how they can make parts of an
> ereport conditional, e.g. only set errdetail() if there additional info is
> currently available W/O duplicating the rest of the ereport .

There are examples of that in the tree, of course, but maybe an
example in the docs wouldn't be bad either.

            regards, tom lane



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Missing errcode() in ereport
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Missing errcode() in ereport