aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arraysubs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-02-11 12:14:12 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2025-02-11 12:14:12 -0500
commit6a7283dd2f1c573f2cf3daaf14e8a246577da57d (patch)
tree2e608d44b138fa15278f143ead6a984428e1aca9 /src/backend/utils/adt/arraysubs.c
parent6998db59c2959c4f280a9088054e6dbf7178efe0 (diff)
downloadpostgresql-6a7283dd2f1c573f2cf3daaf14e8a246577da57d.tar.gz
postgresql-6a7283dd2f1c573f2cf3daaf14e8a246577da57d.zip
Refactor pl_funcs.c to provide a usage-independent tree walker.
We haven't done this up to now because there was only one use-case, namely plpgsql_free_function_memory's search for expressions to clean up. However an upcoming patch has another need for walking plpgsql functions' statement trees, so let's create sharable tree-walker infrastructure in the same style as expression_tree_walker(). This patch actually makes the code shorter, although that's mainly down to having used a more compact coding style. (I didn't write a separate subroutine for each statement type, and I made use of some newer notations like foreach_ptr.) Author: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru> Reviewed-by: Pavel Borisov <pashkin.elfe@gmail.com> Discussion: https://postgr.es/m/CACxu=vJaKFNsYxooSnW1wEgsAO5u_v1XYBacfVJ14wgJV_PYeg@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/arraysubs.c')
0 files changed, 0 insertions, 0 deletions