From: | Masahiko Sawada <msawada(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: psql: Add COMPLETE_WITH_FILES and COMPLETE_WITH_GENERATOR macros |
Date: | 2025-09-25 21:28:40 |
Message-ID: | E1v1tW4-0004iq-1L@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
psql: Add COMPLETE_WITH_FILES and COMPLETE_WITH_GENERATOR macros.
While most tab completions in match_previous_words() use
COMPLETE_WITH* macros to wrap rl_completion_matches(), some direct
calls to rl_completion_matches() still remained.
This commit introduces COMPLETE_WITH_FILES and COMPLETE_WITH_GENERATOR
macros to replace these direct calls, enhancing both code consistency
and readability.
Author: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Discussion: https://postgr.es/m/20250605100835.b396f9d656df1018f65a4556@sraoss.co.jp
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/76418a0b676234d2b570a1138c1a43a2018c416f
Modified Files
--------------
src/bin/psql/tab-complete.in.c | 38 ++++++++++++++++++--------------------
1 file changed, 18 insertions(+), 20 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2025-09-25 22:21:48 | pgsql: Remove unused parameter from check_and_push_window_quals |
Previous Message | Tom Lane | 2025-09-25 21:02:20 | pgsql: Try to avoid floating-point roundoff error in pg_sleep(). |