"Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> writes:
> On 8/13/07, Hyatt, Gordon <Gordon(dot)Hyatt(at)joslin(dot)harvard(dot)edu> wrote:
>> When I attempt to run insert_a_and_b, insert_b fails with a foreign key violation.
> I ran your exact same code and it worked fine. Note that I changed one line:
Works for me too (with Scott's correction), in 8.1.x, 8.2.x, and HEAD.
regards, tom lane