Re: Missing errcode() in ereport

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Missing errcode() in ereport
Дата
Msg-id 20200320144202.GA25565@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Missing errcode() in ereport  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2020-Mar-19, Tom Lane wrote:

> I think the key decision we'd have to make to move forward on this
> is to decide whether it's still project style to prefer the extra
> parens, or whether we want new code to do without them going
> forward.  If we don't want to risk requiring __VA_ARGS__ for the
> old branches then I'd vote in favor of keeping the parens as
> preferred style, at least till v11 is out of support.  If we do
> change that in the back branches then there'd be reason to prefer
> to go without parens.  New coders might still be confused about
> why there are all these calls with the useless parens, though.

It seems fine to accept new code in pg14 without the extra parens.  All
existing committers are (or should be) used to the style with the
parens, so it's unlikely that we'll mess up when backpatching bugfixes;
and even if we do, the buildfarm would alert us to that soon enough.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Missing errcode() in ereport
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: range_agg