Re: Index AM change proposals, redux - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Index AM change proposals, redux
Date
Msg-id 12891.1207930265@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index AM change proposals, redux  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: Index AM change proposals, redux  (Heikki Linnakangas <heikki@enterprisedb.com>)
Re: Index AM change proposals, redux  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> writes:
> So, I planned to add pointer to bool to consistent method, so signature will be
> bool consistent( bool check[], StrategyNumber n, Datum query, bool *needRecheck)

> Returning value of needRecheck should be ignored for operation not marked by 
> RECHECK flag in opclass. needRecheck should be initialized to true before call 
> of consistent method to keep compatibility with old opclasses.

Perhaps it would be better to initialize needRecheck to the opclass
RECHECK flag value?  If the consistent function does nothing, the
behavior is the same as before, but it can flip the flag in either
direction if it wants.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: stat() vs cygwin
Next
From: Bruce Momjian
Date:
Subject: Re: Commit fest queue