From 3e1598c47e4a8ee488be1484b1a08867405dd504 Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Wed, 24 Jun 2026 11:41:02 +0800 Subject: [PATCH v1] 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 --- src/bin/psql/tab-complete.in.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.50.1 (Apple Git-155)