Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVOr3-0002DP-53 for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 22:12:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVOr1-0000Dh-GZ for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 22:11:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVOr1-0000DQ-5Y for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 22:11:59 +0000 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fVOqx-0006ab-TL for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 22:11:58 +0000 Received: by mail-qt0-x22a.google.com with SMTP id x34-v6so1291553qtk.5 for ; Tue, 19 Jun 2018 15:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jimkeener-com.20150623.gappssmtp.com; s=20150623; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=5CS4zGAyYO2LQQ/lXDB+Jj9T0s0B9bWmxhxVyli7iQs=; b=p21EX5ngicgG6wvCKsrpxyvpxEAPHpnKeCAxQ+2E2/bKrdNiKmtVYSjw7ZhitZBMt4 SRieGrbCL/3qO3OsMFn/IYv9r+PN00jfQ3i7o7U9cJe8tz5LXPab8b0r6Jw4mH9C25Sy Ro5/KiBmL09+1YMbLKqJfq8GsVxM4JPa4EM2xw18Uak9i+WSKQDOcYs4vuZ0soLxg3rc DSHBB5NyiDBkNfmthaIDeTvpr8cNFvCoJB5uQQ5HyZwwIPzo/0EovS99rDxuTdS3UONu aelQmP/n8RAC4g9CRlPbt/HRwDai+krdWdJTmeHMS2FfKEsvIM5lJhsHGLNVNRWzzDG3 jVBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=5CS4zGAyYO2LQQ/lXDB+Jj9T0s0B9bWmxhxVyli7iQs=; b=lvRgi45a0sPREeu55jfwOYo3QJt7+N3kj1xFTUnvVtTuNnDFDls55qf9YORMe3EdZu VrXu58Oqp8cdC6/s6l8X2S6wQLQxsG9wvbrof3g31LXUwvJ7ImgYi4O+gyS/Dl9K0BSq zjqxv+vvXdasyoD4EtVD4KsGv3JWdBAxToLSFkulA+R/VltBISkmuElgGaooEjKZVQgq 2rabR3eHMcadzv+1a5CL4AIIM9MlVD5rdofn5K+3LD0h26naozSAg4YzaAXLKsL/K3QK 4jo1BvukZ6Z5I9FQiFeVzEVQ5d0vap5OMy5cHgvkcFKPTibktatYiWfivrPcnnR3CFF8 pIgg== X-Gm-Message-State: APt69E3bZUhYpkzglBDdcpgrLEszW0D2LZ39pyoYoak7gvj4UR3taM19 WpNIIzYpONgqFBtM7EL1vlml1rKZ/Cc= X-Google-Smtp-Source: ADUXVKIT1xF6Fy5nNopvqtGyy6COXnSf4ky1o6CDoCAMUN83MShXTb4lRu2AQdzVv67weoSdL36ihQ== X-Received: by 2002:a0c:e087:: with SMTP id l7-v6mr16247111qvk.217.1529446313456; Tue, 19 Jun 2018 15:11:53 -0700 (PDT) Received: from android-e87279296b2e1a8e.home (pool-74-109-197-201.pitbpa.fios.verizon.net. [74.109.197.201]) by smtp.gmail.com with ESMTPSA id q25-v6sm753991qtf.64.2018.06.19.15.11.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 15:11:52 -0700 (PDT) Date: Tue, 19 Jun 2018 18:11:50 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: , MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----UUDY13VKD73VPUF3B6RLILK5V4610A" Content-Transfer-Encoding: 7bit Subject: Re: Load data from a csv file without using COPY To: pgsql-general@lists.postgresql.org,Asif Ali ,Alban Hertroys ,Ravi Krishna CC: PG mailing List From: James Keener Message-ID: <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------UUDY13VKD73VPUF3B6RLILK5V4610A Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Seriously, stop spamming the list and stop cursing and acting like a petula= nt child=2E Go to the site and unsubscribe or use a mail client that unders= tands the standard list headers=2E On June 19, 2018 6:06:59 PM EDT, Asif Ali wrote: >how the fuck i unsubscribe to this mailing list , i get more than 100 >emails a day > >Bye > >________________________________ >From: Alban Hertroys >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 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=2E >> The requirement is that the load should happen like an application >writing to the database ( that is, no COPY command)=2E >> Is there a tool which can do the job=2E Basically parse the csv file >and insert it to the database row by row=2E >> >> 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 =E2=80=94inserts=2E > >Alban Hertroys >-- >If you can't see the forest for the trees, >cut the trees and you'll find there is no forest=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------UUDY13VKD73VPUF3B6RLILK5V4610A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Seriously, stop spamming the list and stop cursing and a= cting like a petulant child=2E Go to the site and unsubscribe or use a mail= client that understands the standard list headers=2E

On June 19, 2018 6:06:59 PM EDT, Asif Ali <asif2k@hotmail= =2Ecom> wrote:
how the fuck i unsubscribe to this mailing list , i get more than 100 emails a day

Bye


From: Alban Hertroys <h= aramrae@gmail=2Ecom>
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=2Ecom> = 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=2E 
> The requirement is that the load should happen like an application wr= iting to the database ( that is, no COPY command)=2E
> Is there a tool which can do the job=2E  Basically parse the csv= file and insert it to the database row by row=2E
>
> thanks

I think an easy approach would be to COPY the CSV files into a separate da= tabase using psql's \copy command and then pg_dump that as separate insert = statements with pg_dump =E2=80=94inserts=2E

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest=2E



--
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E ------UUDY13VKD73VPUF3B6RLILK5V4610A--