From: Daniel Gustafsson Date: Mon, 25 May 2026 09:57:14 +0000 (+0200) Subject: psql: Tab completion for CHECKPOINT FLUSH_UNLOGGED boolean options X-Git-Tag: REL_19_BETA1~58 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7e5d8bd013e1fa3502d58de399815dedb81807c6;p=thirdparty%2Fpostgresql.git psql: Tab completion for CHECKPOINT FLUSH_UNLOGGED boolean options Tab completion for CHECKPOINT options contained FLUSH_UNLOGGED, but the boolean value was not part of the completion. Fix to make this consistent with other boolean values. Author: Chao Li Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/4855807D-F1CA-44E6-9B58-406691832848@gmail.com --- diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 364546c13e8..de547a8cb37 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -3274,6 +3274,8 @@ match_previous_words(int pattern_id, COMPLETE_WITH("MODE", "FLUSH_UNLOGGED"); else if (TailMatches("MODE")) COMPLETE_WITH("FAST", "SPREAD"); + else if (TailMatches("FLUSH_UNLOGGED")) + COMPLETE_WITH("ON", "OFF"); } /* CLOSE */ else if (Matches("CLOSE"))