postgresql/src/include/commands
Tom Lane 6949b921d5 Avoid failure when altering state of partitioned foreign-key triggers.
Beginning in v15, if you apply ALTER TABLE ENABLE/DISABLE TRIGGER to
a partitioned table, it also affects the partitions' cloned versions
of the affected trigger(s).  The initial implementation of this
located the clones by name, but that fails on foreign-key triggers
which have names incorporating their own OIDs.  We can fix that, and
also make the behavior more bulletproof in the face of user-initiated
trigger renames, by identifying the cloned triggers by tgparentid.

Following the lead of earlier commits in this area, I took care not
to break ABI in the v15 branch, even though I rather doubt there
are any external callers of EnableDisableTrigger.

While here, update the documentation, which was not touched when
the semantics were changed.

Per bug #17817 from Alan Hodgson.  Back-patch to v15; older versions
do not have this behavior.

Discussion: https://postgr.es/m/17817-31dfb7c2100d9f3d@postgresql.org
2023-03-04 13:32:35 -05:00
..
alter.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
async.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
cluster.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
collationcmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
comment.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
conversioncmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
copy.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
copyfrom_internal.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
createas.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
dbcommands.h Adjust interaction of CREATEROLE with role properties. 2023-01-24 10:57:09 -05:00
dbcommands_xlog.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
defrem.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
discard.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
event_trigger.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
explain.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
extension.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
lockcmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
matview.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
policy.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
portalcmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
prepare.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
proclang.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
progress.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
publicationcmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
schemacmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
seclabel.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
sequence.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
subscriptioncmds.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
tablecmds.h Fix MAINTAIN privileges for toast tables and partitions. 2023-01-14 00:16:23 -08:00
tablespace.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
trigger.h Avoid failure when altering state of partitioned foreign-key triggers. 2023-03-04 13:32:35 -05:00
typecmds.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
user.h Add new GUC createrole_self_grant. 2023-01-10 12:44:49 -05:00
vacuum.h Revert "Add eager and lazy freezing strategies to VACUUM." 2023-01-25 22:22:27 -08:00
view.h Update copyright for 2023 2023-01-02 15:00:37 -05:00