diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-07-22 18:33:47 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2021-07-22 18:33:47 -0400 |
commit | 80ba4bb383538a2ee846fece6a7b8da9518b6866 (patch) | |
tree | 02012f820704c1e726a1774b46a926330e31f9a5 /src/backend/executor/execMain.c | |
parent | 73c5d2bfee2907b7f158485a531f00ba61b054f7 (diff) | |
download | postgresql-80ba4bb383538a2ee846fece6a7b8da9518b6866.tar.gz postgresql-80ba4bb383538a2ee846fece6a7b8da9518b6866.zip |
Make ALTER TRIGGER RENAME consistent for partitioned tables
Renaming triggers on partitioned tables had two problems: first,
it did not recurse to renaming the triggers on the partitions; and
second, it failed to prohibit renaming clone triggers. Having triggers
with different names in partitions is pointless, and furthermore pg_dump
would not preserve names for partitions anyway.
Not backpatched -- making the ALTER TRIGGER throw an error in stable
versions might cause problems for existing scripts.
Co-authored-by: Arne Roland <A.Roland@index.de>
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Zhihong Yu <zyu@yugabyte.com>
Discussion: https://postgr.es/m/d0fd7040c2fb4de1a111b9d9ccc456b8@index.de
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions