Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO8y2-0008HH-CE for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Mar 2014 16:58:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WO8y1-0004rS-SH for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Mar 2014 16:58:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO8y0-0004rK-Qo for pgsql-hackers@postgresql.org; Thu, 13 Mar 2014 16:58:48 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO8xr-0005Du-6c for pgsql-hackers@postgresql.org; Thu, 13 Mar 2014 16:58:48 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 2C76C2876D; Thu, 13 Mar 2014 09:58:35 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 2611D18245; Thu, 13 Mar 2014 09:58:35 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id B216C120032; Thu, 13 Mar 2014 09:58:31 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Thu, 13 Mar 2014 09:58:30 -0700 (PDT) Message-ID: <5321E3B8.8040809@vmware.com> Date: Thu, 13 Mar 2014 18:58:32 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Alexander Korotkov CC: Tomas Vondra , pgsql-hackers Subject: Re: GIN improvements part2: fast scan References: <52E42AD0.5060600@vmware.com> <52E4AA3A.9000607@fuzzy.cz> <52E53458.2010106@vmware.com> <52F36245.6070006@vmware.com> <52F4E094.9040303@vmware.com> <5305CF6E.1080508@vmware.com> <53208532.8090005@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 03/12/2014 07:52 PM, Alexander Korotkov wrote: >> > >> >* I just noticed that the dummy trueTriConsistentFn returns GIN_MAYBE, >> >rather than GIN_TRUE. The equivalent boolean version returns 'true' without >> >recheck. Is that a typo, or was there some reason for the discrepancy? >> > > Actually, there is not difference in current implementation, But I > implemented it so that trueTriConsistentFn can correctly work > with shimBoolConsistentFn. In this case it should return GIN_MAYBE in case > when it have no GIN_MAYBE in the input (as analogue of setting recheck > flag). So, it could return GIN_TRUE only if it checked that input has > GIN_MAYBE. However, checking would be just wasting of cycles. So I end up > with just GIN_MAYBE :-) I don't understand that. As it is, it's inconsistent with the boolean trueConsistent function. trueConsistent always returns TRUE with recheck=false. And in GIN_SEARCH_MODE_EVERYTHING mode, there are no regular scan keys. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers