From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Tab completion for large objects |
Date: | 2025-10-23 09:22:18 |
Message-ID: | FD7E7B28-1CA2-45C7-8540-E1812B7C7DF9@gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Oct 23, 2025, at 15:22, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Sun, Jul 27, 2025 at 4:00 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>> I think it's worth applying patch 0002 and part of 0001, so I've merged
>> those changes into a single patch. Patch attached. Any thoughts?
>>
>>
>> + else if (TailMatches("LARGE"))
>> + COMPLETE_WITH("OBJECT");
>>
>> It seems the "ALTER DEFAULT PRIVILEGES ... LARGE" case was missed
>> here. In that context, we should complete with "OBJECTS" instead of
>> "OBJECT". I've fixed that in the patch.
>
> Attached is the rebased version of the patch.
>
> Regards,
>
> --
> Fujii Masao
> <v3-0001-psql-Improve-tab-completion-for-large-object.patch>
The code change is solid. One tidy comment on the commit subject and message:
```
Subject: [PATCH v3] psql: Improve tab completion for large object.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This commit enhances psql's tab completion support for a large object:
```
I think we can use “large objects” in the both places. Because completion can be “OBJECT” or “OBJECTS”. And a comment uses “objects”:
```
/*
* Complete "GRANT/REVOKE * ON DATABASE/DOMAIN/..." with a list of
- * appropriate objects.
+ * appropriate objects or keywords.
```
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Shlok Kyal | 2025-10-23 09:28:11 | Re: issue with synchronized_standby_slots |
Previous Message | Akshay Joshi | 2025-10-23 09:19:48 | Re: [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement |