Re: Tab completion for large objects - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Tab completion for large objects
Date
Msg-id d56000bd-b7c7-4f62-b58a-06ff9751f335@oss.nttdata.com
Whole thread Raw
In response to Tab completion for large objects  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
List 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




pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Logical Replication of sequences
Next
From: Hannu Krosing
Date:
Subject: Re: What is a typical precision of gettimeofday()?