I was looking through elog.h and noticed this at about line 36:

#define ERROR	20	/* user error - abort transaction; return
			 * to known state */
#define ERROR	20	/* user error - abort transaction; return
			 * to known state */

Joe


Mon, 14 Jul 2003 16:25:00 -0700
Joe Conway <mail@joeconway.com>
duplicate define in elog.h
Joe Conway <mail@joeconway.com> writes:
> I was looking through elog.h and noticed this at about line 36:
> #define ERROR	20	/* user error - abort transaction; return
> 			 * to known state */
> #define ERROR	20	/* user error - abort transaction; return
> 			 * to known state */

Good catch.  Looks like it snuck in here:
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h.diff?r1=1.41&r2=1.42

			regards, tom lane

Mon, 14 Jul 2003 19:38:35 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: duplicate define in elog.h 
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
> > I was looking through elog.h and noticed this at about line 36:
> > #define ERROR	20	/* user error - abort transaction; return
> > 			 * to known state */
> > #define ERROR	20	/* user error - abort transaction; return
> > 			 * to known state */
> 
> Good catch.  Looks like it snuck in here:
> http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h.diff?r1=1.41&r2=1.42

Man, I am unsafe with a command prompt.  :-)

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

Mon, 21 Jul 2003 17:29:36 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: duplicate define in elog.h