pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Add tab completion for pstdin and pstdout in \copy.
Date: Thu, 08 Jan 2026 00:22:55 +0000
Message-ID: <E1vddni-005CDQ-1H@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/28c4b8a05ba5431168e4bc8683f07e03ac911a2c

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)



Message-ID: <E1vddni-005CDQ-1H@gemulon.postgresql.org>
Permalink:  ../E1vddni-005CDQ-1H@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vddni-005CDQ-1H@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: psql: Add tab completion for pstdin and pstdout in \copy.
  In-Reply-To: <E1vddni-005CDQ-1H@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox