Re: AW: More on elog and error codes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: AW: More on elog and error codes
Дата
Msg-id 11498.985109378@sss.pgh.pa.us
обсуждение исходный текст
Ответ на AW: More on elog and error codes  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
Список pgsql-hackers
Zeugswetter Andreas SB  <ZeugswetterA@wien.spardat.at> writes:
> PGELOG(ERROR, PGSQLSTATE_TYPE, ("type %s cannot be created because it already exists", ...))

> put varargs into parentheses to avoid need for ... macros see Tom's proposal

I'd be inclined to make it

PGELOG((ERROR, PGSQLSTATE_TYPE, "type %s cannot be created because it already exists", ...))

The extra parens are ugly and annoying in any case, but they seem
slightly less so if you just double the parens associated with the
PGELOG call.  Takes less thought than adding a paren somewhere in the
middle of the call.  IMHO anyway...
        regards, tom lane


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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: AW: Re: More on elog and error codes
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Final Call: RC1 about to go out the door ...