From: Fujii Masao Date: Wed, 24 Jun 2026 13:57:50 +0000 (+0900) Subject: psql: Add tab completion for subscription wal_receiver_timeout X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b2792cf84fc78f9109b0ae122174e70379ad07;p=thirdparty%2Fpostgresql.git psql: Add tab completion for subscription wal_receiver_timeout Commit fb80f388f added wal_receiver_timeout as a CREATE/ALTER SUBSCRIPTION option, but psql tab completion did not include it in the subscription option lists. Add wal_receiver_timeout to completion for CREATE SUBSCRIPTION ... WITH and ALTER SUBSCRIPTION ... SET. Author: Chao Li Reviewed-by: Bharath Rupireddy Reviewed-by: Xuneng Zhou Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/BBC5628A-63C0-4436-B8F3-90AF59BBEB73@gmail.com --- diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index de547a8cb37..46b9add0604 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -2380,7 +2380,8 @@ match_previous_words(int pattern_id, "max_retention_duration", "origin", "password_required", "retain_dead_tuples", "run_as_owner", "slot_name", "streaming", - "synchronous_commit", "two_phase"); + "synchronous_commit", "two_phase", + "wal_receiver_timeout"); /* ALTER SUBSCRIPTION SKIP ( */ else if (Matches("ALTER", "SUBSCRIPTION", MatchAny, MatchAnyN, "SKIP", "(")) COMPLETE_WITH("lsn"); @@ -3965,7 +3966,8 @@ match_previous_words(int pattern_id, "max_retention_duration", "origin", "password_required", "retain_dead_tuples", "run_as_owner", "slot_name", "streaming", - "synchronous_commit", "two_phase"); + "synchronous_commit", "two_phase", + "wal_receiver_timeout"); /* CREATE TRIGGER --- is allowed inside CREATE SCHEMA, so use TailMatches */