pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Fix tab completion for DROP INDEX CONCURRENTLY
Date: Thu, 22 Oct 2026 02:01:17 +0000
Message-ID: <E1xJi7J-00000000GZd-3WK8@gemulon.postgresql.org> (raw)

psql: Fix tab completion for DROP INDEX CONCURRENTLY

psql offered CASCADE after DROP INDEX CONCURRENTLY and an index name,
even though CASCADE is not supported with CONCURRENTLY. Offer only
RESTRICT in this case, while retaining both CASCADE and RESTRICT
for ordinary DROP INDEX.

Backpatch to all supported versions.

Author: Sho Ito <i.sho.0628@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Shihao Zhong <zhong950419@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CAG7L5+7KXgvJUGCGXzyQrt7UysC9iytaYzx-7YyQTFYXjHVTWQ@mail.gmail.com
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4cd931b4314368618dc747c177af2c54352a0203

Modified Files
--------------
src/bin/psql/tab-complete.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1xJi7J-00000000GZd-3WK8@gemulon.postgresql.org>
Permalink:  ../E1xJi7J-00000000GZd-3WK8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xJi7J-00000000GZd-3WK8@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: psql: Fix tab completion for DROP INDEX CONCURRENTLY
  In-Reply-To: <E1xJi7J-00000000GZd-3WK8@gemulon.postgresql.org>
  References: <E1xJi7J-00000000GZd-3WK8@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