| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Proposed macros for error fields |
| Date: | 2003-08-08 15:21:56 |
| Message-ID: | 26685.1060356116@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I propose to add the following macros for the fields of an error or notice
> message for use in libpq applications.
Where, in libpq-fe.h?
The proposed names look fine to me except for
> W PG_DIAG_STACK_TRACE
This seems overly specific to my eyes --- I'd suggest PG_DIAG_CONTEXT,
or maybe someone can suggest another possibility. We don't promise to
provide a "stack trace" per se; there are already uses that don't
correspond to the user's idea of function nesting (for instance,
identifying the buffer associated with an I/O failure).
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-08-08 15:27:11 | Re: Moved simple_prompt()/sprompt.c |
| Previous Message | Tom Lane | 2003-08-08 15:09:56 | Re: src/interfaces/cli |