pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix tab-completion for COPY and \copy options.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0514616f0e282e8962322fd72c68104ad0c44267

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e3584e457db2dc9fa0310bfd8d9d07fe65a281d3

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d69836b13c467fb64663f8d1f6d0ed976cc7824e

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c1c6169eb4f47a839b9ebd1ceb30722e0c9f4699

Modified Files
--------------
src/bin/psql/tab-complete.c | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/765a4c94ccc83ab95cf2d721e1ff97ba173c83e7

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix tab-completion for COPY and \copy options.
@ 2025-07-09 12:46  Masahiko Sawada <msawada@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Masahiko Sawada @ 2025-07-09 12:46 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix tab-completion for COPY and \copy options.

Commit c273d9d8ce4 reworked tab-completion of COPY and \copy in psql
and added support for completing options within WITH clauses. However,
the same COPY options were suggested for both COPY TO and COPY FROM
commands, even though some options are only valid for one or the
other.

This commit separates the COPY options for COPY FROM and COPY TO
commands to provide more accurate auto-completion suggestions.

Back-patch to v14 where tab-completion for COPY and \copy options
within WITH clauses was first supported.

Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp>
Discussion: https://postgr.es/m/079e7a2c801f252ae8d522b772790ed7@oss.nttdata.com
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f5a987c0e5f6bbf0cc0420228dc57e7aae4d7e8f

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-07-09 12:46 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>
2025-07-09 12:46 pgsql: Fix tab-completion for COPY and \copy options. Masahiko Sawada <msawada@postgresql.org>

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