Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7689D6501C9 for ; Sun, 31 Aug 2008 23:22:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80614-03-4 for ; Sun, 31 Aug 2008 23:22:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by postgresql.org (Postfix) with ESMTP id 6D8C465044F for ; Sun, 31 Aug 2008 23:09:39 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 616FD5C09E; Mon, 1 Sep 2008 10:09:33 +0800 (WST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 4C35B1E0435; Mon, 1 Sep 2008 10:09:33 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ahC1jheD+f7J; Mon, 1 Sep 2008 10:09:32 +0800 (WST) Received: from [192.168.44.89] (203-59-94-220.perm.iinet.net.au [203.59.94.220]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTP id 815FD1E0434; Mon, 1 Sep 2008 10:09:32 +0800 (WST) Message-ID: <48BB4EDB.1000307@postnewspapers.com.au> Date: Mon, 01 Sep 2008 10:09:31 +0800 From: Craig Ringer User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: M2Y Cc: pgsql-general@postgresql.org Subject: Re: Oracle and Postgresql References: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> In-Reply-To: <41c1fa08-86a0-4023-acaa-d838d5b0abf8@i24g2000prf.googlegroups.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 200808/1176 X-Sequence-Number: 137006 M2Y wrote: > Hello, > > I am a CS graduate and I have a brief idea of Postgres and Oracle. > But, I dont have an in-depth knowledge in any of them. I have a couple > of questions and > > I want to compare both of them in terms of functionality, performance, > advantages and disadvantages. > > Why most enterprises prefer Oracle than Postgres even though it is > free and has a decent enough user community. One significant factor is scaling and clustering. Right now, PostgreSQL has network-based master-to-slave(s) clustering using Slony that permits slaves to operate online read-only as reporting servers etc. It also covers failover with the use of an external heartbeat/STONITH setup. However, it's not completely transparent to the application and it's not seen as "part of postgresql". There are some other options that I'm largely unfamiliar with out there, but right now it seems that Slony is the way to go with Pg. Oracle, by contrast, has multiple-master clustering on shared storage (which can be iSCSI, FireWire, SAS, SCSI, or basically whatever else you like) with a network side-channel for inter-node messaging. All nodes can be active readers and writers in cooperation. I haven't used it and can't speak for its performance, reliability or admin-friendliness, but it seems to see very wide use in large systems. I'm pretty sure they also support master->slave replication and failover, etc. Multiple master clustering offers scaling options other than upgrading your DB server to add more disks/RAM/CPU, or moving reporting onto a separate read-only slave, so it'd be very nice to have on any project where serious growth looks likely. That's not to say you can't build some pretty big systems with Pg (and they certainly exist) ... but the scale-out options added by multiple-master clustering will certainly weigh decisions between the two database systems for some types of loads. -- Craig Ringer