Re: Tab completion for large objects

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: 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-07-09 10:45:56
Message-ID: d56000bd-b7c7-4f62-b58a-06ff9751f335@oss.nttdata.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025/07/09 3:50, Dagfinn Ilmari Mannsåker wrote:
> Hi hackers,
>
> I noticed that psql's tab completion suggested TO immediately after
> GRANT ... ON LARGE OBJECT, and not after ON LARGE OBJECT <oid>. This is
> because LARGE OBJECT is the only two-word object type, so it thinks
> LARGE is the object type and OBJECT is the name. Attached are three
> patches that address this and other LO-related tab completion issues:
>
> 1. Tab complete OBJECT after GRANT|REVOKE ... ON LARGE, and TO/FROM
> after GRANT|REVOKE ... ON LARGE OBJECT

Thanks for the patches!

Regarding the 0001 patch, Nagata-san already proposed a similar patch in [1].
His version handles not only "LARGE OBJECT" but also another two-word object type,
"FOREIGN SERVER".

Regards,

[1] https://postgr.es/m/20250611135737.bb7d3135141248819704ebca@sraoss.co.jp

--
Fujii Masao
NTT DATA Japan Corporation

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2025-07-09 11:14:06 Re: What is a typical precision of gettimeofday()?
Previous Message vignesh C 2025-07-09 10:41:22 Re: Logical Replication of sequences