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.bb7d3135141248819704e...@sraoss.co.jp -- Fujii Masao NTT DATA Japan Corporation