psql: add tab completion for subscription wal_receiver_timeout

Started by Chao Li5 months ago7 messageshackers
Jump to latest
#1Chao Li
li.evan.chao@gmail.com

Hi,

While testing "[fb80f388f] Add per-subscription wal_receiver_timeout setting", I noticed that wal_receiver_timeout is missing from tab completion for both CREATE SUBSCRIPTION WITH and ALTER SUBSCRIPTION SET:
```
evantest=# create subscription ss with (
BINARY CREATE_SLOT FAILOVER PASSWORD_REQUIRED SLOT_NAME TWO_PHASE
CONNECT DISABLE_ON_ERROR MAX_RETENTION_DURATION RETAIN_DEAD_TUPLES STREAMING
COPY_DATA ENABLED ORIGIN RUN_AS_OWNER SYNCHRONOUS_COMMIT
evantest=# alter subscription ss set (
BINARY FAILOVER ORIGIN RETAIN_DEAD_TUPLES SLOT_NAME SYNCHRONOUS_COMMIT
DISABLE_ON_ERROR MAX_RETENTION_DURATION PASSWORD_REQUIRED RUN_AS_OWNER STREAMING TWO_PHASE
```

This is a tiny patch to fix that.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachments:

v1-0001-psql-add-tab-completion-for-subscription-wal_rece.patchapplication/octet-stream; name=v1-0001-psql-add-tab-completion-for-subscription-wal_rece.patch; x-unix-mode=0644Download+4-3
#2Bharath Rupireddy
bharath.rupireddyforpostgres@gmail.com
In reply to: Chao Li (#1)
Re: psql: add tab completion for subscription wal_receiver_timeout

Hi,

On Tue, Jun 23, 2026 at 8:50 PM Chao Li <li.evan.chao@gmail.com> wrote:

Hi,

While testing "[fb80f388f] Add per-subscription wal_receiver_timeout setting", I noticed that wal_receiver_timeout is missing from tab completion for both CREATE SUBSCRIPTION WITH and ALTER SUBSCRIPTION SET:
```
evantest=# create subscription ss with (
BINARY CREATE_SLOT FAILOVER PASSWORD_REQUIRED SLOT_NAME TWO_PHASE
CONNECT DISABLE_ON_ERROR MAX_RETENTION_DURATION RETAIN_DEAD_TUPLES STREAMING
COPY_DATA ENABLED ORIGIN RUN_AS_OWNER SYNCHRONOUS_COMMIT
evantest=# alter subscription ss set (
BINARY FAILOVER ORIGIN RETAIN_DEAD_TUPLES SLOT_NAME SYNCHRONOUS_COMMIT
DISABLE_ON_ERROR MAX_RETENTION_DURATION PASSWORD_REQUIRED RUN_AS_OWNER STREAMING TWO_PHASE
```

This is a tiny patch to fix that.

Thanks for the patch.

LGTM.

--
Bharath Rupireddy
Amazon Web Services: https://aws.amazon.com

#3Xuneng Zhou
xunengzhou@gmail.com
In reply to: Chao Li (#1)
Re: psql: add tab completion for subscription wal_receiver_timeout

Hi Evan,

On Wed, Jun 24, 2026 at 11:50 AM Chao Li <li.evan.chao@gmail.com> wrote:

Hi,

While testing "[fb80f388f] Add per-subscription wal_receiver_timeout setting", I noticed that wal_receiver_timeout is missing from tab completion for both CREATE SUBSCRIPTION WITH and ALTER SUBSCRIPTION SET:
```
evantest=# create subscription ss with (
BINARY CREATE_SLOT FAILOVER PASSWORD_REQUIRED SLOT_NAME TWO_PHASE
CONNECT DISABLE_ON_ERROR MAX_RETENTION_DURATION RETAIN_DEAD_TUPLES STREAMING
COPY_DATA ENABLED ORIGIN RUN_AS_OWNER SYNCHRONOUS_COMMIT
evantest=# alter subscription ss set (
BINARY FAILOVER ORIGIN RETAIN_DEAD_TUPLES SLOT_NAME SYNCHRONOUS_COMMIT
DISABLE_ON_ERROR MAX_RETENTION_DURATION PASSWORD_REQUIRED RUN_AS_OWNER STREAMING TWO_PHASE
```

This is a tiny patch to fix that.

The patch LGTM. I've verified that SUBOPT_WAL_RECEIVER_TIMEOUT is in
both the CREATE and ALTER supported-option masks.

--
Regards,
Xuneng Zhou
HighGo Software Co., Ltd.

#4Fujii Masao
masao.fujii@gmail.com
In reply to: Xuneng Zhou (#3)
Re: psql: add tab completion for subscription wal_receiver_timeout

On Wed, Jun 24, 2026 at 4:52 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

This is a tiny patch to fix that.

The patch LGTM. I've verified that SUBOPT_WAL_RECEIVER_TIMEOUT is in
both the CREATE and ALTER supported-option masks.

Thanks for the patch! LGTM.

Since wal_receiver_timeout subscription option is new in v19, I'm thinking
to commit this to v19 rather than v20.

Regards,

--
Fujii Masao

#5Chao Li
li.evan.chao@gmail.com
In reply to: Fujii Masao (#4)
Re: psql: add tab completion for subscription wal_receiver_timeout

On Jun 24, 2026, at 16:23, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jun 24, 2026 at 4:52 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

This is a tiny patch to fix that.

The patch LGTM. I've verified that SUBOPT_WAL_RECEIVER_TIMEOUT is in
both the CREATE and ALTER supported-option masks.

Thanks for the patch! LGTM.

Since wal_receiver_timeout subscription option is new in v19, I'm thinking
to commit this to v19 rather than v20.

I think so.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

#6Fujii Masao
masao.fujii@gmail.com
In reply to: Chao Li (#5)
Re: psql: add tab completion for subscription wal_receiver_timeout

On Wed, Jun 24, 2026 at 5:31 PM Chao Li <li.evan.chao@gmail.com> wrote:

On Jun 24, 2026, at 16:23, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jun 24, 2026 at 4:52 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

This is a tiny patch to fix that.

The patch LGTM. I've verified that SUBOPT_WAL_RECEIVER_TIMEOUT is in
both the CREATE and ALTER supported-option masks.

Thanks for the patch! LGTM.

Since wal_receiver_timeout subscription option is new in v19, I'm thinking
to commit this to v19 rather than v20.

I think so.

I've pushed the patch. Thanks!

Regards,

--
Fujii Masao

#7Chao Li
li.evan.chao@gmail.com
In reply to: Fujii Masao (#6)
Re: psql: add tab completion for subscription wal_receiver_timeout

On Jun 24, 2026, at 22:02, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jun 24, 2026 at 5:31 PM Chao Li <li.evan.chao@gmail.com> wrote:

On Jun 24, 2026, at 16:23, Fujii Masao <masao.fujii@gmail.com> wrote:

On Wed, Jun 24, 2026 at 4:52 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

This is a tiny patch to fix that.

The patch LGTM. I've verified that SUBOPT_WAL_RECEIVER_TIMEOUT is in
both the CREATE and ALTER supported-option masks.

Thanks for the patch! LGTM.

Since wal_receiver_timeout subscription option is new in v19, I'm thinking
to commit this to v19 rather than v20.

I think so.

I've pushed the patch. Thanks!

Regards,

--
Fujii Masao

Thanks a lot for pushing.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/