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.94.2) (envelope-from ) id 1qxw1e-004UGA-2q for pgsql-admin@arkaria.postgresql.org; Tue, 31 Oct 2023 21:11:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qxw1c-004Gxc-NK for pgsql-admin@arkaria.postgresql.org; Tue, 31 Oct 2023 21:11:48 +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.94.2) (envelope-from ) id 1qxw1c-004GxR-C7 for pgsql-admin@lists.postgresql.org; Tue, 31 Oct 2023 21:11:48 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qxw1Z-003LNh-Ot for pgsql-admin@postgresql.org; Tue, 31 Oct 2023 21:11:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39VLBi8g2637138; Tue, 31 Oct 2023 17:11:44 -0400 From: Tom Lane To: richard coleman cc: pgsql-admin Subject: Re: COPY FROM appears broken in PostgreSQL 15 In-reply-to: References: Comments: In-reply-to richard coleman message dated "Tue, 31 Oct 2023 17:08:50 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2637136.1698786704.1@sss.pgh.pa.us> Date: Tue, 31 Oct 2023 17:11:44 -0400 Message-ID: <2637137.1698786704@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk richard coleman writes: > Did something happen to the COPY FROM command in PostgreSQL 15? It seems quite unlikely that you'd be the first to notice such a fundamental problem. > ERROR: could not open file "/{path}/{file}" for reading: Permission denied > HINT: COPY FROM instructs the PostgreSQL server process to read a file. > You may want a client-side facility such as psql's \copy. > I have checked and the postgres user can read/write to the file just fine. Check that again. Check lookup permission on all the directories in the path, too. regards, tom lane