On 01/28/2015 02:47 AM, Michael Paquier wrote:
On Wed, Jan 28, 2015 at 3:15 AM, Tom Lane <t...@sss.pgh.pa.us> wrote:
So I'm fine with taking out both this documentation text and the dead
null-pointer checks; but let's do that all in one patch not piecemeal.
In any case, this is just cosmetic cleanup; there's no actual hazard
here.
Attached is a patch with all those things done.

Thanks, applied.

I added as well an assertion in gistKeyIsEQ checking if the input
datums are NULL. I believe that this is still useful for developers,
feel free to rip it out from the patch if you think otherwise.

I ripped it out because I think was wrong. It assumed that the input Datums are pass-by-reference, which is not a given. It looks that's true for all the current opclasses, so I wouldn't be surprised if there are hidden assumptions on that elsewhere in the code, but it was wrong nevertheless.

- Heikki



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to