pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error
Date: Fri, 5 Sep 2025 07:00:00 +0300
Message-ID: <53006653-ada7-40aa-9ef8-f52ca0bda4a4@gmail.com> (raw)
In-Reply-To: <CAMbWs49P6+7dekSSe5z4thr3AMvuYAJy5GKD5HKzw8x+8oR9hw@mail.gmail.com>
References: <19037-3d1c7bb553c7ce84@postgresql.org>
	<50858.1756590676@sss.pgh.pa.us>
	<CAMbWs4_5Q3V_M1FavN07TxcOHhE38vtBaHs-LM2-RN=paYGi-g@mail.gmail.com>
	<346889.1756738657@sss.pgh.pa.us>
	<CAMbWs4_KfP=2Rkne2+fAHE8yQAuZL2C8wH4DSLrOa4s5v=yN7g@mail.gmail.com>
	<589702.1756826835@sss.pgh.pa.us>
	<CAMbWs4-g7LJ+W_dL1_=O6OOZ=wwxtUPbwypdgsVWMnm=wcW1Yw@mail.gmail.com>
	<711590.1756862355@sss.pgh.pa.us>
	<CAMbWs49P6+7dekSSe5z4thr3AMvuYAJy5GKD5HKzw8x+8oR9hw@mail.gmail.com>

Hello Tom and Richard,

03.09.2025 11:08, Richard Guo wrote:
>> Yeah, "is there any other instance of this problem?" is the $64
>> question here.  I was initially thinking v17 is sufficient, but
>> the possibility that some extension might be vulnerable makes
>> me lean to back-patching further.  Your call ...
> I've decided to backpatch this fix to pre-v17 branches: using a root
> that lacks a valid simple_rel_array in a cost estimation function
> seems like a pitfall waiting to happen.  I've included an explanation
> of this backpatch decision in the commit message and have pushed the
> fix (the test case is not included in pre-v17 branches though).

Thank you for fixing that anomaly!

Best regards,
Alexander

view thread (11+ messages)

Message-ID: <53006653-ada7-40aa-9ef8-f52ca0bda4a4@gmail.com>
Permalink:  ../53006653-ada7-40aa-9ef8-f52ca0bda4a4@gmail.com/
Also on:    postgresql.org/message-id/53006653-ada7-40aa-9ef8-f52ca0bda4a4@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: exclusion@gmail.com, guofenglinux@gmail.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19037: Planner fails on estimating array length with "no relation entry" error
  In-Reply-To: <53006653-ada7-40aa-9ef8-f52ca0bda4a4@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