I tested the patch and confirmed that `GRANT CREATE` and `REVOKE CREATE` now complete to `ON` as expected, including lowercase input.
I also found that `REVOKE GRANT OPTION FOR CREATE` should reach the same privilege-completion rule, but the earlier `TailMatches("CREATE")` branch still intercepts it and offers CREATE object types instead of `ON`.
Perhaps it would be a good idea to cover this form in the same patch. What do you think?
Thanks,
Sho Ito
On Sun, Oct 4, 2026 at 5:57 PM Haruna Miwa <miwa@sraoss.co.jp> wrote:
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