Re: Prefix operator for text and spgist support - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Prefix operator for text and spgist support
Date
Msg-id e71b4911-7cd0-fd6f-29c8-95225c3beb11@sigaev.ru
Whole thread Raw
In response to Re: Prefix operator for text and spgist support  (Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>)
Responses Re: Prefix operator for text and spgist support  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
Hi!

Patch looks resonable, but I see some place to improvement:
spg_text_leaf_consistent() only needs to check with text_startswith() if 
reconstucted value came to leaf consistent is shorter than given prefix. For 
example, if level >= length of prefix then we guarantee that fully reconstracted 
is matched too. But do not miss that you may need to return value for index only 
scan, consult returnData field

In attachment rebased and minorly edited version of your patch.


-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Re: csv format for psql
Next
From: Tom Lane
Date:
Subject: Re: Error detail/hint style fixup