aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/nodeModifyTable.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-01-12 08:00:51 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-01-12 08:00:51 +0100
commitc8ad4d8166aabd6ed5124e7e432166637d0fe646 (patch)
treebdcd821b33d4d8a904f302cb28379823eb7589ae /src/include/executor/nodeModifyTable.h
parent881fa869c6b0c4e2f310d1c145141dd9d6f53774 (diff)
downloadpostgresql-c8ad4d8166aabd6ed5124e7e432166637d0fe646.tar.gz
postgresql-c8ad4d8166aabd6ed5124e7e432166637d0fe646.zip
Constify the arguments of ilist.c/h functions
Const qualifiers ensure that we don't do something stupid in the function implementation. Additionally they clarify the interface. As an example: void slist_delete(slist_head *head, const slist_node *node) Here one can instantly tell that node->next is not going to be set to NULL. Finally, const qualifiers potentially allow the compiler to do more optimizations. This being said, no benchmarking was done for this patch. The functions that return non-const pointers like slist_next_node(), dclist_next_node() etc. are not affected by the patch intentionally. Author: Aleksander Alekseev Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAJ7c6TM2%3D08mNKD9aJg8vEY9hd%2BG4L7%2BNvh30UiNT3kShgRgNg%40mail.gmail.com
Diffstat (limited to 'src/include/executor/nodeModifyTable.h')
0 files changed, 0 insertions, 0 deletions