Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9EB5A9F9D41 for ; Mon, 13 Aug 2007 18:06:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 21135-04 for ; Mon, 13 Aug 2007 18:06:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 171939F9C3B for ; Mon, 13 Aug 2007 18:06:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7DL6AWu022027; Mon, 13 Aug 2007 17:06:10 -0400 (EDT) To: "Scott Marlowe" cc: "Hyatt, Gordon" , pgsql-admin@postgresql.org Subject: Re: plpgsql question/problem In-reply-to: References: <8EA62D1B324F0A438A36E8B5F0848EB808184C@jdcmail1.joslin.harvard.edu> Comments: In-reply-to "Scott Marlowe" message dated "Mon, 13 Aug 2007 15:46:17 -0500" Date: Mon, 13 Aug 2007 17:06:10 -0400 Message-ID: <22026.1187039170@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/141 X-Sequence-Number: 26472 "Scott Marlowe" writes: > On 8/13/07, Hyatt, Gordon 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