Re: Added missing tab completion for alter subscription set option - Mailing list pgsql-hackers

From vignesh C
Subject Re: Added missing tab completion for alter subscription set option
Date
Msg-id CALDaNm2csfEe-Z-wxbVOuwp2+6Z7WhxUgxkbHnyxW-eusFX2wA@mail.gmail.com
Whole thread Raw
In response to Re: Added missing tab completion for alter subscription set option  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Added missing tab completion for alter subscription set option
List pgsql-hackers
On Fri, May 14, 2021 at 12:25 PM Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Fri, May 14, 2021 at 12:00 PM vignesh C <vignesh21@gmail.com> wrote:
> >
> > Hi,
> >
> > While I was reviewing one of the logical decoding features, I found
> > Streaming and binary options were missing in tab completion for the
> > alter subscription set option, the attached patch has the changes for
> > the same.
> > Thoughts?
>
> +1.
>
> Without patch:
> postgres=# alter subscription testsub set (S
> SLOT_NAME           SYNCHRONOUS_COMMIT
>
> With patch:
> postgres=# alter subscription testsub set (
> BINARY              SLOT_NAME           STREAMING           SYNCHRONOUS_COMMIT
>
> How about ordering the options alphabetically as the tab complete
> output anyways shows that way? I'm not sure if that's the practice,
> but just a thought.

I did not see any rule for this, but also did not see any harm in
keeping it in alphabetical order, so changed it in the attached patch.

Regards,
Vignesh

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: compute_query_id and pg_stat_statements
Next
From: Bharath Rupireddy
Date:
Subject: Re: Added missing tab completion for alter subscription set option