Re: elog with automatic file, line, and function

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: elog with automatic file, line, and function
Дата
Msg-id Pine.LNX.4.30.0103212156130.1694-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: elog with automatic file, line, and function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: elog with automatic file, line, and function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

> Sure it is, it just requires a marginal increase in ugliness, namely
> double parentheses:
>
>     ELOG((level, format, arg1, arg2, ...))
>
> which might work like
>
> #define ELOG(ARGS)  (elog_setloc(__FILE__, __LINE__), elog ARGS)

Would the first function save the data in global variables?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pgindent run?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgindent run?