Re: elog() proposal - Mailing list pgsql-hackers

From Tom Lane
Subject Re: elog() proposal
Date
Msg-id 22015.1014425761@sss.pgh.pa.us
Whole thread Raw
In response to Re: elog() proposal  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: elog() proposal  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> 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, ...))
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Going through email
Next
From: Bruce Momjian
Date:
Subject: Re: elog() proposal