]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Fix incorrect tab completion after CREATE PUBLICATION ... EXCEPT (...)
authorFujii Masao <fujii@postgresql.org>
Fri, 17 Apr 2026 05:31:05 +0000 (14:31 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 17 Apr 2026 05:31:05 +0000 (14:31 +0900)
commit4e0e1f3b2704e04768a4bccb7102450d74730a50
tree6cad0348c3f1620e26d1b6cb86b88977c492cd81
parentcda0c4c5d6f581cddaa24cde02c583d1c8f5521d
psql: Fix incorrect tab completion after CREATE PUBLICATION ... EXCEPT (...)

Previously, tab completion after EXCEPT (...) always suggested FROM SERVER.
This was correct for IMPORT FOREIGN SCHEMA ... EXCEPT (...), but became
incorrect once commit fd366065e06 added CREATE PUBLICATION ... EXCEPT (...).

This commit updates tab completion so FROM SERVER is no longer suggested
after CREATE PUBLICATION ... EXCEPT (...), while preserving the existing
behavior for IMPORT FOREIGN SCHEMA ... EXCEPT (...).

Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Shveta Malik <shveta.malik@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CALDaNm1-Fx6Msw6zcRuSjgQdw6asdTyp2DwP-4TCKGYAT+ndsA@mail.gmail.com
src/bin/psql/tab-complete.in.c