pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
To: Matthias van de Meent <boekewurm+postgres@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: benoit <benoit@hopsandfork.com>
Cc: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Subject: Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan
Date: Sun, 7 Apr 2024 20:00:00 +0300
Message-ID: <0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com> (raw)
In-Reply-To: <CAH2-Wz=vA9F1yS2gsc==EbV7rgJ21YyV0MEtV-Q_ELN9QPOD6g@mail.gmail.com>
References: <CAH2-Wz=ksvN_sjcnD1+Bt-WtifRA5ok48aDYnq3pkKhxgMQpcw@mail.gmail.com>
	<CAH2-WznOdmwT+512h35XiWE3Fd-q6ueDbCD138eAiA2v+9o0sQ@mail.gmail.com>
	<CAH2-Wz=4C+X+9NBxMitPD=9XMUDdrAa6JxkV5NVQMRfrDnPsfA@mail.gmail.com>
	<CAH2-Wzm=kTenodJ2Xc3+p4Kp+0AC5MGR7kQGe0fGOXJOJO0bCQ@mail.gmail.com>
	<CAEze2Whe5L-z65DgvUgPkkLt6d2PxG1gV8Z_fNWjS9+-1jkDWw@mail.gmail.com>
	<CAH2-Wz=75d0Yx-s15QNPN2sogfZK4PF7xOQFjPS8=Ca7C0f9+g@mail.gmail.com>
	<CAEze2WhHixewkTRLhGMoMPOGmXNJBLnVNt7FuxgFpmzdricR0A@mail.gmail.com>
	<CAEze2WiPNet+Ff7wbyFUpLUPzCgUvdsoNSdo_KLcriSaDGWpow@mail.gmail.com>
	<CAH2-WzkUaZesPygO4DCv4F7QG3BpMMfDmB42S+C_KPn-jaa+yA@mail.gmail.com>
	<CAEze2WiYOpAytLraPs72FV1MvOP1Q6vZx04zHj++-ZWyNBkqUg@mail.gmail.com>
	<CAH2-WznZ5ebfv96DqpKArBBcdnCUxkMOhFGipRA5mdhPKjVHsg@mail.gmail.com>
	<CAH2-WzmQUhfpSZrvcDmyk1OtydYv=TWRYJdp75m6=9hUaeHbFA@mail.gmail.com>
	<CAH2-WzkPOyZaMVtPUT19CfGwRndDekEBmGw_rd+UqKyK9n2LdQ@mail.gmail.com>
	<CAH2-Wz=vA9F1yS2gsc==EbV7rgJ21YyV0MEtV-Q_ELN9QPOD6g@mail.gmail.com>

Hello Peter,

03.04.2024 22:53, Peter Geoghegan wrote:
> On Mon, Apr 1, 2024 at 6:33 PM Peter Geoghegan <pg@bowt.ie> wrote:
>> Note: v18 doesn't have any adjustments to the costing, as originally
>> planned. I'll probably need to post a revised patch with improved (or
>> at least polished) costing in the next few days, so that others will
>> have the opportunity to comment before I commit the patch.
> Attached is v19, which dealt with remaining concerns I had about the
> costing in selfuncs.c. My current plan is to commit this on Saturday
> morning (US Eastern time).

Please look at an assertion failure (reproduced starting from 5bf748b86),
triggered by the following query:
CREATE TABLE t (a int, b int);
CREATE INDEX t_idx ON t (a, b);
INSERT INTO t (a, b) SELECT g, g FROM generate_series(0, 999) g;
ANALYZE t;
SELECT * FROM t WHERE a < ANY (ARRAY[1]) AND b < ANY (ARRAY[1]);

TRAP: failed Assert("so->numArrayKeys"), File: "nbtutils.c", Line: 560, PID: 3251267

Best regards,
Alexander





view thread (78+ messages)  latest in thread

Message-ID: <0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com>
Permalink:  ../0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com/
Also on:    postgresql.org/message-id/0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com

 · 

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-hackers@postgresql.org
  Cc: exclusion@gmail.com, pg@bowt.ie, boekewurm+postgres@gmail.com, tgl@sss.pgh.pa.us, tomas.vondra@enterprisedb.com, pgsql@j-davis.com, benoit@hopsandfork.com, aekorotkov@gmail.com, hlinnaka@iki.fi
  Subject: Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan
  In-Reply-To: <0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com>
  References: <CAH2-Wz=ksvN_sjcnD1+Bt-WtifRA5ok48aDYnq3pkKhxgMQpcw@mail.gmail.com> <CAH2-Wz=4C+X+9NBxMitPD=9XMUDdrAa6JxkV5NVQMRfrDnPsfA@mail.gmail.com> <CAH2-Wzm=kTenodJ2Xc3+p4Kp+0AC5MGR7kQGe0fGOXJOJO0bCQ@mail.gmail.com> <CAEze2Whe5L-z65DgvUgPkkLt6d2PxG1gV8Z_fNWjS9+-1jkDWw@mail.gmail.com> <CAH2-Wz=75d0Yx-s15QNPN2sogfZK4PF7xOQFjPS8=Ca7C0f9+g@mail.gmail.com> <CAEze2WhHixewkTRLhGMoMPOGmXNJBLnVNt7FuxgFpmzdricR0A@mail.gmail.com> <CAEze2WiPNet+Ff7wbyFUpLUPzCgUvdsoNSdo_KLcriSaDGWpow@mail.gmail.com> <CAH2-WzkUaZesPygO4DCv4F7QG3BpMMfDmB42S+C_KPn-jaa+yA@mail.gmail.com> <CAEze2WiYOpAytLraPs72FV1MvOP1Q6vZx04zHj++-ZWyNBkqUg@mail.gmail.com> <CAH2-WznZ5ebfv96DqpKArBBcdnCUxkMOhFGipRA5mdhPKjVHsg@mail.gmail.com> <CAH2-WzmQUhfpSZrvcDmyk1OtydYv=TWRYJdp75m6=9hUaeHbFA@mail.gmail.com> <CAH2-WzkPOyZaMVtPUT19CfGwRndDekEBmGw_rd+UqKyK9n2LdQ@mail.gmail.com> <CAH2-Wz=vA9F1yS2gsc==EbV7rgJ21YyV0MEtV-Q_ELN9QPOD6g@mail.gmail.com> <0539d3d3-a402-0a49-ed5e-26429dffc4bd@gmail.com>

* 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