Received: from mail-b.bcc.ac.uk (mail-b.bcc.ac.uk [144.82.100.22]) by hub.org (8.9.3/8.9.3) with ESMTP id HAA78864 for ; Tue, 14 Sep 1999 07:00:04 -0400 (EDT) (envelope-from rison@biochemistry.ucl.ac.uk) Received: from biochem.ucl.ac.uk (actually host bsmori1.biochem.ucl.ac.uk) by mail-b.bcc.ac.uk with SMTP (XT-PP) with ESMTP; Tue, 14 Sep 1999 11:59:53 +0100 Received: from bsmlx17.biochem.ucl.ac.uk (bsmlx17 [128.40.46.142]) by biochem.ucl.ac.uk (8.9.2/8.9.1) with ESMTP id LAA11044; Tue, 14 Sep 1999 11:59:54 +0100 (BST) Received: from localhost (rison@localhost) by bsmlx17.biochem.ucl.ac.uk (8.9.3/8.6.6) with ESMTP id MAA07147; Tue, 14 Sep 1999 12:02:23 +0100 X-Authentication-Warning: bsmlx17.biochem.ucl.ac.uk: rison owned process doing -bs Date: Tue, 14 Sep 1999 12:02:23 +0100 (BST) From: Stuart Rison X-Sender: rison@bsmlx17 To: Tom Lane cc: pgsql-general Subject: Re: [GENERAL] Getting multiple field unique index to distinguish NULLs. In-Reply-To: <10806.936990438@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Fri, 10 Sep 1999, Tom Lane wrote: > Stuart Rison 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