[GENERAL] PostgreSQL COPY Statement Error On Linux - Mailing list pgsql-general

From Osahon Oduware
Subject [GENERAL] PostgreSQL COPY Statement Error On Linux
Date
Msg-id CAGpiUSi8JOxLK6q0o3ZJgRfCSmStpF-TOBcYAd3+-MBFQ5SDWg@mail.gmail.com
Whole thread Raw
Responses Re: [GENERAL] PostgreSQL COPY Statement Error On Linux  (Francisco Olarte <folarte@peoplecall.com>)
Re: [GENERAL] PostgreSQL COPY Statement Error On Linux  ("Charles Clavadetscher" <clavadetscher@swisspug.org>)
List pgsql-general
Hi All,

I am trying to utilize the "COPY" statement below to copy a .CSV file to a table in a PostgreSQL database.:
    COPY <schema>.<table_name>(<table_columns>) FROM '\\shared\network\path\to\csv\test.csv' DELIMITER ',' CSV HEADER;

This works with a PostgreSQL database installed in a WINDOWS environment (Windows 7), but fails with the following error with a similar PostgreSQL database in a Linux environment (Centos 7):
    org.postgresql.util.PSQLException: ERROR: could not open file "\\shared\network\path\to\csv\test.csv" for reading: No such file or directory

I have granted READ access to EVERYONE on the CSV folder on the network path as depicted in the attached image.

Could someone point me to the reason for the failure in Linux?
Attachment

pgsql-general by date:

Previous
From: "Frank Millman"
Date:
Subject: Re: [GENERAL] Joining 16 tables seems slow
Next
From: Pavel Stehule
Date:
Subject: Re: [GENERAL] Joining 16 tables seems slow