Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iB3Hi-0006Pi-Sz for pgsql-committers@arkaria.postgresql.org; Thu, 19 Sep 2019 20:44:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iB3Hg-0003Df-S7 for pgsql-committers@arkaria.postgresql.org; Thu, 19 Sep 2019 20:44:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iB3Hg-0003DU-Ir for pgsql-committers@lists.postgresql.org; Thu, 19 Sep 2019 20:44:12 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iB3Hd-0004ze-NK for pgsql-committers@lists.postgresql.org; Thu, 19 Sep 2019 20:44:12 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id DA1CC21C462E for ; Thu, 19 Sep 2019 23:44:08 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (not verified)) by mail.postgrespro.ru (Postfix) with ESMTPSA id 6A29121C45F7 for ; Thu, 19 Sep 2019 23:44:08 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1568925848; bh=S/P+xi2NYcHn5iTQ1zTPTZEBj0PUb0e9JXowLvnwVTQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=buHaAkEd12xdZMB2KgJ7uxHDgRX/G+whF/0mnx1HAMg+eT4wHNW3pZNFfSbASsHK9 yWTM5SQWm2XIOV/VVC+F9WjbHKO6siDEYOStwaLRHx31XQcCAGCOE1ZJGlMXeElkI0 2Afp1rO3B+Ms4KNEgbgA3gWXY+oFISa0x5JqiHF8= Received: by mail-io1-f49.google.com with SMTP id a1so11066494ioc.6 for ; Thu, 19 Sep 2019 13:44:08 -0700 (PDT) X-Gm-Message-State: APjAAAU61L7oB0oII1Ap6/EbFk+b4C+5vCiK0hLg/cKvgEv3RCA+/mOU qgQHqi8cCEND0EetyAqhtsqQZ3b5IM+l7yCSmyw= X-Google-Smtp-Source: APXvYqyjJVnyBv1Vs9qYCwaJ1EX5SHjBicUCOkumLJVI4tZoDIXJ5yiu4s+/82KRC5kXAOKkJyDgFVi2piBxzcvEFRA= X-Received: by 2002:a05:6638:738:: with SMTP id j24mr14988978jad.74.1568925846886; Thu, 19 Sep 2019 13:44:06 -0700 (PDT) MIME-Version: 1.0 References: <6d51305e1159241cabee132f7efc7eff@xs4all.nl> <2608.1568924017@sss.pgh.pa.us> In-Reply-To: From: Alexander Korotkov Date: Thu, 19 Sep 2019 23:43:56 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST To: Tom Lane Cc: Erik Rijkers , Alexander Korotkov , pgsql-committers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Sep 19, 2019 at 11:31 PM Alexander Korotkov wrote: > > On Thu, Sep 19, 2019 at 11:13 PM Tom Lane wrote: >> >> Erik Rijkers writes: >> > Oops: >> > create_index ... ok 634 ms >> > create_index_spgist ... FAILED 438 ms >> > create_view ... ok 329 ms >> >> I'm betting the issue is breaking the Datum abstraction here: >> >> - scan->xs_orderbyvals[i] = Float8GetDatum(distanceValues[i]); >> + scan->xs_orderbyvals[i] = item->distances[i].value; > > > Overseen by me. Will fix immediately. Fix pushed from 11 to 9.5, where I made this error during backpatching. However, I also see set of failures in master, which seems related to this patch: * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=dromedary&dt=2019-09-19%2020%3A09%3A42 * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2019-09-19%2020%3A04%3A22 * https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tern&dt=2019-09-19%2019%3A22%3A01 Will investigate them. ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company