Re: Tab completion for large objects

Fujii Masao <masao.fujii@gmail.com>

From: Fujii Masao <masao.fujii@gmail.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, pgsql-hackers@lists.postgresql.org
Date: 2025-10-23T07:22:39Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. psql: Improve tab completion for large objects.

Attachments

On Sun, Jul 27, 2025 at 4:00 PM Fujii Masao <masao.fujii@gmail.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