Re: Recent updates - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: Recent updates
Date
Msg-id 35ACE1A2.6BE91491@apop-server.alumni.caltech.edu
Whole thread Raw
In response to Re: Recent updates  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: Recent updates  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
> > > What does 'select null order by 1;' do now?
> you can do a NULL test there and prevent oper() from even being
> called.

postgres=> select null order by 1;
?column?
--------

(1 row)

There are three or four cases in transformSortClause() and I had fixed
only one case for UNION. A second case is now fixed, in the same way; I
assigned INT4OID to the column type for the "won't actually happen"
sort. Didn't want to skip the code entirely, since the backend needs to
_try_ a sort to get the NULLs right. I'm not certain under what
circumstances the other cases are invoked; will try some more testing...

Off to work now :)

                      - Tom

pgsql-hackers by date:

Previous
From: Andreas Zeugswetter
Date:
Subject: AW: [HACKERS] "internal error" triggered by EXISTS()
Next
From: Bruce Momjian
Date:
Subject: Re: Recent updates