Add tab completion support for WAIT FOR command

Started by Xuneng Zhouabout 1 year ago6 messageshackers
Jump to latest
#1Xuneng Zhou
xunengzhou@gmail.com

Hi hackers,

Thread [1]Implement tab completion for the WAIT FOR LSN command in psql. /messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com proposed the WAIT FOR command. This thread presents a
follow-up patch adding tab completion support, per Jian’s idea.

[1]: Implement tab completion for the WAIT FOR LSN command in psql. /messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com
/messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com

Attachments:

v11-0001-Implement-WAIT-FOR-command.patchapplication/octet-stream; name=v11-0001-Implement-WAIT-FOR-command.patchDownload+1435-15
v1-0001-Add-tab-completion-support-for-WAIT-FOR-command.patchapplication/octet-stream; name=v1-0001-Add-tab-completion-support-for-WAIT-FOR-command.patchDownload+42-2
#2Xuneng Zhou
xunengzhou@gmail.com
In reply to: Xuneng Zhou (#1)
Re: Add tab completion support for WAIT FOR command

Hi,

On Mon, Sep 29, 2025 at 2:37 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

Hi hackers,

Thread [1] proposed the WAIT FOR command. This thread presents a
follow-up patch adding tab completion support, per Jian’s idea.

[1] Implement tab completion for the WAIT FOR LSN command in psql.
/messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com

Sorry for the mismatch between link and description in last message.
The thread for WAIT FOR command is:

/messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com

#3Xuneng Zhou
xunengzhou@gmail.com
In reply to: Xuneng Zhou (#2)
Re: Add tab completion support for WAIT FOR command

Hi,

On Mon, Sep 29, 2025 at 2:42 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

Hi,

On Mon, Sep 29, 2025 at 2:37 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

Hi hackers,

Thread [1] proposed the WAIT FOR command. This thread presents a
follow-up patch adding tab completion support, per Jian’s idea.

[1] Implement tab completion for the WAIT FOR LSN command in psql.
/messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com

Sorry for the mismatch between link and description in last message.
The thread for WAIT FOR command is:

/messages/by-id/CAPpHfdsjtZLVzxjGT8rJHCYbM0D5dwkO+BBjcirozJ6nYbOW8Q@mail.gmail.com

The WAIT FOR command was committed in 447aae1; this patch has been
updated to match its grammar.

Best,
Xuneng

Attachments:

v2-0001-Add-tab-completion-support-for-WAIT-FOR-command.patchapplication/octet-stream; name=v2-0001-Add-tab-completion-support-for-WAIT-FOR-command.patchDownload+34-2
#4Alexander Korotkov
aekorotkov@gmail.com
In reply to: Xuneng Zhou (#3)
Re: Add tab completion support for WAIT FOR command

Hi, Xuneng!

On Fri, Nov 7, 2025 at 12:10 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

The WAIT FOR command was committed in 447aae1; this patch has been
updated to match its grammar.

I made minor adjustments to the patch. I'm going to push it if no objections.

------
Regards,
Alexander Korotkov
Supabase

Attachments:

v3-0001-Add-tab-completion-support-for-the-WAIT-FOR-comma.patchapplication/octet-stream; name=v3-0001-Add-tab-completion-support-for-the-WAIT-FOR-comma.patchDownload+36-2
#5Xuneng Zhou
xunengzhou@gmail.com
In reply to: Alexander Korotkov (#4)
Re: Add tab completion support for WAIT FOR command

Hi Alexander,

On Sat, Nov 8, 2025 at 7:33 PM Alexander Korotkov <aekorotkov@gmail.com> wrote:

Hi, Xuneng!

On Fri, Nov 7, 2025 at 12:10 PM Xuneng Zhou <xunengzhou@gmail.com> wrote:

The WAIT FOR command was committed in 447aae1; this patch has been
updated to match its grammar.

I made minor adjustments to the patch. I'm going to push it if no objections.

LGTM, thanks.

Best,
Xuneng

#6Alexander Korotkov
aekorotkov@gmail.com
In reply to: Xuneng Zhou (#5)
Re: Add tab completion support for WAIT FOR command

On Sun, Nov 9, 2025 at 5:12 AM Xuneng Zhou <xunengzhou@gmail.com> wrote:

On Sat, Nov 8, 2025 at 7:33 PM Alexander Korotkov <aekorotkov@gmail.com>
wrote:

Hi, Xuneng!

On Fri, Nov 7, 2025 at 12:10 PM Xuneng Zhou <xunengzhou@gmail.com>

wrote:

The WAIT FOR command was committed in 447aae1; this patch has been
updated to match its grammar.

I made minor adjustments to the patch. I'm going to push it if no

objections.

LGTM, thanks.

Pushed, thank you!

------
Regards,
Alexander Korotkov
Supabase