Re: Add starelid, attnum to pg_stats and leverage this in pg_dump

Corey Huinker <corey.huinker@gmail.com>

From: Corey Huinker <corey.huinker@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: nathandbossart@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2026-03-05T21:40:56Z
Lists: pgsql-hackers
>
>
> BTW, I do not see a CF enty for this.


I just created https://commitfest.postgresql.org/patch/6568/ - thanks!

Commits

  1. pg_dump: Simplify query for retrieving attribute statistics.

  2. Add more columns to pg_stats, pg_stats_ext, and pg_stats_ext_exprs.

  3. Add convenience view to stats import test.