Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 08A8D479E25 for ; Wed, 29 Jan 2003 04:47:33 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id EAB0A47A17F for ; Wed, 29 Jan 2003 04:01:39 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0T91d5u021508; Wed, 29 Jan 2003 04:01:39 -0500 (EST) To: ddurst@larubber.com Cc: pgsql-sql@postgresql.org Subject: Re: LONG - Question on dealing w/ numerics In-reply-to: <36005.216.86.192.34.1043831871.squirrel@www.la-rubber.com> References: <34281.216.86.192.34.1043801682.squirrel@www.la-rubber.com> <19082.1043813296@sss.pgh.pa.us> <36005.216.86.192.34.1043831871.squirrel@www.la-rubber.com> Comments: In-reply-to "David Durst" message dated "Wed, 29 Jan 2003 01:17:51 -0800" Date: Wed, 29 Jan 2003 04:01:39 -0500 Message-ID: <21507.1043830899@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/480 X-Sequence-Number: 11345 "David Durst" writes: > But I still think your point about the function selecting more than > one line is valid. > The problem is, the journal_line_id is not created until the insert > occurs and there is no other unique ident than the journal_line_id. Well, my standard answer to that would be "your WHERE clause should select on a primary key (which could be multiple columns)". We're pretty constrained in changing the semantics of plpgsql, because the raison d' etre of that language is to emulate Oracle's (TM) PL/SQL (TM), warts and all. (Now, if you can show us that PL/SQL behaves differently in that situation, we'll definitely be willing to change plpgsql.) regards, tom lane