Re: Some macros for error field codes

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Some macros for error field codes
Date: 2003-07-30 21:41:56
Message-ID: 200307302141.h6ULfuw12716@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> >>> Should we create some user-friendly macros for the error field codes?
>
> > I was actually talking of the single-letter codes that are used on the
> > protocol layer to tag the different fields of an error or notice result.
>
> Oh, those things. Sure, if you like, though it might be just namespace
> clutter.

Seems it documents the code more clearly.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-07-30 21:59:58 Re: Warning for undefined cursor
Previous Message Sean Chittenden 2003-07-30 21:40:05 Re: [PATCH] Re: [pgsql-advocacy] Why READ ONLY transactions?