Re: btree_gin and btree_gist for enums - Mailing list pgsql-hackers

From Tom Lane
Subject Re: btree_gin and btree_gist for enums
Date
Msg-id 27220.1478360811@sss.pgh.pa.us
Whole thread Raw
In response to Re: btree_gin and btree_gist for enums  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: btree_gin and btree_gist for enums  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The real problem here is that enum_cmp_internal assumes that 
> fcinfo->flinfo has been set up, and DirectFunctionCallN doesn't, it sets 
> it to NULL.
> The patch below cures the problem. I'm not sure if there is a better 
> way. Thoughts?

That may be a good fix for robustness purposes, but it seems pretty horrid
from an efficiency standpoint.  Where is this call, and should we be
modifying it to provide a flinfo?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: btree_gin and btree_gist for enums
Next
From: Tom Lane
Date:
Subject: Re: MinSizeOfXactInvals defined twice