Correct error message for row-level triggers with transition tables on partitioned...
authorEtsuro Fujita <efujita@postgresql.org>
Fri, 4 Nov 2022 10:15:00 +0000 (19:15 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Fri, 4 Nov 2022 10:15:00 +0000 (19:15 +0900)
commit8c7146790811ac4eee23fab2226db14b636e1ac5
treec59bd0b5a11a7f92fb42d29ba708b0e244f06a8c
parent3e77b2eb3466aff9fe19e209ebc0d899ea869494
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
src/backend/commands/trigger.c
src/test/regress/expected/triggers.out