]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add some const qualifiers enabled by typeof_unqual change on copyObject
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 19 Mar 2026 05:34:27 +0000 (06:34 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 19 Mar 2026 05:35:54 +0000 (06:35 +0100)
commit7724cb9935a96eabba80f5e62ee4b32068967dd2
treebce3f5c3579e63752af08622b54700702655d4f9
parent46fb08aff69fd293961ac57e9339aef855555692
Add some const qualifiers enabled by typeof_unqual change on copyObject

The recent commit to change copyObject() to use typeof_unqual allows
cleaning up some APIs to take advantage of this improved qualifier
handling.  EventTriggerCollectSimpleCommand() is a good example: It
takes a node tree and makes a copy that it keeps around for its
internal purposes, but it can't communicate via its function signature
that it promises not scribble on the passed node tree.  That is now
fixed.

Reviewed-by: David Geier <geidav.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/92f9750f-c7f6-42d8-9a4a-85a3cbe808f3%40eisentraut.org
13 files changed:
src/backend/catalog/index.c
src/backend/commands/event_trigger.c
src/backend/commands/indexcmds.c
src/backend/commands/trigger.c
src/backend/optimizer/prep/prepjointree.c
src/backend/partitioning/partprune.c
src/backend/rewrite/rewriteManip.c
src/backend/utils/cache/plancache.c
src/include/commands/defrem.h
src/include/commands/event_trigger.h
src/include/commands/trigger.h
src/include/rewrite/rewriteManip.h
src/include/utils/plancache.h