From 0488697ff36daca24c3dde36ef23474172983daf Mon Sep 17 00:00:00 2001 From: Hanefi Onaldi Date: Mon, 26 Sep 2022 14:17:43 +0300 Subject: [PATCH] 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 8be8eb9d8c9c20c316a27a83869b066969ac2f51) --- src/test/regress/expected/pg15.out | 2 +- .../regress/expected/upgrade_distributed_triggers_after.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/regress/expected/pg15.out b/src/test/regress/expected/pg15.out index fad2e4aba..acf92f49a 100644 --- a/src/test/regress/expected/pg15.out +++ b/src/test/regress/expected/pg15.out @@ -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. diff --git a/src/test/regress/expected/upgrade_distributed_triggers_after.out b/src/test/regress/expected/upgrade_distributed_triggers_after.out index 2e3f7330b..7037b4c50 100644 --- a/src/test/regress/expected/upgrade_distributed_triggers_after.out +++ b/src/test/regress/expected/upgrade_distributed_triggers_after.out @@ -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 ---------------------------------------------------------------------