public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jeff Davis <[email protected]>
To: [email protected]
Subject: pgsql: Stats: use schemaname/relname instead of regclass.
Date: Tue, 25 Mar 2025 18:19:18 +0000
Message-ID: <[email protected]> (raw)
Stats: use schemaname/relname instead of regclass.
For import and export, use schemaname/relname rather than
regclass.
This is more natural during export, fits with the other arguments
better, and it gives better control over error handling in case we
need to downgrade more errors to warnings.
Also, use text for the argument types for schemaname, relname, and
attname so that casts to "name" are not required.
Author: Corey Huinker <[email protected]>
Discussion: https://postgr.es/m/CADkLM=ceOSsx_=oe73QQ-BxUFR2Cwqum7-UP_fPe22DBY0NerA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/650ab8aaf1957863ae14c80265e79f5d903b49fd
Modified Files
--------------
doc/src/sgml/func.sgml | 45 ++--
src/backend/statistics/attribute_stats.c | 61 ++++--
src/backend/statistics/relation_stats.c | 54 +++--
src/backend/statistics/stat_utils.c | 22 ++
src/bin/pg_dump/pg_dump.c | 25 ++-
src/bin/pg_dump/t/002_pg_dump.pl | 6 +-
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 8 +-
src/include/statistics/stat_utils.h | 2 +
src/test/regress/expected/stats_import.out | 337 ++++++++++++++++++++---------
src/test/regress/sql/stats_import.sql | 306 +++++++++++++++++---------
11 files changed, 579 insertions(+), 289 deletions(-)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: Stats: use schemaname/relname instead of regclass.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox