Update hints on trigger rename of partitions

There is a new commit in REL_15_STABLE that improves message styles.

Relevant PG commit:
517484b5820e9e20057ff066b5df7d09cbb5f464

(cherry picked from commit 8be8eb9d8c)
pull/6482/head
Hanefi Onaldi 2022-09-26 14:17:43 +03:00 committed by naisila
parent f06ae0c106
commit 0488697ff3
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ SELECT * FROM sale_triggers ORDER BY 1, 2;
-- test that we can't rename a distributed clone trigger
ALTER TRIGGER "new_record_sale_trigger" ON "pg15"."sale_newyork" RENAME TO "another_trigger_name";
ERROR: cannot rename trigger "new_record_sale_trigger" on table "sale_newyork"
HINT: Rename trigger on partitioned table "sale" instead.
HINT: Rename the trigger on the partitioned table "sale" instead.
--
-- In PG15, For GENERATED columns, all dependencies of the generation
-- expression are recorded as NORMAL dependencies of the column itself.

View File

@ -221,7 +221,7 @@ SELECT * FROM sale_triggers ORDER BY 1, 2;
-- after upgrade to PG15, test that we can't rename a distributed clone trigger
ALTER TRIGGER "renamed_yet_another_trigger" ON "sale_alabama" RENAME TO "another_trigger_name";
ERROR: cannot rename trigger "renamed_yet_another_trigger" on table "sale_alabama"
HINT: Rename trigger on partitioned table "sale" instead.
HINT: Rename the trigger on the partitioned table "sale" instead.
SELECT count(*) FROM pg_trigger WHERE tgname like 'another_trigger_name%';
count
---------------------------------------------------------------------