Re: [HACKERS] 'select @1' problem

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Taral <taral(at)mail(dot)utexas(dot)edu>
Cc: hackers(at)postgreSQL(dot)org, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Subject: Re: [HACKERS] 'select @1' problem
Date: 1998-09-16 06:33:19
Message-ID: 35FF5BAF.DBDBA77@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Ahem... dereferencing a NULL? Bad bad bad.

No kidding, eh? :)

postgres=> select @1;
?column?
--------
1
(1 row)

I had paid more attention to the binary operators when re-doing the
operator matching and implicit type coersion stuff for this release. So,
the binary operators were using new code, while the unary operators were
still reusing the function matching code rather than the new dedicated
operator matching code.

Also, the left-hand operator code was not checking for a null return
from the function/operator matching code, so core dumped rather than
throwing a graceful error message.

So two problems have been fixed: the core dump when unable to find a
single best match, and the inability to find a good match for this test
case.

Will apply patches after regression testing (but it can't be worse than
before).

Thanks for spotting the problem...

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 1998-09-16 06:59:53 Re: [HACKERS] BETA1 Snapshot built...
Previous Message Thomas G. Lockhart 1998-09-16 05:18:16 Re: [HACKERS] Serial syntax