1

Creating a foreign table like this:

CREATE FOREIGN TABLE xxxx
(... )
SERVER file
OPTIONS (filename '/data/data.csv', format 'csv', delimiter ';'); 

In the filename Option, Is it possible to specify a csv file that is on a remote server or the file as to be on the DB server? Both DB and Application server are Centos.

4

1 回答 1

1

您不能为 file_fdw 指定远程文件。

文件名

        Specifies the file to be read. Required. Must be an absolute path name.

唯一一种无需复制即可访问远程文件的方法 - 使用它挂载 fs(nfs、samba 等)。

于 2017-03-09T22:45:13.757 回答