pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: 303677365@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19842: pg_restore_extended_stats() rejects a faithful pg_dump of ANALYZE-produced range expression statisti
Date: Tue, 10 Nov 2026 12:52:52 +0900
Message-ID: <avKVFEGuLRlhdTyp@paquier.xyz> (raw)
In-Reply-To: <CADkLM=fvGCQWvrrDrSB2M7PHYS=PwLGU17LzoYE6u23t3KV5gQ@mail.gmail.com>
References: <19842-ca042326dd2430a4@postgresql.org>
	<avFaBdhb4ONGhIjH@paquier.xyz>
	<CADkLM=fvGCQWvrrDrSB2M7PHYS=PwLGU17LzoYE6u23t3KV5gQ@mail.gmail.com>

On Mon, Nov 09, 2026 at 10:49:38PM -0500, Corey Huinker wrote:
> Just seeing your reply now, but I also got drawn to 261f89a976bf not making
> the same (stats->numvalues[k] > 0) to (stats->stavalues[k] != NULL) change
> for extstats as was made for attrstats.

Yeah, we need to fix that first, I think..  

> In addition, we need to complete decouple found/notfound checks for
> range_bounds_histogram from the other two, as all of those "must be paired"
> checks are for things that share a stakind.
> 
> I'll toy around with some workarounds for the '{}' case and get back to you.

Okay, thanks.  I'll probably tackle some more issues that are assigned
to my head first, which should take a couple of days.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)  latest in thread

Message-ID: <avKVFEGuLRlhdTyp@paquier.xyz>
Permalink:  ../avKVFEGuLRlhdTyp@paquier.xyz/
Also on:    postgresql.org/message-id/avKVFEGuLRlhdTyp@paquier.xyz

 · 

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-bugs@postgresql.org
  Cc: michael@paquier.xyz, corey.huinker@gmail.com, 303677365@qq.com
  Subject: Re: BUG #19842: pg_restore_extended_stats() rejects a faithful pg_dump of ANALYZE-produced range expression statisti
  In-Reply-To: <avKVFEGuLRlhdTyp@paquier.xyz>
  References: <19842-ca042326dd2430a4@postgresql.org> <avFaBdhb4ONGhIjH@paquier.xyz> <CADkLM=fvGCQWvrrDrSB2M7PHYS=PwLGU17LzoYE6u23t3KV5gQ@mail.gmail.com> <avKVFEGuLRlhdTyp@paquier.xyz>

* 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