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: Improve tab completion for COPY ... STDIN/STDOUT.
Date: Tue, 04 Nov 2025 18:41:24 +0000
Message-ID: <E1vGLy8-00527N-0d@gemulon.postgresql.org> (raw)

psql: Improve tab completion for COPY ... STDIN/STDOUT.

This commit enhances tab completion for both COPY FROM and COPY TO
commands to suggest STDIN and STDOUT, respectively.

To make suggesting both file names and keywords easier, it introduces
a new COMPLETE_WITH_FILES_PLUS() macro.

Author: Yugo Nagata <nagata@sraoss.co.jp>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/20250605100835.b396f9d656df1018f65a4556@sraoss.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02fd47dbfade9b86ae4c34b5b01e10abb6dc45dc

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 84 ++++++++++++++++++++++++++++++++++++++----
1 file changed, 77 insertions(+), 7 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1vGLy8-00527N-0d@gemulon.postgresql.org>
Permalink:  ../E1vGLy8-00527N-0d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vGLy8-00527N-0d@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: Improve tab completion for COPY ... STDIN/STDOUT.
  In-Reply-To: <E1vGLy8-00527N-0d@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