Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1waaXw-001uWX-0W for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2026 14:50:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waaXu-00GjHo-38 for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2026 14:50:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1waaXu-00GjHg-2D for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2026 14:50:14 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1waaXt-000000019eX-0Fpp for pgsql-general@postgresql.org; Fri, 19 Jun 2026 14:50:13 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id E7B43EC02E5; Fri, 19 Jun 2026 10:50:11 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Fri, 19 Jun 2026 10:50:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1781880611; x=1781967011; bh=sgvRmY0Rp1LGrc3+6Lutk7vQsqeV3HU1XOltc2aQ7q0=; b= e9grDuhomaEtMaBXwRCOtoiTwbkwu+VkJWk2Xcg69Bm7QEBPbR6YF0lKvaOjFIwi gREabowp+w5pnoOIY38kMHBb7u3w5Ed/HfiGCewSXpBu672MSFs/m33TmnpcMN0U yZYshwHnF5+jGDNVE5fSSh+mba3+5Pyrkv0HwRlXTGZzeJv/rhrrkZiLQniws285 NSAUqqq/QQUPLPVfjOYBj8wE36Q/E3Oa59+itsus0wms7PnS5wg6s8GUTIOrCK9q qFatSM0ojowvD8aAWHC+jdryboH5Xi+98d3/uwt4LMxtG/ZrgE1dKItbdfA1YBBx 3rtBUEuTdFo0ZfNbjCICGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1781880611; x= 1781967011; bh=sgvRmY0Rp1LGrc3+6Lutk7vQsqeV3HU1XOltc2aQ7q0=; b=f yHAhRhXD/Pjocn+kO540HPxit06v1ynUPonDRwfXXcS8pKtcLR2sXSUDlaQq2KuH tQWvSFp6GOVI7Fscqjx7etwlVaa00fYwgTEYAVKgeiFwyv7UcHZn6crYD8H+9sfm ar4PkOitrvL702ynu/wc2s7rNdNKUTmCUiyV5sOGEVvRuAm40lzzErsH4sjMqVWc QFtby/WVe1Ot5SU+LUF/0/dJ6I3/PU4+eSYS2OKxTvoa3icvmjEzZS2p/CHkg/YO HSyhrMm+H5qQhYMc7ujvrEobIlQaOmB20wS+OT2CxVD11cJbVnSY/8adMvQyEHPk K2hk6xqRKmkiB5h8HSBIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFYkIwvzeHUByOgN4XCBgpL629E31LNUAq5wTXJ+4jvfApsY1i5voNzz1C7RJyI6E EhcWvBvLhB1t8b7ILO2vqnm6pVvCNDSYAgzTSfoxnHwwm/Sidv3iuAcYz3mL8W+fLUDQyU /LwBWYdp0pmq3P0rl+mSC/OvIUPu5WhSDDkvQ5kAgsGfN3K/Pk/17L9y3uRFpTHI6/eOw7 Hsa16d8p5lNsjQR11tGtY2HMSJR2QJz5o0S92KzQIz2sTCOAPFgoaq0jZB6zu65ScfuBVU TBFd0MlN0l00AZ0vHzYe/I6KhpaG7bkYRY0nVP1qUySJKIj4mM46OCkpIO4LasMYa336S6 OJ2zs9j/nmG6EgVwfdjcjV2JQNLLleaFHySga8hDpYba8qQRtyuta2i2QZ1TI9e0MtntjM OqQes7yQWvFN5T3LeSOsglrPlMaQlQGj56FFT70fiiIaelk7+xJP8KwUd4fa3QCT1YdpfN POZPi7stALG6a3XPs8/pxMRClM6PJZUmcxTjFVaGBrqYNLJLxjbpe53OFQwTY6hi3d5Ye5 xzCJ/aMmBh6u51g9b6ccgaBjqd4/e3lRB0BC7XkG+Sn/WM3mA3pycU+giENe7uZRLQ9jpL p8CJ+lE49L+MzXanOkZJnMqLhezbdvVxvQC1zBVjSpL87PwSTEOcjsTt5EoQ X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 Jun 2026 10:50:11 -0400 (EDT) Message-ID: <433c2d5f-8e09-4128-b21e-558741ae8530@aklaver.com> Date: Fri, 19 Jun 2026 07:50:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: can a linux program, running on the client side, generate data to load a temp table ? From: Adrian Klaver To: dfgpostgres , tgl@sss.pgh.pa.us Cc: pgsql-general@postgresql.org References: <3efe0707-d61b-4182-80c8-4c68e723418a@aklaver.com> Content-Language: en-US In-Reply-To: <3efe0707-d61b-4182-80c8-4c68e723418a@aklaver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.klaver@aklaver.com