Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YwqyW-0007eB-GN for pgsql-bugs@arkaria.postgresql.org; Mon, 25 May 2015 11:55:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YwqyW-0003HV-1A for pgsql-bugs@arkaria.postgresql.org; Mon, 25 May 2015 11:55:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YwqyV-0003HP-5W for pgsql-bugs@postgresql.org; Mon, 25 May 2015 11:55:19 +0000 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YwqyS-0003cj-6x for pgsql-bugs@postgresql.org; Mon, 25 May 2015 11:55:17 +0000 Received: by wicmx19 with SMTP id mx19so45999949wic.0 for ; Mon, 25 May 2015 04:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=P10IiUecXU7CroU5H2M8hzM9O3zpNmPfsgpMB2a4LJs=; b=PWUW05qnfwi+/MvZenjTkYcrYoW1ZJVgJgBcIe81ZbVqty9uTk9qYfW+68LtwrQIDD GNlJtsFZKtELM67hr3bCaZ2IgsQy5jEJW/0lP4R1LlN10a3CQpP9RDYvkpWVRRIrgKC0 EP6GdiLWwuFBlVtG/RwrL9rug6SivN7ovR1er2ucr5+Zw5+UTMdCDbHXi8TeDbXKdvtI 5ZZ1/rinnV+KY051lqx6jU+Al16OV2FIpzv7RBEbdr9Sf3RGUoz+0cEJLpRr+D7s2MIt 6Vfr6ghf7HVdTBRs9WzNMqMOtsQbxGaXydUohDM81qow++F31fcTG1bJdX913YTukaGh pZkQ== X-Received: by 10.194.184.79 with SMTP id es15mr20270062wjc.112.1432554912581; Mon, 25 May 2015 04:55:12 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id ej5sm16431078wjd.22.2015.05.25.04.55.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2015 04:55:11 -0700 (PDT) Message-ID: <55630D9D.3090508@iki.fi> Date: Mon, 25 May 2015 14:55:09 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: lr@pcorp.us, pgsql-bugs@postgresql.org Subject: Re: BUG #13349: Recheck logic with index mixed up when used with LATERAL References: <20150525052538.4705.92464@wrigleys.postgresql.org> In-Reply-To: <20150525052538.4705.92464@wrigleys.postgresql.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 05/25/2015 08:25 AM, lr@pcorp.us wrote: > The following bug has been logged on the website: > > Bug reference: 13349 > Logged by: Regina Obe > Email address: lr@pcorp.us > PostgreSQL version: Unsupported/Unknown > Operating system: Debian, Mingw-64 Postgresql 9.5 Recheck logic > Description: > > We are finding issues in our PostGIS KNN distance recheck, and think the > issue is with PostgreSQL since we can replicate with PostgreSQL built-in > geometry types > > This issue only seems to happen if the LATERAL clause works against multiple > records. Thanks, fixed! I forgot to reset the new "reached end" flag when the node is rescanned. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs