postgresql/src
Alexander Korotkov 76948337f7 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>
2026-01-05 19:56:19 +02:00
..
backend Add the MODE option to the WAIT FOR LSN command 2026-01-05 19:56:19 +02:00
bin Add tab completion for the WAIT FOR LSN MODE option 2026-01-05 19:56:19 +02:00
common Separate read and write pointers in pg_saslprep 2026-01-05 11:03:49 +01:00
fe_utils Update copyright for 2026 2026-01-01 13:24:10 -05:00
include Extend xlogwait infrastructure with write and flush wait types 2026-01-05 19:56:19 +02:00
interfaces Update copyright for 2026 2026-01-01 13:24:10 -05:00
makefiles Update copyright for 2026 2026-01-01 13:24:10 -05:00
pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
port Update copyright for 2026 2026-01-01 13:24:10 -05:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Add the MODE option to the WAIT FOR LSN command 2026-01-05 19:56:19 +02:00
timezone Update copyright for 2026 2026-01-01 13:24:10 -05:00
tools Fix typos and inconsistencies in code and comments 2026-01-05 09:19:15 +09:00
tutorial Update copyright for 2026 2026-01-01 13:24:10 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in libpq: Refactor logic checking for exit() in shared library builds 2025-12-09 10:39:08 +09:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00