mirror of https://github.com/citusdata/citus.git
17 lines
512 B
Plaintext
17 lines
512 B
Plaintext
--
|
|
-- UPGRADE_DISTRIBUTED_TRIGGERS_AFTER
|
|
--
|
|
-- In PG15, Renaming triggers on partitioned tables
|
|
-- recurses to renaming the triggers on the partitions as well.
|
|
-- Relevant PG commit:
|
|
-- 80ba4bb383538a2ee846fece6a7b8da9518b6866
|
|
--
|
|
-- this test is relevant only for pg14-15 upgrade
|
|
--
|
|
SHOW server_version \gset
|
|
SELECT substring(:'server_version', '\d+')::int = 15 AND EXISTS (SELECT * FROM pg_namespace WHERE nspname = 'upgrade_distributed_triggers') AS is_14_15_pg_upgrade
|
|
\gset
|
|
\if :is_14_15_pg_upgrade
|
|
\else
|
|
\q
|