Re: New "single" COPY format - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: New "single" COPY format
Date
Msg-id CAKFQuwbD+sG4P60Tp3VbrsV7gXfhQViYLy-1n8h+AO_FsAy9hw@mail.gmail.com
Whole thread Raw
In response to Re: New "single" COPY format  ("Joel Jacobson" <joel@compiler.org>)
Responses Re: New "single" COPY format
List pgsql-hackers
On Thursday, November 7, 2024, Joel Jacobson <joel@compiler.org> wrote:
On Fri, Nov 8, 2024, at 00:13, Masahiko Sawada wrote:
> In earlier versions, we supported loading the whole file into a single
> tuple. Is there any reason that it doesn't support it in v18? I think
> if it's useful we can improve it in a separate patch.

Not sure how useful it is, since we already have pg_read_file().

Being forced to have the file server-readable, non-stdin, destroys quite a bit of the usefulness of pg_read_file.

If we want clients to be able to pass the effort here to the server, copy is definitely the most useful way to do so.

I’d be concerned choosing “single” given this future possibility.  I do agree that such an enhancement would be best done in its own patch.

David J.

pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: New "single" COPY format
Next
From: "Joel Jacobson"
Date:
Subject: Re: New "single" COPY format