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 1fVP0t-0002w5-Im for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 22:22:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVP0q-0001E3-Cn for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 22:22:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVOyt-0002jQ-DZ for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 22:20:07 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVOyq-0005l4-9f for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 22:20:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 58F8A21D2A; Tue, 19 Jun 2018 18:20:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 19 Jun 2018 18:20:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=acgmLAVn99MqXQozhaWe8G8kZ6nR2 qkv5Z+PSnY97vI=; b=wH3nBkK19r5RlnyJAH6pm7od1oUPesBXa68h3Gd4gM06n hASkG+5tATQ2BBT3gQRJvIv+lWJlzVCHYt70xVHxn/ylBgvuGExiSHH82dnhid2w /kB4C/yIZ7p74bfnuECaW2r87bQO623yl237sbqX6OzMkvJvQfb800jyPkUj1q96 H6BnTc76+L+l70zoDP/hH2h3S3Pf/hbTg2BbbUcQOLqfP3Xj6j/MgZw20yMwh1cc z6rysPJnTIrj2e2g1daaJmAYgjWzjDA38z+dwur9IONBkji4c4FGlPCEN6/iBfar tDEk1C1n3zgPMLDUHswTQVkbz6qB5Fnzarp4aLGDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=acgmLA Vn99MqXQozhaWe8G8kZ6nR2qkv5Z+PSnY97vI=; b=ojrqN2MHtC0u5xNaxwPZ1M W19kfVQnNSSW43FPvhPmzibjDWPKEnH4cZsNzObk/VyPjqFdhyB4lzFujExJ+33R iJgnWw1XuHj2iMfcKDv8vMkE8qQJRPA7XRh8s5GfoETwvmkk5aGDAy0sJzn25mOp YVN1uY5K3AlTn+3QZVsR61o5W+E8OBbHy+fJVFKu/Fedt8jVB2tkdrgj6brlvxPw BBVzZd84kdN3kngOY5BOw7AfUIvNcPa1wNn4afCdC9aTuXpmTTILe0j08IPac4Mw mt9EROdfENpUlS1ccbvvapUdwvNAZ/QlP+84mVHjg/tzvg7fbzjAXmc9H2YK9+jw == X-ME-Proxy: X-ME-Sender: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A6DC1025C; Tue, 19 Jun 2018 18:20:01 -0400 (EDT) Subject: Re: Load data from a csv file without using COPY To: Asif Ali , James Keener , "pgsql-general@lists.postgresql.org" , Alban Hertroys , Ravi Krishna References: <2C52E1C6-DBEB-4DAE-9945-69A75FFFA3AE@jimkeener.com> From: Adrian Klaver Message-ID: <08f451ed-a3f6-d3ee-5f92-55aeca5c4be7@aklaver.com> Date: Tue, 19 Jun 2018 15:20:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/19/2018 03:18 PM, Asif Ali wrote: > just tell me the site , i dont have time to waste on shitty things , i > will program a spammer to send email to this list So why subscribe in the first place? > > Bye > > ------------------------------------------------------------------------ > *From:* James Keener > *Sent:* Wednesday, June 20, 2018 3:16 AM > *To:* Asif Ali; pgsql-general@lists.postgresql.org; Alban Hertroys; Ravi > Krishna > *Subject:* Re: Load data from a csv file without using COPY > It's people like you who make spam filters worse for the rest of us to > the point they need to be checked daily for false positives. I'm sure > you could have found it in less time than it took to spam the list with > obscenities. > > On June 19, 2018 6:13:49 PM EDT, Asif Ali wrote: > > please just tell me the site i will do it right away and i have > marked it junked so many times , i will keep spamming it until my > email address is removed from the list > > Bye > > ------------------------------------------------------------------------ > *From:* James Keener > *Sent:* Wednesday, June 20, 2018 3:11 AM > *To:* pgsql-general@lists.postgresql.org; Asif Ali; Alban Hertroys; > Ravi Krishna > *Cc:* PG mailing List > *Subject:* Re: Load data from a csv file without using COPY > 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 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. > > 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. -- Adrian Klaver adrian.klaver@aklaver.com