Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AF684B5DBBF for ; Tue, 9 Aug 2011 01:13:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 55722-01 for ; Tue, 9 Aug 2011 04:13:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 96327B5DBD6 for ; Tue, 9 Aug 2011 01:13:08 -0300 (ADT) Received: from [192.168.1.3] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0MekHI-1QfhRT0Ino-00OCej; Tue, 09 Aug 2011 06:13:07 +0200 Message-ID: <4E40B3D1.70707@2ndquadrant.com> Date: Tue, 09 Aug 2011 00:13:05 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Sumeet Jauhar CC: pgsql-performance@postgresql.org Subject: Re: Suspected Postgres Datacorruption References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:44L44aJMcShtudabWEp63tSCIOmFVxRCKV+05EmnVJg 5jse7q59kqRuzjO+MQBqXdSPefRF4Y92nk7E91cPLDFdZWH671 5s91SZ2xkKkoI4ak6pG8ysU4M+LEAmBwq9OlfYypR4ZbIG2JYZ /cFlXPB42NfXEEFQ4+CQJkbH7AjwZfBREZlFxMQFYj4umm21v+ N3yXH9V+inFUOCLCTFUxvgnd1migs/RYD90/f4Jgy4= 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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/110 X-Sequence-Number: 44557 Sumeet Jauhar wrote: > > Our application is running on Postgres 7.4.X . I agree that this is a > very old version of Postgres and we should have upgraded . > It's important to know the .X here. The latest 7.4 is 7.4.30: http://www.postgresql.org/docs/7.4/static/release.html If you're running a 7.4 much lower than .30, you almost certainly have a version with corruption bugs related to indexes. There's a bunch of them mentioned in the release notes of many 7.4 versions listed there. > I ideally want to push to a higher version of Postgres . If I can > prove that there will be significant performance benefits and that > crashes won’t occur then I will be able to present a strong case . > Go visit http://suckit.blog.hu/2009/09/29/postgresql_history for minute. 8.0 is faster than the 7.4 you're running, and that's showing the speed increase from there. Your application might easily run 10X as fast on a newer PostgreSQL version. Now, on top of all this, it sounds like you might have a problem with your drives/controller not doing writes reliably. See http://wiki.postgresql.org/wiki/Reliable_Writes for more information. If that's the situation, the version of PostgreSQL you use won't matter too much--the database will still be unreliable if the hardware is configured to do the wrong thing. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us