[PATCH] psql: avoid CREATE command completion after GRANT/REVOKE CREATE

From: Haruna Miwa <miwa(at)sraoss(dot)co(dot)jp>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] psql: avoid CREATE command completion after GRANT/REVOKE CREATE
Date: 2026-10-01 07:06:53
Message-ID: OSOP286MB78539E88C47403451BFFF140F18A2@OSOP286MB7853.JPNP286.PROD.OUTLOOK.COM
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While testing psql tab completion, I noticed that the generic CREATE
completion rule is triggered after GRANT CREATE and REVOKE CREATE.

This results in irrelevant CREATE object type suggestions being offered
in those contexts.

I created a patch to exclude GRANT CREATE and REVOKE CREATE from the
generic CREATE completion rule.

Regards,

Haruna Miwa

--
Haruna Miwa

Attachment Content-Type Size
0001-psql-avoid-CREATE-command-completion-after-GRANT-REV.patch application/octet-stream 1.0 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Shlok Kyal 2026-10-01 07:12:11 Re: Support EXCEPT for ALL SEQUENCES publications
Previous Message Peter Eisentraut 2026-10-01 07:04:25 Re: pgindent to ignore build directories