Re: Let an ordering index scan hand its ORDER BY value to the target list

From: Greg Burd <greg(at)burd(dot)me>
To: Greg Burd <greg(at)burd(dot)me>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Chris Cleveland <ccleveland(at)dieselpoint(dot)com>
Subject: Re: Let an ordering index scan hand its ORDER BY value to the target list
Date: 2026-10-05 12:39:08
Message-ID: lax6FVfJkp8n1lgCYoBo5FuYmpUARGPXiYAk8stcwA0hWjSmrbRtkqG5nVWT2y6u0Stn1YclbN9bzlzY4qJpC3eAP58lVlLiXV8jeSNk8Ek=@burd.me
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello,

Attached v2. The only change from v1 is in the new gist regression test: two queries that print recomputed box distances now run under extra_float_digits = 0, as create_index_spgist.sql already does for its KNN output. macOS and Windows differed from Linux in the last digit of two of the 21 distances (0.5728001396647873 vs …874, 0.6099999999999997 vs …998) a libm / FMA variation in box_closept_point, not anything this patch does. The equality check that actually verifies the substituted values (same = total = 200) was already passing on every platform.

v2 applies cleanly to current master (85adc584e2b).

best.

-greg

Attachment Content-Type Size
v2-0001-Let-an-ordering-index-scan-hand-its-ORDER-BY-valu.patch text/x-patch 32.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-10-05 12:49:08 Re: [PATCH] pg_upgrade: add --initdb option to create the new cluster automatically
Previous Message Heikki Linnakangas 2026-10-05 12:38:38 Re: [PATCH] pg_upgrade: add --initdb option to create the new cluster automatically