| From: | Haruna Miwa <miwa(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "i(dot)sho(dot)0628(at)gmail(dot)com" <i(dot)sho(dot)0628(at)gmail(dot)com> |
| Subject: | Re: [PATCH] psql: avoid CREATE command completion after GRANT/REVOKE CREATE |
| Date: | 2026-10-07 08:17:33 |
| Message-ID: | OSOP286MB7853F5DD443864B8E09A930BF1942@OSOP286MB7853.JPNP286.PROD.OUTLOOK.COM |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Fujii-san,
Thank you for your review.
I've attached the revised patch.
Regards,
Haruna Miwa
________________________________
From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Sent: Wednesday, October 07, 2026 16:43
To: Sho Ito <i(dot)sho(dot)0628(at)gmail(dot)com>
Cc: Haruna Miwa <miwa(at)sraoss(dot)co(dot)jp>; pgsql-hackers(at)postgresql(dot)org <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] psql: avoid CREATE command completion after GRANT/REVOKE CREATE
On Wed, Oct 7, 2026 at 12:24 PM Sho Ito <i(dot)sho(dot)0628(at)gmail(dot)com> wrote:
>
> Hi Haruna,
>
> Thank you for updating the patch. I tested v2 and confirmed that all three forms now complete to `ON` as expected.
> Now it looks good to me.
Thanks for the patch! It looks good to me except for one minor comment.
The source comment in the middle of the conditions is a bit hard to read.
How about moving it above the conditions and explaining why these cases are
excluded? For example:
/* CREATE */
- /* complete with something you can create */
+ /*
+ * Complete with something you can create. If CREATE is a privilege
+ * name, leave it to the GRANT/REVOKE rules below.
+ */
else if (TailMatches("CREATE") &&
-
- /*
- * exclude cases of GRANT/REVOKE CREATE and REVOKE GRANT OPTION FOR
- * CREATE
- */
Regards,
--
Fujii Masao
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-psql-avoid-CREATE-command-completion-after-GRANT-REV.patch | application/octet-stream | 1.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-10-07 08:46:22 | Re: Compression of bigger WAL records |
| Previous Message | Peter Smith | 2026-10-07 08:10:13 | Re: Include schema-qualified names in publication error messages (generalised to all of LR). |