Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id EF5B5634061 for ; Thu, 25 Mar 2010 18:25:34 -0300 (ADT) 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 79348-02-2 for ; Thu, 25 Mar 2010 21:25:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mail.postgresql.org (Postfix) with ESMTP id C7046634A1F for ; Thu, 25 Mar 2010 18:22:07 -0300 (ADT) Received: by bwz8 with SMTP id 8so2487591bwz.3 for ; Thu, 25 Mar 2010 14:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ObT9QIC+OZMJBlCVmOqZwxqgO09orjW1Gd6SqV1eOHA=; b=KNPRdGDWa1vnTAHuhHsdBrj15RGTrOy6YrCjZcKxy8fbEfpQzea5rYcDN333mJpuLX zzSvzaf3Fz0fSKs0XgeqKzFSshPoq9Nshyx76LhuBXt3ZVk6v8uW72AVWuAk8eN92HsK 3pbo5JK+cEAuYdLpTijP8+ES6DqMUpzDj2/5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=CgP08qYUBVlDh2KXgBUlJz4TIV3M+/zAiJTLYT+DJ6BLONaI/KyRIi5mDo+ipzz+Q4 TAX2lGZLe/LU36riNh0Ol935v2RcNIq1KaBOFdFJpI0kpoAWz1H+nM6+OUNe4tIL5uT+ 45Hhy32BZPEYmXJfiQyCP9bFwPaV9fiIdDMnw= Received: by 10.204.144.156 with SMTP id z28mr1743990bku.188.1269552125607; Thu, 25 Mar 2010 14:22:05 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id d5sm1069083bkd.13.2010.03.25.14.22.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 14:22:04 -0700 (PDT) Message-ID: <4BABD400.1000807@gmail.com> Date: Thu, 25 Mar 2010 22:22:08 +0100 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Scott Marlowe CC: Pierre C , James Mansion , Hannu Krosing , Greg Smith , Tom Lane , "Ross J. Reedstrom" , pgsql-performance@postgresql.org Subject: Re: mysql to postgresql, performance questions References: <4BA23936.2030507@gmail.com> <4BA596D2.4050406@squeakycode.net> <20100323185232.GD6662@rice.edu> <5342.1269372121@sss.pgh.pa.us> <4BA934B9.9070401@2ndquadrant.com> <4BA9D39B.6020103@gmail.com> <1269421198.11473.50.camel@hvost> <4BABC1E0.7010607@mansionfamily.plus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.902 tagged_above=-10 required=5 tests=AWL=-0.303, BAYES_00=-2.599, SARE_OEM_OBFU=1 X-Spam-Level: X-Archive-Number: 201003/328 X-Sequence-Number: 38153 Scott Marlowe wrote: > On Thu, Mar 25, 2010 at 2:29 PM, Pierre C wrote: > >>> Hannu Krosing wrote: >>> >>>> Pulling the plug should not corrupt a postgreSQL database, unless it was >>>> using disks which lie about write caching. >>>> >>>> >>> Didn't we recently put the old wife's 'the disks lied' tale to bed in >>> favour of actually admiting that some well known filesystems and saftware >>> raid systems have had trouble with their write barriers? >>> >> I put a cheap UPS on the home server (which uses Software RAID) precisely >> because I don't really trust that stuff, and there is also the RAID5 write >> hole... and maybe the RAID1 write hole too... and installing a UPS takes >> less time that actually figuring out if the system is power-loss-safe. >> > > Very true, a UPS might not cover every possible failure mode, but it > sure takes care of an aweful lot of the common ones. > Yeah, but the original post was about mythtv boxes, which usually do not have upses. My suggestion about proper setup of the wal was based on some experience of my own. What I did was probably the fastest path to corrupt database files: diskless mythtv box that booted from the fileserver at the attic (with ups btw), but I was too lazy (after x days of lirc / xorg / ivtv / rtc / xmltv etc work) to move the default configured mysql database from the mythtv box (with root filesystem and also mysql on the nfs mount) to a mysql running on the fileserver itself. On top of that I had nfs mounted async for speed. Really after x days of configuration to get things running (my wife thinks it's hobby time but it really isn't) all that is on your mind is: it works good enough? fine, will iron out non essential things when they pop up and if the db becomes corrupt, I had database backups. In the end I had a few times a corrupt table that was always easily repaired with the mysqlcheck tool. Based on this experience I do not think that reliability alone will convince mythtv developers/users to switch to postgresql, and besides that as a developer and user myself, it's always in a way funny to see how creative people can finding ways to not properly use (your) software ;-) regards, Yeb Havinga