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: Improve tab completion for GRANT/REVOKE CREATE
Date: Wed, 07 Oct 2026 11:55:17 +0000
Message-ID: <E1xEQEv-00000000gV9-1eJ6@gemulon.postgresql.org> (raw)

psql: Improve tab completion for GRANT/REVOKE CREATE

Complete GRANT CREATE, REVOKE CREATE, and REVOKE GRANT OPTION FOR CREATE
with ON. Previously, the generic CREATE completion rule took precedence
and suggested object types such as TABLE.

Exclude these cases from the CREATE completion rule so that the existing
GRANT/REVOKE rules can handle them.

Author: Haruna Miwa <miwa@sraoss.co.jp>
Reviewed-by: Sho Ito <i.sho.0628@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/OSOP286MB78539E88C47403451BFFF140F18A2@OSOP286MB7853.JPNP286.PROD.OUTLOOK.COM

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/00e917ef651120c261625b11a35b54990406f069

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



view thread (2+ messages)

Message-ID: <E1xEQEv-00000000gV9-1eJ6@gemulon.postgresql.org>
Permalink:  ../E1xEQEv-00000000gV9-1eJ6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xEQEv-00000000gV9-1eJ6@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: Improve tab completion for GRANT/REVOKE CREATE
  In-Reply-To: <E1xEQEv-00000000gV9-1eJ6@gemulon.postgresql.org>
  References: <E1xEQEv-00000000gV9-1eJ6@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