Re: unclear enum error messages - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unclear enum error messages
Date
Msg-id 2600.1196314338@sss.pgh.pa.us
Whole thread Raw
In response to Re: unclear enum error messages  ("Tom Dunstan" <pgsql@tomd.cc>)
List pgsql-hackers
"Tom Dunstan" <pgsql@tomd.cc> writes:
> I wouldn't get too worried, though. These are defensive error messages
> that are really just checking for sane input, and they seem difficult
> to deliberately trip, let alone accidentally, so stressing about them
> is probably unnecessary.

Right.  I'm not really expecting to see that message fire; it's just
there to ensure sane behavior if it does happen.  Peter might be right
that an elog instead of ereport would be sufficient.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Tom Dunstan"
Date:
Subject: Re: unclear enum error messages
Next
From: Andrew Dunstan
Date:
Subject: Re: [GENERAL] plperl and regexps with accented characters - incompatible?