pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ddurst@larubber.com
Cc: pgsql-sql@postgresql.org
Subject: Re: LONG - Question on dealing w/ numerics
Date: Wed, 29 Jan 2003 04:01:39 -0500
Message-ID: <21507.1043830899@sss.pgh.pa.us> (raw)
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>

"David Durst" <ddurst@larubber.com> 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



view thread (6+ messages)  latest in thread

Message-ID: <21507.1043830899@sss.pgh.pa.us>
Permalink:  ../21507.1043830899@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21507.1043830899@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ddurst@larubber.com
  Subject: Re: LONG - Question on dealing w/ numerics
  In-Reply-To: <21507.1043830899@sss.pgh.pa.us>

* 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