]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add tab completion for the WAIT FOR LSN MODE option
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 5 Jan 2026 17:41:09 +0000 (19:41 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 5 Jan 2026 17:56:19 +0000 (19:56 +0200)
commit76948337f724fe92c937d3ccefe2cd08a45f4734
tree11a04464a34e8588c35b1b2d36b3ea7c9abb502b
parent49a181b5d634340fcfb7c762c387c03f6405367e
Add tab completion for the WAIT FOR LSN MODE option

Update psql tab completion to support the optional MODE option in the
WAIT FOR LSN command.  After specifying an LSN value, completion now offers
both MODE and WITH keywords.  The MODE option specifies which LSN type to wait
for.  In particular, it controls whether the wait is evaluated from the
standby or primary perspective.

When MODE is specified, the completion suggests the valid mode values:
standby_replay, standby_write, standby_flush, and primary_flush.

Discussion: https://postgr.es/m/CABPTF7UiArgW-sXj9CNwRzUhYOQrevLzkYcgBydmX5oDes1sjg%40mail.gmail.com
Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Alvaro Herrera <alvherre@kurilemu.de>
src/bin/psql/tab-complete.in.c