Skip to content

Commit 56b2792

Browse files
committed
psql: Add tab completion for subscription wal_receiver_timeout
Commit fb80f38 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 <lic@highgo.com> Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/BBC5628A-63C0-4436-B8F3-90AF59BBEB73@gmail.com
1 parent a7f59b2 commit 56b2792

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/bin/psql/tab-complete.in.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,8 @@ match_previous_words(int pattern_id,
23802380
"max_retention_duration", "origin",
23812381
"password_required", "retain_dead_tuples",
23822382
"run_as_owner", "slot_name", "streaming",
2383-
"synchronous_commit", "two_phase");
2383+
"synchronous_commit", "two_phase",
2384+
"wal_receiver_timeout");
23842385
/* ALTER SUBSCRIPTION <name> SKIP ( */
23852386
else if (Matches("ALTER", "SUBSCRIPTION", MatchAny, MatchAnyN, "SKIP", "("))
23862387
COMPLETE_WITH("lsn");
@@ -3965,7 +3966,8 @@ match_previous_words(int pattern_id,
39653966
"max_retention_duration", "origin",
39663967
"password_required", "retain_dead_tuples",
39673968
"run_as_owner", "slot_name", "streaming",
3968-
"synchronous_commit", "two_phase");
3969+
"synchronous_commit", "two_phase",
3970+
"wal_receiver_timeout");
39693971

39703972
/* CREATE TRIGGER --- is allowed inside CREATE SCHEMA, so use TailMatches */
39713973

0 commit comments

Comments
 (0)