pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to load data in psql DB
4+ messages / 3 participants
[nested] [flat]
* How to load data in psql DB
@ 2017-05-31 06:30 Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
0 siblings, 1 reply; 4+ messages in thread
From: Ashwani Kumar B @ 2017-05-31 06:30 UTC (permalink / raw)
To: pgsql-admin
Hi
My requirement is to automatically load data which is in CSV format to psql DB table.
Normally in oracle I use to do it through sql-loader [sqlldr] . Do we have anything similar in psql.
Regards
Ashwani
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to load data in psql DB
@ 2017-05-31 07:33 Arnaud Gambonnet <arnaud.gambonnet@gmail.com>
parent: Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
0 siblings, 1 reply; 4+ messages in thread
From: Arnaud Gambonnet @ 2017-05-31 07:33 UTC (permalink / raw)
To: pgsql-admin
Hi,
pgloader should fit your need.
=> http://pgloader.io
Regards,
AG.
2017-05-31 8:30 GMT+02:00 Ashwani Kumar B <ashwani.b.kumar@ericsson.com>:
> Hi
>
>
>
> My requirement is to automatically load data which is in CSV format to
> psql DB table.
>
>
>
> Normally in oracle I use to do it through sql-loader [*sqlldr] . *Do we
> have anything similar in psql.
>
>
>
> Regards
>
> Ashwani
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to load data in psql DB
@ 2017-05-31 07:55 Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
parent: Arnaud Gambonnet <arnaud.gambonnet@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Ashwani Kumar B @ 2017-05-31 07:55 UTC (permalink / raw)
To: Arnaud Gambonnet <arnaud.gambonnet@gmail.com>; pgsql-admin
Hi
It will be helpful if you share any sample script which works in crontab and also sample of control file.
Regards
Ashwani
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Arnaud Gambonnet
Sent: Wednesday, May 31, 2017 1:03 PM
To: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] How to load data in psql DB
Hi,
pgloader should fit your need.
=> http://pgloader.io
Regards,
AG.
2017-05-31 8:30 GMT+02:00 Ashwani Kumar B <ashwani.b.kumar@ericsson.com<mailto:ashwani.b.kumar@ericsson.com>>:
Hi
My requirement is to automatically load data which is in CSV format to psql DB table.
Normally in oracle I use to do it through sql-loader [sqlldr] . Do we have anything similar in psql.
Regards
Ashwani
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How to load data in psql DB
@ 2017-05-31 10:13 Samed YILDIRIM <samed@reddoc.net>
parent: Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
0 siblings, 0 replies; 4+ messages in thread
From: Samed YILDIRIM @ 2017-05-31 10:13 UTC (permalink / raw)
To: Ashwani Kumar B <ashwani.b.kumar@ericsson.com>; Arnaud Gambonnet <arnaud.gambonnet@gmail.com>; pgsql-admin
<div>Hi Ashwani,</div><div> </div><div>You can use COPY command and psql to load CSV file to PostgreSQL.</div><div> </div><div>\copy zip_codes FROM '/path/to/csv/ZIP_CODES.txt' DELIMITER ',' CSV</div><div> </div><div>If you create a simple cronjob, it will periodically load your datas from CSV.</div><div> </div><div>https://stackoverflow.com/questions/2987433/how-to-import-csv-file-data-into-a-postgresql-table</... href="https://www.postgresql.org/docs/9.6/static/sql-copy.html">https://www.postgresql.org/docs/9.6... regards.</div><div> </div><div> </div><div><br /></div><div><br /></div><div>İyi çalışmalar.</div><div>Samed YILDIRIM</div><div><br /></div><div><br /></div><div><br /></div><div>31.05.2017, 10:57, "Ashwani Kumar B" <ashwani.b.kumar@ericsson.com>:</div><blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;">Hi</span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;"> </span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;">It will be helpful if you share any sample script which works in crontab and also sample of control file.</span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;"> </span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;">Regards</span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;">Ashwani</span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:#1F497D;"> </span></p>
<p><b><span style="font-size:10pt;font-family:Tahoma,sans-serif;">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif;"> <a href="mailto:pgsql-admin-owner@postgresql.org">pgsql-admin-owner@postgresql.org</a> [mailto:<a href="mailto:pgsql-admin-owner@postgresql.org">pgsql-admin-owner@postgresql.org</a>]
<b>On Behalf Of </b>Arnaud Gambonnet<br />
<b>Sent:</b> Wednesday, May 31, 2017 1:03 PM<br />
<b>To:</b> <a href="mailto:pgsql-admin@postgresql.org">pgsql-admin@postgresql.org</a><br />
<b>Subject:</b> Re: [ADMIN] How to load data in psql DB</span></p>
<p> </p>
<div>
<p>Hi,</p>
<div>
<p> </p>
</div>
<div>
<p>pgloader should fit your need.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>=> <a href="http://pgloader.io/">http://pgloader.io</a></p;
</div>
<div>
<p> </p>
</div>
<div>
<p>Regards,</p>
</div>
<div>
<p>AG.</p>
</div>
</div>
<div>
<p> </p>
<div>
<p><span>2017-05-31 8</span>:30 GMT+02:00 Ashwani Kumar B <<a href="mailto:ashwani.b.kumar@ericsson.com" target="_blank">ashwani.b.kumar@ericsson.com</a>>:</p>
<div>
<div>
<p>Hi</p>
<p> </p>
<p>My requirement is to automatically load data which is in CSV format to psql DB table.</p>
<p> </p>
<p>Normally in oracle I use to do it through sql-loader [<b><i>sqlldr] .
</i></b>Do we have anything similar in psql.</p>
<p> </p>
<p>Regards</p>
<p><span style="color:#888888;">Ashwani<b><i>
</i></b></span></p>
</div>
</div>
</div>
<p> </p>
</div>
</div>
</div>
</blockquote>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2017-05-31 10:13 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 06:30 How to load data in psql DB Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
2017-05-31 07:33 ` Arnaud Gambonnet <arnaud.gambonnet@gmail.com>
2017-05-31 07:55 ` Ashwani Kumar B <ashwani.b.kumar@ericsson.com>
2017-05-31 10:13 ` Samed YILDIRIM <samed@reddoc.net>
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