From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more columns to pg_stats, pg_stats_ext, and pg_stats_ext_exp
Date: Tue, 17 Mar 2026 14:26:55 +0000
Message-ID: <E1w2VNm-000Atp-2U@gemulon.postgresql.org> (raw)
Add more columns to pg_stats, pg_stats_ext, and pg_stats_ext_exprs.
This commit adds table OID and attribute number columns to
pg_stats, and it adds table OID and statistics object OID columns
to pg_stats_ext and pg_stats_ext_exprs. A proposed follow-up
commit would use pg_stats.tableid to simplify a query in pg_dump.
The others have no immediate purpose but may be useful later.
Bumps catversion.
Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CADkLM%3DcoCVy92QkVUUTLdo5eO2bMDtwMrzRn_8miAhX%2BuPaqXg%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3b88e50d6c2ef972748378a10fc444efae90ed14
Modified Files
--------------
doc/src/sgml/system-views.sgml | 60 ++++++++++++++++++++++++++++++
src/backend/catalog/system_views.sql | 6 +++
src/include/catalog/catversion.h | 2 +-
src/test/regress/expected/rules.out | 6 +++
src/test/regress/expected/stats_import.out | 4 +-
5 files changed, 75 insertions(+), 3 deletions(-)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add more columns to pg_stats, pg_stats_ext, and pg_stats_ext_exp
In-Reply-To: <E1w2VNm-000Atp-2U@gemulon.postgresql.org>
* 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