Re: Add starelid, attnum to pg_stats and leverage this in pg_dump
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: Corey Huinker <corey.huinker@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2026-03-09T15:51:01Z
Lists: pgsql-hackers
On Mon, Mar 09, 2026 at 10:44:58AM -0500, Sami Imseih wrote: >> Oh, a question I forgot to ask: why wouldn't we do the same thing for >> pg_stats_ext and pg_stats_ext_exprs? > > [...] > > If we do add relid there, it will be for consistency only. It might be only for consistency for now, but it strikes me as something that could be handy down the road (in which case it'd be nice to minimize the number of versions that need a fallback). -- nathan
Commits
-
pg_dump: Simplify query for retrieving attribute statistics.
- 4b5ba0c4ca52 19 (unreleased) landed
-
Add more columns to pg_stats, pg_stats_ext, and pg_stats_ext_exprs.
- 3b88e50d6c2e 19 (unreleased) landed
-
Add convenience view to stats import test.
- 233bbdf031e4 19 (unreleased) landed