Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F3336347C6; Wed, 10 Feb 2010 01:49:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 66804-08; Wed, 10 Feb 2010 05:49:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id E730F633A26; Wed, 10 Feb 2010 01:49:25 -0400 (AST) Received: by wwi18 with SMTP id 18so2580206wwi.19 for ; Tue, 09 Feb 2010 21:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=p2M1CD2LqwCPvQUwv3SJsTA7V6B+F7m9hkeDm3aGJs0=; b=chkfMuKXcI6AQj4Pyoi4Yr8ELixD09sbumprsGJ2nHioGhNkAXVOKMpFoFFb1CMhbR jRAhWLGmfrVdMWnB8EsjFrx6S3JWToe8N4aNBmifRo/oEVYnDqI9oaWOOQCnl+vlZr2f 0FU9Yxunmwc4QM9UjMIGI18t9zrvisKYObtfY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rKH0PoDo2afldVInowZ6hOsR9IQllyFMIx4EdWvMzM3IwOXdXdAUy5HzoL6DeeO6fJ vR+N7NJGmh6wS9suzcA8G1ya+fyUcLEBpfK76mFFy3RPL8IXK9XsKepVIXB4ga0pHZjx fjTEaT9hpbuHYHICWDzvEmD8hDXDkcbUfAo7M= MIME-Version: 1.0 Received: by 10.216.88.2 with SMTP id z2mr3106780wee.89.1265780964585; Tue, 09 Feb 2010 21:49:24 -0800 (PST) In-Reply-To: References: Date: Tue, 9 Feb 2010 22:49:24 -0700 Message-ID: Subject: Re: PostgreSQL - case studies From: Scott Marlowe To: Jayadevan M Cc: pgsql-performance , pgsql-general@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.391 tagged_above=-10 required=5 tests=AWL=0.208, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/387 X-Sequence-Number: 159163 Quick note, please stick to text formatted email for the mailing list, it's the preferred format. On Tue, Feb 9, 2010 at 9:09 PM, Jayadevan M wrote: > > Hello all, > Apologies for the long mail. > I work for a company that is provides solutions mostly on a Java/Oracle p= latform. Recently we moved on of our products to PostgreSQL. The main reaso= n was PostgreSQL's GIS capabilities and the inability of government departm= ents (especially road/traffic) to spend a lot of money for such projects. T= his product is used to record details about accidents and related analysis = (type of road, when/why etc) with maps. Fortunately, even in India, an acci= dent reporting application does not have to handle many tps :). =A0So, I ca= n't say PostgreSQL's performance was really tested in this case. > Later, I tested one screen of one of our products - load testing with Jme= ter. We tried it with Oracle, DB2, PostgreSQL and Ingres, and PostgreSQL ea= sily out-performed the rest. We tried a transaction mix with 20+ SELECTS, u= pdate, delete and a few inserts. Please note that benchmarking oracle (and a few other commercial dbs) and then publishing those results without permission of oracle is considered to be in breech of their contract. Yeah, another wonderful aspect of using Oracle. That said, and as someone who is not an oracle licensee in any way, this mimics my experience that postgresql is a match for oracle, db2, and most other databases in the simple, single db on commodity hardware scenario. > After a really good experience with the database, I subscribed to all Pos= tgreSQL groups (my previous experience is all-Oracle) and reading these mai= ls, I realized that many organizations are using plan, 'not customized' =A0= PostgreSQL for databases that handle critical applications. =A0Since there = is no company trying to 'sell' PostgreSQL, many of us are not aware of such= cases. Actually there are several companies that sell pgsql service, and some that sell customized versions. RedHat, Command Prompt, EnterpriseDB, and so on. > Could some of you please share some info on such scenarios- where you are= supporting/designing/developing databases that run into at least a few hun= dred GBs of data (I know, that is small by todays' standards)? There are other instances of folks on the list sharing this kind of info you can find by searching the archives. I've used pgsql for about 10 years for anywhere from a few megabytes to hundreds of gigabytes, and all kinds of applications. Where I currently work we have a main data store for a web app that is about 180Gigabytes and growing, running on three servers with slony replication. We handle somewhere in the range of 10k to 20k queries per minute (a mix of 90% or so reads to 10% writes). Peak load can be into the 30k or higher reqs / minute. The two big servers that handle this load are dual quad core opteron 2.1GHz machines with 32Gig RAM and 16 15krpm SAS drives configured as 2 in RAID-1 for OS and pg_xlog, 2 hot spares, and 12 in a RAID-10 for the main data. HW Raid controller is the Areca 1680 which is mostly stable, except for the occasional (once a year or so) hang problem which has been described, and which Areca has assured me they are working on. Our total downtime due to database outages in the last year or so has been 10 to 20 minutes, and that was due to a RAID card driver bug that hits us about once every 300 to 400 days. the majority of the down time has been waiting for our hosting provider to hit the big red switch and restart the main server. Our other pgsql servers provide search facility, with a db size of around 300Gig, and statistics at around ~1TB. > I am sure PostgreSQL has matured a lot more from the days when these case= studies where posted. I went through the case studies at EnterpiseDB and s= imilar vendors too. But those are customized PostgreSQL servers. Not necessarily. They sell support more than anything, and the majority of customization is not for stability but for additional features, such as mpp queries or replication etc. The real issue you run into is that many people don't want to tip their hand that they are using pgsql because it is a competitive advantage. It's inexpensive, capable, and relatively easy to use. If your competitor is convinced that Oracle or MSSQL server with $240k in licensing each year is the best choice, and you're whipping them with pgsql, the last thing you want is for them to figure that out and switch.