Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6a7283d

Browse files
committed
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 cleanup. However an upcoming patch has another need for walking plpgsqlfunctions' statement trees, so let's create sharable tree-walkerinfrastructure in the same style as expression_tree_walker().This patch actually makes the code shorter, although that'smainly down to having used a more compact coding style. (I didn'twrite a separate subroutine for each statement type, and I madeuse 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
1 parent6998db5 commit6a7283d

File tree

1 file changed

+244
-338
lines changed

1 file changed

+244
-338
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp