One more option for patch:

#define GinPageIsLeaf(page)    ((bool)(GinPageGetOpaque(page)->flags & 

Seems it will work on any platform with built-in bool. But I don't know will it work with 'typedef char bool' if high bit will be set.

That's true, but it doesn't really seem like a reason not to commit
this patch.  I mean, the coding here is (a) dangerous by your own
admission and (b) actually breaks on platforms for which we allege
support.  If we find out that somebody has implemented an int-width
bool we'll have some bigger decisions to make, but I don't see any
particular reason why we've got to make those decisions now.


Teodor Sigaev                                   E-mail:

Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to