Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7CBC01337999 for ; Mon, 25 Oct 2010 15:39:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 20431-03 for ; Mon, 25 Oct 2010 18:39:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 3AE33133616B for ; Mon, 25 Oct 2010 15:39:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id A3C1B348017; Mon, 25 Oct 2010 11:38:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gZZ4H+fOG8WV; Mon, 25 Oct 2010 11:38:56 -0700 (PDT) Received: from [192.168.1.105] (unknown [75.142.155.118]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 256E2348015; Mon, 25 Oct 2010 11:38:56 -0700 (PDT) Subject: Re: Postgres insert performance and storage requirement compared to Oracle From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Divakar Singh Cc: Scott Marlowe , pgsql-performance@postgresql.org In-Reply-To: <781874.42830.qm@web65413.mail.ac4.yahoo.com> References: <402913.53404.qm@web65405.mail.ac4.yahoo.com> <781874.42830.qm@web65413.mail.ac4.yahoo.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Mon, 25 Oct 2010 11:38:52 -0700 Message-ID: <1288031932.8930.32.camel@jd-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/403 X-Sequence-Number: 40821 On Mon, 2010-10-25 at 11:36 -0700, Divakar Singh wrote: > > 68 Rows inserted: 100,000 > Above results show good INSERT performance of PG when using SQL > procedures. But > performance when I use C++ lib is very bad. I did that test some time > back so I > do not have data for that right now. This is interesting, are you using libpq or libpqXX? Joshua D. Drake > > -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt