From: Stuart Rison <rison@biochemistry.ucl.ac.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: [GENERAL] Getting multiple field unique index to distinguish NULLs.
Date: Tue, 14 Sep 1999 12:02:23 +0100 (BST)
Message-ID: <Pine.LNX.4.10.9909141156140.7111-100000@bsmlx17> (raw)
In-Reply-To: <10806.936990438@sss.pgh.pa.us>
On Fri, 10 Sep 1999, Tom Lane wrote:
> Stuart Rison <rison@biochemistry.ucl.ac.uk> writes:
> > Now this would work except that there's a problem with pl/pgSQL such that
> > when you pass several values to a plpgsql function and one of them is
> > NULL, then all values passed to the function become NULL.
>
> Yes. That's not plpgsql's fault; there's a basic design limitation in
> the function-call interface (only one isnull flag gets passed). There
> has been some talk on the pghackers list of fixing this, but I do not
> know if it will happen any time soon or not. Fixing that interface
> would mean revising *all* the code that implements any SQL function or
> operator, so it'd be pretty tedious --- and it'd break any C-coded
> user functions, too. It'll probably get done eventually, maybe even
> for 6.6, but don't hold your breath...
>
> regards, tom lane
>
Aha! Thanks a lot for that Tom, I've been wondering for ages if this NULL
behaviour was just a version things (I've got 6.4.2) or a more profound
'problem'.
Hum... how unfortunate that it's the latter. Personally, and this is
completely sellfish -I use functions quite a lot- I'd love to see this
fixed asap! Alas, can't do it myself, I barely managed to get 'hello
world' to work in C (he weeps)...
Whilst I'm on a whimsical trip, my other top wishes remain:
1) outer joins (not 'workarounds')
2) referential integrity (not refint.c)
Still PG is top-tastic all the same. Thanks to all Hackers out there!
Cheers,
S.
Stuart C. G. Rison
Department of Biochemistry and Molecular Biology
Gower Street, London, WC1E 6BT, United Kingdom
Tel. 0207 504 2303, Fax. 0207 380 7193
e-mail: s.rison@biochem.ucl.ac.uk
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rison@biochemistry.ucl.ac.uk, tgl@sss.pgh.pa.us, pgsql-general@postgresql.org
Subject: Re: [GENERAL] Getting multiple field unique index to distinguish NULLs.
In-Reply-To: <Pine.LNX.4.10.9909141156140.7111-100000@bsmlx17>
References: <10806.936990438@sss.pgh.pa.us> <Pine.LNX.4.10.9909141156140.7111-100000@bsmlx17>
* 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