From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: vipulcp1809@gmail.com
Subject: Using file_fdw to load tsv file into Foreign Table gives Permission denied error
Date: Sat, 23 Feb 2019 11:47:58 +0000
Message-ID: <155092247881.1380.8787497850816936733@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/file-fdw.html
Description:
CREATE EXTENSION file_fdw;
CREATE SERVER svr_file FOREIGN DATA WRAPPER file_fdw;
CREATE FOREIGN TABLE fdt_topups (seq integer , id_user integer ,
topup_date date , topup_value integer ) SERVER svr_file OPTIONS ( format
'csv', header 'true', filename 'C:/Users/Vipul/Downloads/topups.tsv',
delimiter E'\t', null '');
ERROR: could not open file "C:/Users/Vipul/Downloads/topups.tsv" 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.
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-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, vipulcp1809@gmail.com
Subject: Re: Using file_fdw to load tsv file into Foreign Table gives Permission denied error
In-Reply-To: <155092247881.1380.8787497850816936733@wrigleys.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