diff options
author | Etsuro Fujita <efujita@postgresql.org> | 2022-11-04 19:15:01 +0900 |
---|---|---|
committer | Etsuro Fujita <efujita@postgresql.org> | 2022-11-04 19:15:01 +0900 |
commit | 81173264440d7d3bd6479313b1d4611a2bfe8031 (patch) | |
tree | ec93b70a8e63fc8f654a737c0d88f833c7a41874 /src/backend | |
parent | 387e059f8e9c506aba17d63e7220cad2f488f238 (diff) | |
download | postgresql-81173264440d7d3bd6479313b1d4611a2bfe8031.tar.gz postgresql-81173264440d7d3bd6479313b1d4611a2bfe8031.zip |
Correct error message for row-level triggers with transition tables on partitioned tables.
"Triggers on partitioned tables cannot have transition tables." is
incorrect as we allow statement-level triggers on partitioned tables to
have transition tables.
This has been wrong since commit 86f575948; back-patch to v11 where that
commit came in.
Reviewed by Tom Lane.
Discussion: https://postgr.es/m/CAPmGK17gk4vXLzz2iG%2BG4LWRWCoVyam70nZ3OuGm1hMJwDrhcg%40mail.gmail.com
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/commands/trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 6775ea6e01f..36f10824077 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -262,7 +262,7 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("\"%s\" is a partitioned table", RelationGetRelationName(rel)), - errdetail("Triggers on partitioned tables cannot have transition tables."))); + errdetail("ROW triggers with transition tables are not supported on partitioned tables."))); } } else if (rel->rd_rel->relkind == RELKIND_VIEW) |