"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