pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Hyatt, Gordon <Gordon.Hyatt@joslin.harvard.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: plpgsql question/problem
Date: Mon, 13 Aug 2007 15:46:17 -0500
Message-ID: <dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com> (raw)
In-Reply-To: <8EA62D1B324F0A438A36E8B5F0848EB808184C@jdcmail1.joslin.harvard.edu>
References: <8EA62D1B324F0A438A36E8B5F0848EB808184C@jdcmail1.joslin.harvard.edu>

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



view thread (5+ messages)  latest in thread

Message-ID: <dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com>
Permalink:  ../dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, Gordon.Hyatt@joslin.harvard.edu
  Subject: Re: plpgsql question/problem
  In-Reply-To: <dcc563d10708131346u19a6759ci5e30ba1c47930565@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox