Re: can a linux program, running on the client side, generate data to load a temp table ?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: dfgpostgres <dfgpostgres3(at)gmail(dot)com>, tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: can a linux program, running on the client side, generate data to load a temp table ?
Date: 2026-06-19 14:50:10
Message-ID: 433c2d5f-8e09-4128-b21e-558741ae8530@aklaver.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/19/26 7:48 AM, Adrian Klaver wrote:
> On 6/19/26 7:38 AM, dfgpostgres wrote:
>>  >> psql's "\copy ... from program" might help you.
>> Ya, I've used \copy for copying data in the past.  But if I'm not
>> mistaken, the "\copy... from program" runs on the server side.  If I'm
>> wrong about that, if there's a client side version of this, I'm all
>> ears !  And FWIW, a future release that has this would be great !
>
> It is client side, but is only available in the the psql client:
>
> https://www.postgresql.org/docs/current/app-psql.html

Forgot to add to previous post:

"Performs a frontend (client) copy. This is an operation that runs an
SQL COPY command, but instead of the server reading or writing the
specified file, psql reads or writes the file and routes the data
between the server and the local file system. This means that file
accessibility and privileges are those of the local user, not the
server, and no SQL superuser privileges are required."

>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scot Kreienkamp 2026-06-19 15:24:49 set failover=true on existing logical replication slot PG18
Previous Message Adrian Klaver 2026-06-19 14:48:19 Re: can a linux program, running on the client side, generate data to load a temp table ?