Re: AW: [HACKERS] More on elog and error codes

2001-03-20 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> 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

AW: [HACKERS] More on elog and error codes

2001-03-20 Thread Zeugswetter Andreas SB
> #define PGERR_TYPE 1854 #define PGSQLSTATE_TYPE "S0021"// char(5) SQLSTATE The standard calls this error variable SQLSTATE (look up in ESQL standard) first 2 chars are class next 3 are subclass "0" is e.g. Success "02000" is Data not found "U0xxx" user defined routine error xxx