pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Rijkers <er@xs4all.nl>
Cc: Alexander Korotkov <akorotkov@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
Date: Thu, 19 Sep 2019 16:13:37 -0400
Message-ID: <2608.1568924017@sss.pgh.pa.us> (raw)
In-Reply-To: <6d51305e1159241cabee132f7efc7eff@xs4all.nl>
References: <E1iB1pb-00075a-Dx@gemulon.postgresql.org>
	<6d51305e1159241cabee132f7efc7eff@xs4all.nl>

Erik Rijkers <er@xs4all.nl> 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;

AFAICS, item->distances[i].value is a double not a Datum, so dropping
the Float8GetDatum call is just wrong.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <2608.1568924017@sss.pgh.pa.us>
Permalink:  ../2608.1568924017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2608.1568924017@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, er@xs4all.nl, akorotkov@postgresql.org
  Subject: Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
  In-Reply-To: <2608.1568924017@sss.pgh.pa.us>
  References: <E1iB1pb-00075a-Dx@gemulon.postgresql.org> <6d51305e1159241cabee132f7efc7eff@xs4all.nl> <2608.1568924017@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox