Pavel Stehule <[EMAIL PROTECTED]> writes: > if I use registered sqlstate, plpgsql knows text message.
No, it does not. I already pointed out that tying a single error message to a SQLSTATE is unreasonable, because that's not how the SQL committee intended SQLSTATEs to be used. I haven't looked at this patch yet, but if it's doing things that way it is wrong. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match