Re: Add expressions to pg_restore_extended_stats()

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, Tender Wang <tndrwang@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Tomas Vondra <tomas@vondra.me>
Date: 2026-02-09T07:59:13Z
Lists: pgsql-hackers
On Mon, Feb 09, 2026 at 02:25:49AM -0500, Corey Huinker wrote:
> I was thinking of doing exactly that, with a lot of language around how
> these extra patches don't need to make it into v19. But having said that,
> they'll probably be pretty small.

Getting the catalog change in would be nice at least, even if the
expression bits of the restore do not make it in time.  Thanks for
that.
--
Michael

Commits

  1. Refactor tests for catalog diff comparisons in stats_import.sql

  2. Fix typo in stats_import.sql

  3. Add support for "exprs" in pg_restore_extended_stats()

  4. Add information about range type stats to pg_stats_ext_exprs

  5. Fix comment in extended_stats_funcs.c