From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: shihao zhong <zhong950419@gmail.com>
Cc: Atisss hh <125atishprak@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19849: queries fail after ANALYZE with expression stats on arrays
Date: Mon, 09 Nov 2026 14:43:15 -0500
Message-ID: <2492770.1794253395@sss.pgh.pa.us> (raw)
In-Reply-To: <avFekPK2YMzo_l6V@paquier.xyz>
References: <19849-38b8bd2fea807154@postgresql.org>
<CAGqfTtvt=d-aCEnVE1zRDMpUO9SyL3mAuCYzwdJodoNd0B5w8w@mail.gmail.com>
<CAGRkXqSbfQ4nbaf5jh4cxoEBZX86iLjoVhdCBqH0J_Osviskyg@mail.gmail.com>
<avFekPK2YMzo_l6V@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Nov 09, 2026 at 12:10:33AM -0500, shihao zhong wrote:
>> 0001 is your fix plus the same change for stanumbers. Now
>> serialize_expr_stats() matches update_attstats() again.
Ugh.
> Tom, any thoughts?
I think it's unfortunate that we have two copies of largely the same
code that have to be kept in sync. At the very least we ought to
install comments warning of that in both places. But I wonder if
it's practical to refactor so that there's just one copy?
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, zhong950419@gmail.com, 125atishprak@gmail.com
Subject: Re: BUG #19849: queries fail after ANALYZE with expression stats on arrays
In-Reply-To: <2492770.1794253395@sss.pgh.pa.us>
References: <19849-38b8bd2fea807154@postgresql.org> <CAGqfTtvt=d-aCEnVE1zRDMpUO9SyL3mAuCYzwdJodoNd0B5w8w@mail.gmail.com> <CAGRkXqSbfQ4nbaf5jh4cxoEBZX86iLjoVhdCBqH0J_Osviskyg@mail.gmail.com> <avFekPK2YMzo_l6V@paquier.xyz> <2492770.1794253395@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