Proposed macros for error fields

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Proposed macros for error fields
Date: 2003-08-08 13:45:02
Message-ID: Pine.LNX.4.56.0308081534590.1385@krusty.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I propose to add the following macros for the fields of an error or notice
message for use in libpq applications. The names are modelled after the
ones that ODBC uses. (Well, at least they are chosen not to collide in
case we want to continue on that track.)

S PG_DIAG_SEVERITY
C PG_DIAG_SQLSTATE
M PG_DIAG_MESSAGE_PRIMARY
D PG_DIAG_MESSAGE_DETAIL
H PG_DIAG_MESSAGE_HINT
P PG_DIAG_STATEMENT_POSITION
W PG_DIAG_STACK_TRACE
F PG_DIAG_SOURCE_FILE
L PG_DIAG_SOURCE_LINE
R PG_DIAG_SOURCE_FUNCTION

Comments?

--
Peter Eisentraut peter_e(at)gmx(dot)net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-08-08 13:56:34 Re: TODO items
Previous Message Chris Webster 2003-08-08 12:58:47 Re: postmaster(s) have high load average