| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix walker functions to return earlier. |
| Date: | 2026-01-22 04:30:19 |
| Message-ID: | E1vimKo-00CSTT-0g@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
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(at)postgresql(dot)org>
Reported-by: liujinyang-highgo
Backpatch-through: v4.3
Discussion: https://github.com/pgpool/pgpool2/issues/143
Branch
------
V4_4_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=10c9a008bfe9e34b9dace21c802f8b16a669c794
Modified Files
--------------
src/rewrite/pool_timestamp.c | 40 +++++++++++++++++++++++++++++++++++++++-
src/utils/pool_select_walker.c | 18 +++++++++---------
2 files changed, 48 insertions(+), 10 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-01-22 04:30:24 | pgpool: Fix walker functions to return earlier. |
| Previous Message | Tatsuo Ishii | 2026-01-22 04:30:13 | pgpool: Fix walker functions to return earlier. |