Correct error message for row-level triggers with transition tables on partitioned tables.

Etsuro Fujita <efujita@postgresql.org>

Commit: 572695bcbcbd887fbf45653138e960831dd71db1
Author: Etsuro Fujita <efujita@postgresql.org>
Date: 2022-11-04T10:15:06Z
Releases: 12.13
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

Files

PathChange+/−
src/backend/commands/trigger.c modified +1 −1
src/test/regress/expected/triggers.out modified +1 −1

Discussion