[GENERAL] PostgreSQL COPY Statement Error On Linux

Поиск
Список
Период
Сортировка
От Osahon Oduware
Тема [GENERAL] PostgreSQL COPY Statement Error On Linux
Дата
Msg-id CAGpiUSi8JOxLK6q0o3ZJgRfCSmStpF-TOBcYAd3+-MBFQ5SDWg@mail.gmail.com
обсуждение исходный текст
Ответы 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>)
Список 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?
Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Frank Millman"
Дата:
Сообщение: Re: [GENERAL] Joining 16 tables seems slow
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: [GENERAL] Joining 16 tables seems slow