Re: fastgetattr & isNull - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fastgetattr & isNull
Date
Msg-id 19200.1262803139@sss.pgh.pa.us
Whole thread Raw
In response to Re: fastgetattr & isNull  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: fastgetattr & isNull  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Well, that comment is a bit misleading too, since a pointer with a
> NULL value might work but a literal NULL certainly doesn't.

I think "(bool *) NULL" would work.  What your compiler is complaining
about is trying to dereference a "void *" expression.

In practice, the people we'd need to reach with a comment would be ones
who had working code before --- and working code, in this context, would
most likely be code that was passing a pointer variable that contained
null.  But as I said, I don't think it really requires any comment.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Type modifiers for DOMAIN
Next
From: Robert Haas
Date:
Subject: Re: fastgetattr & isNull