Fix walker functions to return earlier. master
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 22 Jan 2026 04:18:00 +0000 (13:18 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 22 Jan 2026 04:25:39 +0000 (13:25 +0900)
commit747358a97a39568e9a8ba5b6433fa464e2215318
tree55944c5bb178b2037216daccc9b1e0f9b62ce973
parentec76aec16e3b7784f23773d00460bd09af39d401
Fix walker functions to return earlier.

Previously walker functions returned false once it found target
objects.  But it is possible to short-circuit the traverse and it
should have been.

Also import comments from PostgreSQL to clarify walker function
design.

Author: Tatsuo Ishii <ishii@postgresql.org>
Reported-by: liujinyang-highgo
Backpatch-through: v4.3
Discussion: https://github.com/pgpool/pgpool2/issues/143
src/rewrite/pool_timestamp.c
src/utils/pool_select_walker.c