pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: richard coleman <rcoleman.ascentgl@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: COPY FROM appears broken in PostgreSQL 15
Date: Tue, 31 Oct 2023 17:11:44 -0400
Message-ID: <2637137.1698786704@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGA3vBvJx=YX3SCg4D6oct1RNjqW4ToEXe7=V285gqTQc7x0Fg@mail.gmail.com>
References: <CAGA3vBvJx=YX3SCg4D6oct1RNjqW4ToEXe7=V285gqTQc7x0Fg@mail.gmail.com>

richard coleman <rcoleman.ascentgl@gmail.com> 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





view thread (3+ messages)  latest in thread

Message-ID: <2637137.1698786704@sss.pgh.pa.us>
Permalink:  ../2637137.1698786704@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2637137.1698786704@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rcoleman.ascentgl@gmail.com
  Subject: Re: COPY FROM appears broken in PostgreSQL 15
  In-Reply-To: <2637137.1698786704@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox