Explain why we have alternative multi_mx_hide_shard_names

naisila/drop-pg15
naisila 2025-12-07 22:29:50 +03:00
parent ed9a66c3ee
commit 15438e2abc
3 changed files with 18 additions and 0 deletions

View File

@ -1,6 +1,12 @@
--
-- Hide shard names on MX worker nodes
--
-- PostgreSQL 18 planner changes (probably AIO and updated cost model) make
-- sequential scans cheaper, so the psql `\d table`-style query that uses a
-- regex on `pg_class.relname` no longer chooses an index scan. This causes
-- a plan difference.
-- Alternative test output can be removed when we drop PG17 support
--
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1130000;
-- make sure that the signature of the citus_table_is_visible
-- and pg_table_is_visible are the same since the logic

View File

@ -1,6 +1,12 @@
--
-- Hide shard names on MX worker nodes
--
-- PostgreSQL 18 planner changes (probably AIO and updated cost model) make
-- sequential scans cheaper, so the psql `\d table`-style query that uses a
-- regex on `pg_class.relname` no longer chooses an index scan. This causes
-- a plan difference.
-- Alternative test output can be removed when we drop PG17 support
--
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1130000;
-- make sure that the signature of the citus_table_is_visible
-- and pg_table_is_visible are the same since the logic

View File

@ -1,6 +1,12 @@
--
-- Hide shard names on MX worker nodes
--
-- PostgreSQL 18 planner changes (probably AIO and updated cost model) make
-- sequential scans cheaper, so the psql `\d table`-style query that uses a
-- regex on `pg_class.relname` no longer chooses an index scan. This causes
-- a plan difference.
-- Alternative test output can be removed when we drop PG17 support
--
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1130000;