Import csv in PostgreSQL

From: Dinesh Chandra 12108 <Dinesh(dot)Chandra(at)cyient(dot)com>
To: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Cc: "pgsql-performance-owner(at)postgresql(dot)org" <pgsql-performance-owner(at)postgresql(dot)org>
Subject: Import csv in PostgreSQL
Date: 2018-10-15 05:42:28
Message-ID: d3d51b180d0e473893d605d861a36d6e@cyient.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

I have a CSV file having only 400 records.

I have to import it in DB table, it's working fine but why it's importing 1047303 rows as I have only 400 records are present in that file.
Could you please help me on this?

[cid:image001(dot)png(at)01D46477(dot)F29B0B00]

Regards,
Dinesh Chandra

________________________________

DISCLAIMER:

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Check all attachments for viruses before opening them. All views or opinions presented in this e-mail are those of the author and may not reflect the opinion of Cyient or those of our affiliates.

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gabi D 2018-10-15 06:09:18 Re: Import csv in PostgreSQL
Previous Message Sam R. 2018-10-12 16:27:45 One big table or split data? Writing data. From disk point of view. With a good storage (GBs/s, writing speed)