Stats: use schemaname/relname instead of regclass.
authorJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 18:16:06 +0000 (11:16 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 18:16:06 +0000 (11:16 -0700)
commit650ab8aaf1957863ae14c80265e79f5d903b49fd
tree6ea530310dc773d82160cc6cc6d66893ab8ec910
parent2a420f7995e415f4813fccf1c42ab29a3a32182f
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 <corey.huinker@gmail.com>
Discussion: https://postgr.es/m/CADkLM=ceOSsx_=oe73QQ-BxUFR2Cwqum7-UP_fPe22DBY0NerA@mail.gmail.com
doc/src/sgml/func.sgml
src/backend/statistics/attribute_stats.c
src/backend/statistics/relation_stats.c
src/backend/statistics/stat_utils.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/statistics/stat_utils.h
src/test/regress/expected/stats_import.out
src/test/regress/sql/stats_import.sql