Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 54D281336473 for ; Mon, 25 Oct 2010 15:20:55 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 87478-02 for ; Mon, 25 Oct 2010 18:20:48 +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 A0EA51337B8B for ; Mon, 25 Oct 2010 15:20:47 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 91977348019; Mon, 25 Oct 2010 11:20:40 -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 3bVgv9PXOUCX; Mon, 25 Oct 2010 11:20:37 -0700 (PDT) Received: from [192.168.1.105] (unknown [75.142.155.118]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 4610E348015; Mon, 25 Oct 2010 11:20:37 -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: pgsql-performance@postgresql.org In-Reply-To: <402913.53404.qm@web65405.mail.ac4.yahoo.com> References: <402913.53404.qm@web65405.mail.ac4.yahoo.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Mon, 25 Oct 2010 11:20:33 -0700 Message-ID: <1288030833.8930.30.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/397 X-Sequence-Number: 40815 On Mon, 2010-10-25 at 11:12 -0700, Divakar Singh wrote: > My questions/scenarios are: > > 1. How does PostgreSQL perform when inserting data into an indexed > (type: btree) > table? Is it true that as you add the indexes on a table, the > performance > deteriorates significantly whereas Oracle does not show that much > performance > decrease. I have tried almost all postgreSQL performance tips > available. I want > to have very good "insert" performance (with indexes), "select" > performance is > not that important at this point of time. Did you test? > > 2. What are the average storage requirements of postgres compared to > Oracle? I > inserted upto 1 million records. The storage requirement of postgreSQL > is almost > double than that of Oracle. What was your table structure? 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