postgresql/src/backend/catalog
Michael Paquier add5cf28d4 Preserve opclass parameters across REINDEX CONCURRENTLY
The opclass parameter Datums from the old index are fetched in the same
way as for predicates and expressions, by grabbing them directly from
the system catalogs.  They are then copied into the new IndexInfo that
will be used for the creation of the new copy.

This caused the new index to be rebuilt with default parameters rather
than the ones pre-defined by a user.  The only way to get back a new
index with correct opclass parameters would be to recreate a new index
from scratch.

The issue has been introduced by 911e702.

Author: Michael Paquier
Reviewed-by: Zhihong Yu
Discussion: https://postgr.es/m/YX0CG/QpLXcPr8HJ@paquier.xyz
Backpatch-through: 13
2021-11-01 11:38:23 +09:00
..
.gitignore Build in some knowledge about foreign-key relationships in the catalogs. 2021-02-02 17:11:55 -05:00
Catalog.pm Add index OID macro argument to DECLARE_INDEX 2021-06-29 08:08:40 +02:00
Makefile Allow publishing the tables of schema. 2021-10-27 07:44:52 +05:30
aclchk.c Allow publishing the tables of schema. 2021-10-27 07:44:52 +05:30
catalog.c Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
dependency.c Allow publishing the tables of schema. 2021-10-27 07:44:52 +05:30
genbki.pl Remove redundant setting of pg_attribute.attcompression 2021-07-31 07:25:27 -04:00
heap.c Ensure that slots are zeroed before use 2021-10-26 10:40:08 +02:00
index.c Preserve opclass parameters across REINDEX CONCURRENTLY 2021-11-01 11:38:23 +09:00
indexing.c Fix comment in indexing.c 2021-03-17 18:07:00 +09:00
information_schema.sql Add DISTINCT to information schema usage views 2021-04-21 11:54:47 +02:00
namespace.c Remove Value node struct 2021-09-09 08:36:53 +02:00
objectaccess.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
objectaddress.c Allow publishing the tables of schema. 2021-10-27 07:44:52 +05:30
partition.c ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY 2021-03-25 18:00:28 -03:00
pg_aggregate.c Reconsider the handling of procedure OUT parameters. 2021-06-10 17:11:36 -04:00
pg_cast.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_class.c Improve error messages about mismatching relkind 2021-07-08 09:44:51 +02:00
pg_collation.c Revert per-index collation version tracking feature. 2021-05-07 21:10:11 +12:00
pg_constraint.c Revert per-index collation version tracking feature. 2021-05-07 21:10:11 +12:00
pg_conversion.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_db_role_setting.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_depend.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
pg_enum.c Remove Value node struct 2021-09-09 08:36:53 +02:00
pg_inherits.c Message style improvements 2021-06-28 08:36:44 +02:00
pg_largeobject.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_namespace.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_operator.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
pg_proc.c Fix missed lock acquisition while inlining new-style SQL functions. 2021-08-31 12:02:36 -04:00
pg_publication.c Allow publishing the tables of schema. 2021-10-27 07:44:52 +05:30
pg_range.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_shdepend.c Ensure that slots are zeroed before use 2021-10-26 10:40:08 +02:00
pg_subscription.c Add support for prepared transactions to built-in logical replication. 2021-07-14 07:33:50 +05:30
pg_type.c Prevent ALTER TYPE/DOMAIN/OPERATOR from changing extension membership. 2021-08-17 14:29:22 -04:00
sql_feature_packages.txt Cleanup in SQL features files 2020-03-28 08:46:18 +01:00
sql_features.txt Fix use of cursor sensitivity terminology 2021-04-07 08:05:55 +02:00
storage.c Replace RelationOpenSmgr() with RelationGetSmgr(). 2021-07-12 17:01:36 -04:00
system_functions.sql Allow GRANT on pg_log_backend_memory_contexts(). 2021-10-26 13:31:38 -07:00
system_views.sql Grant memory views to pg_read_all_stats. 2021-10-27 14:06:30 -07:00
toasting.c Fix toast rewrites in logical decoding. 2021-08-25 09:53:07 +05:30