Re: elog() proposal

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: elog() proposal
Дата
Msg-id
200202230057.g1N0vsr19243@candle.pha.pa.us
Ответ на
Список
Дерево обсуждения
Re: elog() proposal Thomas Lockhart <thomas@fourpalms.org>
Tom Lane wrote:
> Bruce Momjian  writes:
> > OK, so elog(ERROR, ...) and PGError(msg, ...) would be the same.  Makes
> > sense.  Should we consider hiding these in macros so they really still
> > call elog(ERROR, ...) for backward compatiblity?
> 
> I would love to make them macros, but I don't know a portable way to
> create macros with variable numbers of arguments.  Do you feel like
> writing double parens?
> 
> 	PGERROR((msg, ...))

Then we have to wonder what PGError is getting us that elog(ERROR)
isn't, except the ability to do internationalization based on the first
parameter.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610) 853-3000 +  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: elog() proposal
От: Peter Eisentraut
Дата:
Сообщение: Re: elog() proposal
FAQ