Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id DDD0464FC52 for ; Sun, 21 Dec 2008 04:51:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58827-05 for ; Sun, 21 Dec 2008 04:51:20 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mail.postgresql.org (Postfix) with ESMTP id 23AA764FC00 for ; Sun, 21 Dec 2008 04:51:20 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id j4so972980wah.19 for ; Sun, 21 Dec 2008 00:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=M4Z+9aAqiWYiu6JVbpvejFYFqW0z7rUrn67cHJPq8QE=; b=L3YnRwyncCgi/ffGPY0BqeRkn1zOJbuCHP0rhcGdLe5yQOKEIEKMgkIVujMtN2OFqC Vlb4f5eqYE7XZVtJ2G4sf3rigW6citogUpCmySk6K+zxveKwgGh7Zy5+GPld9VdPEyTB CBoKpkoa0TT/y4r09Sn5KXU9M3WlWHmt17Jk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Oe8CRU3YEyfWOolByiiNOOfCg4iidtYRfFnzKZQADhoIwUPL16M3FKucyuHgp2K7jl PbbRrxblk8Het1lhzWZ5TruBqz9JJ7pavkzalvPRVaHDYbsQ1zfVMRlie9QaS2Ylibeb kNfeJWfBnahJbf5zg1nBccVtQ8y6kgh8N8pgY= Received: by 10.114.201.1 with SMTP id y1mr3143615waf.154.1229849479100; Sun, 21 Dec 2008 00:51:19 -0800 (PST) Received: by 10.114.131.12 with HTTP; Sun, 21 Dec 2008 00:51:19 -0800 (PST) Message-ID: Date: Sun, 21 Dec 2008 01:51:19 -0700 From: "Scott Marlowe" To: "Victor Nawothnig" Subject: Re: PostgreSQL vs Oracle Cc: pgsql-performance@postgresql.org In-Reply-To: <9ad9b6b70812210017q7b90aec6g4540ed1e74ca1ca1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9ad9b6b70812210017q7b90aec6g4540ed1e74ca1ca1@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/175 X-Sequence-Number: 32211 On Sun, Dec 21, 2008 at 1:17 AM, Victor Nawothnig wrote: > Hi, > > I am looking for some recent and hopefully genuine comparisons between > Oracle and PostgreSQL regarding their performance in large scale > applications. Tests from real world applications would be preferable > but not required. Also differentiations in different areas (i.e. > different data types, query structures, clusters, hardware, etc.) > might be helpful as well. Due to the terms of the license for Oracle, no one can publish benchmarks without their permission. Having used both Oracle 9 and pgsql from 6.5 to 8.3, I can say that PostgreSQL is competitive for most small to medium loads I've thrown at it, and given the high cost of licensing for oracle, you can throw a LOT of hardware at PostgreSQL to catch up the last 10 or 20% slowdown you might see in some apps. Most of Oracle's advantages are in the more advanced features like partitioning and reporting functions. That said, I find PostgreSQL takes a LOT less administration to keep it happy. Oracle doesn't just allow a wider range of performance tuning, it demands it. If you don't demonstrably need Oracle's advanced features then PostgreSQL is usually a better choice. Last place we worked we developed on pgsql and migrated to oracle in production (this was in the 7.4 era, when Oracle 9 was noticeably faster and better than pgsql for transactional loads.) It was very easy to write for pgsql and migrate to oracle as most SQL queries didn't need any serious changes from one db to the other. PostgreSQL generally tries to follow the SQL specs a little closer, oracle has more crufty legacy stuff in it. So, when you say large scale applications, are you talking OLTP or OLAP type workloads? My experience has been that very few OLTP apps get very large, as they get partitioned before they get over a few dozen gigabytes. OLAP, OTOH, often run into hundreds of Gigs or terabytes. I've found pgsql competitive in both really.