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 option lists.
Date: Mon, 22 Dec 2025 22:29:03 +0000
Message-ID: <E1vXoOk-0029sw-2i@gemulon.postgresql.org> (raw)

psql: Improve tab completion for COPY option lists.

Previously, only the first option in a parenthesized option list was
suggested by tab completion. This commit enhances tab completion for
both COPY TO and COPY FROM commands to suggest options after each
comma.

Also add completion for HEADER and FREEZE option value candidates.

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/c6a7d3bab493e8d589f24d239db00ce5c2934178

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 68 +++++++++++++++++++++++++++---------------
1 file changed, 44 insertions(+), 24 deletions(-)



view thread (3+ messages)

Message-ID: <E1vXoOk-0029sw-2i@gemulon.postgresql.org>
Permalink:  ../E1vXoOk-0029sw-2i@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vXoOk-0029sw-2i@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 option lists.
  In-Reply-To: <E1vXoOk-0029sw-2i@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