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: Fix tab completion for FOREIGN DATA WRAPPER and SUBSCRIPTI
Date: Wed, 25 Mar 2026 16:31:03 +0000
Message-ID: <E1w5R8I-001Pgb-1c@gemulon.postgresql.org> (raw)

psql: Fix tab completion for FOREIGN DATA WRAPPER and SUBSCRIPTION.

Commit 8185bb5347 extended the CREATE/ALTER SUBSCRIPTION and
CREATE/ALTER FOREIGN DATA WRAPPER commands, but missed the
corresponding tab-completion logic. This commit fixes that oversight
by adding completion support for:

- The CONNECTION keyword in CREATE/ALTER FOREIGN DATA WRAPPER.
- The list of foreign servers in CREATE/ALTER SUBSCRIPTION.

Author: Yamaguchi Atsuo <acrobatcoder@gmail.com>
Discussion: https://postgr.es/m/CAKSyusJWdWcUKVd3qJXcEaQxJewGymQWV_r3-mc=Knrqo0AZ_g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5fa7837d9a3970c5ea372bb90b916b54478fb818

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



Message-ID: <E1w5R8I-001Pgb-1c@gemulon.postgresql.org>
Permalink:  ../E1w5R8I-001Pgb-1c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w5R8I-001Pgb-1c@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: Fix tab completion for FOREIGN DATA WRAPPER and SUBSCRIPTI
  In-Reply-To: <E1w5R8I-001Pgb-1c@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