| From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
|---|---|
| To: | "Hyatt, Gordon" <Gordon(dot)Hyatt(at)joslin(dot)harvard(dot)edu> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: plpgsql question/problem |
| Date: | 2007-08-13 20:46:17 |
| Message-ID: | dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On 8/13/07, Hyatt, Gordon <Gordon(dot)Hyatt(at)joslin(dot)harvard(dot)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 correct list, 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-08-13 21:06:10 | Re: plpgsql question/problem |
| Previous Message | Hyatt, Gordon | 2007-08-13 20:24:16 | plpgsql question/problem |