Load a csv to remote postgresql database

From: priyanka raghav <priyankarag(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Load a csv to remote postgresql database
Date: 2017-03-02 06:01:01
Message-ID: CAG1EzyRaj9Xk5C-Ad9u7uC01c9n1DnYUX9QivrN=sqUW9uZSvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to load a csv file of approx 500mb to remote postgres
database. Earlier when the app server and db server were co-located,
COPY command was working fine but ever since the db server is moved to
a different box, the command is failing. I understand that COPY
command searches the file on database server which it is not able to
find and hence is throwing an error. I cannot use /COPY as it is a
psql command. What options do I have to go about this. I need an
urgent answer to this. Thanks in advance.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2017-03-02 06:08:06 Re: Load a csv to remote postgresql database
Previous Message Michael Paquier 2017-03-02 00:36:26 Re: Understanding pg_last_xlog_receive_location