Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26c1cab

Browse files
author
Etsuro Fujita
committed
Correct error message for row-level triggers with transition tables on partitioned tables.
"Triggers on partitioned tables cannot have transition tables." isincorrect as we allow statement-level triggers on partitioned tables tohave transition tables.This has been wrong since commit86f5759; back-patch to v11 where thatcommit came in.Reviewed by Tom Lane.Discussion:https://postgr.es/m/CAPmGK17gk4vXLzz2iG%2BG4LWRWCoVyam70nZ3OuGm1hMJwDrhcg%40mail.gmail.com
1 parent41b6e7c commit26c1cab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/commands/trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString,
245245
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
246246
errmsg("\"%s\" is a partitioned table",
247247
RelationGetRelationName(rel)),
248-
errdetail("Triggers on partitionedtablescannot have transition tables.")));
248+
errdetail("ROW triggers with transitiontablesare not supported on partitioned tables.")));
249249
}
250250
}
251251
elseif (rel->rd_rel->relkind==RELKIND_VIEW)

‎src/test/regress/expected/triggers.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ create trigger failed after update on parted_trig
20202020
referencing old table as old_table
20212021
for each row execute procedure trigger_nothing();
20222022
ERROR: "parted_trig" is a partitioned table
2023-
DETAIL:Triggers on partitionedtablescannot have transition tables.
2023+
DETAIL:ROW triggers with transitiontablesare not supported on partitioned tables.
20242024
drop table parted_trig;
20252025
--
20262026
-- Verify trigger creation for partitioned tables, and drop behavior

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp