pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ok.arigbabowo@gmail.com
Subject: BUG #16798: SQL Error
Date: Wed, 30 Dec 2020 21:32:33 +0000
Message-ID: <16798-79d0596541ca9bad@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16798
Logged by:          Oluwasola Arigbabowo
Email address:      ok.arigbabowo@gmail.com
PostgreSQL version: 10.0
Operating system:   Windows 10
Description:        

Hi,
I encountered an error when I was trying to copy a csv file into a table
created in a database inside the server. The code I used is :

Copy Customer from 'C:\\Users\\okari\\Customer.csv' delimiter ',' csv
header;

and the error that resulted is given below.

ERROR:  could not open file "C:\\Users\\okari\\Customer.csv" 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.
SQL state: 42501

I would appreciate some help with this.

Thanks
OK



Message-ID: <16798-79d0596541ca9bad@postgresql.org>
Permalink:  ../16798-79d0596541ca9bad@postgresql.org/
Also on:    postgresql.org/message-id/16798-79d0596541ca9bad@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, ok.arigbabowo@gmail.com
  Subject: Re: BUG #16798: SQL Error
  In-Reply-To: <16798-79d0596541ca9bad@postgresql.org>

* 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