]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Add tab completion for pstdin and pstdout in \copy.
authorMasahiko Sawada <msawada@postgresql.org>
Thu, 8 Jan 2026 00:22:42 +0000 (16:22 -0800)
committerMasahiko Sawada <msawada@postgresql.org>
Thu, 8 Jan 2026 00:22:42 +0000 (16:22 -0800)
commit28c4b8a05ba5431168e4bc8683f07e03ac911a2c
tree120a0fcdc2d95a2bdc225802f4c0db5385497a0f
parente1c971945d62d3150ecfe353ce7bb4263916b489
psql: Add tab completion for pstdin and pstdout in \copy.

This commit adds tab completion support for the keywords "pstdin" and
"pstdout" in the \copy command. "pstdin" is now suggested after FROM,
and "pstdout" is suggested after TO, alongside filenames and other
keywords.

Author: Yugo Nagata <nagata@sraoss.co.jp>
Reviewed-by: Srinath Reddy Sadipiralla <srinath2133@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/20251231183953.95132e171e43abd5e9b78084@sraoss.co.jp
src/bin/psql/tab-complete.in.c