Re: plpgsql question/problem - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: plpgsql question/problem
Date
Msg-id dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com
Whole thread Raw
In response to plpgsql question/problem  ("Hyatt, Gordon" <Gordon.Hyatt@joslin.harvard.edu>)
Responses Re: plpgsql question/problem
List pgsql-admin
On 8/13/07, Hyatt, Gordon <Gordon.Hyatt@joslin.harvard.edu> wrote:
>
> I'm not sure if this is the correct list for this question, but I'll give it a shot anyway.  (If this is not the
correctlist, please suggest the correct one.) 

CODE SNIPPED.

> 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:

begin;
insert_a_and_b ('some text for a', 'some text for b');
commit;

became:

begin;
select insert_a_and_b ('some text for a', 'some text for b');
commit;

But I assume that's just a simple typo. I'm running pgsql 8.1.8

pgsql-admin by date:

Previous
From: "Hyatt, Gordon"
Date:
Subject: plpgsql question/problem
Next
From: Tom Lane
Date:
Subject: Re: plpgsql question/problem