Tatsuo Ishii <ishii(at)postgresql(dot)org> writes:
>> Sure. It's always a balance. If you go to the extreme of your argument
>> every possible error gets one individual error code. But then error
>> handling gets too complex.
> I think the solution for this is assigning a unique id to each
> message. This is already done in some commercial databases. They are
> pretty usefull for tech supports.
We already have file and line number recorded.
regards, tom lane