pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Keener <jim@jimkeener.com>
To: pgsql-general@lists.postgresql.org
To: Asif Ali <asif2k@hotmail.com>
To: Alban Hertroys <haramrae@gmail.com>
To: Ravi Krishna <srkrishna@yahoo.com>
Cc: PG mailing List <pgsql-general@lists.postgresql.org>
Subject: Re: Load data from a csv file without using COPY
Date: Tue, 19 Jun 2018 18:11:50 -0400
Message-ID: <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com> (raw)
In-Reply-To: <DM5PR2001MB1083212EFB180E48991B416C8B700@DM5PR2001MB1083.namprd20.prod.outlook.com>
References: <AE89FBE5-B726-4108-925F-449E34D24651@yahoo.com>
	<D6B45102-778D-4B35-9FB8-B007CE2A7A06@gmail.com>
	<DM5PR2001MB1083212EFB180E48991B416C8B700@DM5PR2001MB1083.namprd20.prod.outlook.com>

Seriously, stop spamming the list and stop cursing and acting like a petulant child. Go to the site and unsubscribe or use a mail client that understands the standard list headers.

On June 19, 2018 6:06:59 PM EDT, Asif Ali <asif2k@hotmail.com> wrote:
>how the fuck i unsubscribe to this mailing list , i get more than 100
>emails a day
>
>Bye
>
>________________________________
>From: Alban Hertroys <haramrae@gmail.com>
>Sent: Wednesday, June 20, 2018 2:10 AM
>To: Ravi Krishna
>Cc: PG mailing List
>Subject: Re: Load data from a csv file without using COPY
>
>
>> On 19 Jun 2018, at 22:16, Ravi Krishna <srkrishna@yahoo.com> wrote:
>>
>> In order to test a real life scenario (and use it for benchmarking) I
>want to load large number of data from csv files.
>> The requirement is that the load should happen like an application
>writing to the database ( that is, no COPY command).
>> Is there a tool which can do the job.  Basically parse the csv file
>and insert it to the database row by row.
>>
>> thanks
>
>I think an easy approach would be to COPY the CSV files into a separate
>database using psql's \copy command and then pg_dump that as separate
>insert statements with pg_dump —inserts.
>
>Alban Hertroys
>--
>If you can't see the forest for the trees,
>cut the trees and you'll find there is no forest.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

view thread (29+ messages)  latest in thread

Message-ID: <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com>
Permalink:  ../2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com/
Also on:    postgresql.org/message-id/2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jim@jimkeener.com, asif2k@hotmail.com, haramrae@gmail.com, srkrishna@yahoo.com
  Subject: Re: Load data from a csv file without using COPY
  In-Reply-To: <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com>
  References: <AE89FBE5-B726-4108-925F-449E34D24651@yahoo.com> <D6B45102-778D-4B35-9FB8-B007CE2A7A06@gmail.com> <DM5PR2001MB1083212EFB180E48991B416C8B700@DM5PR2001MB1083.namprd20.prod.outlook.com> <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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