"Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> writes:
> david(dot)sahagian(at)emc(dot)com wrote:
>> In my PL/pgSQL stored functions,
>> I want to be able to distinguish which FK-constraint caused the
>> [foreign_key_violation] exception.
>> Is a "robust enough" parsing of SQLERRM actually the best/only way to
>> determine this ?
> I think so.
Yeah, at the moment. There are plans to fix this, but it won't happen
before 9.3 at the earliest.
regards, tom lane