X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7D5C1D1B536 for ; Fri, 7 Nov 2003 09:47:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 76994-04 for ; Fri, 7 Nov 2003 05:47:25 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id CF549D1B4FB for ; Fri, 7 Nov 2003 05:47:23 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hA79lMNu074696 for ; Fri, 7 Nov 2003 09:47:22 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hA79M3Wj071282 for pgsql-admin@postgresql.org; Fri, 7 Nov 2003 09:22:03 GMT From: CoL X-Newsgroups: comp.databases.postgresql.admin Subject: Re: performance problem - 10.000 databases Date: Fri, 07 Nov 2003 10:27:23 +0100 Organization: Hub.Org Networking Services Lines: 34 Message-ID: References: <1068128463.10743.30.camel@franki-laptop.tpi.pl> <20031106093725.20d3a43f.threshar@torgo.978.org> <60y8utv72f.fsf@dev6.int.libertyrms.info> Reply-To: col@mportal.hu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6a) Gecko/20031030 X-Accept-Language: en-us, en In-Reply-To: <60y8utv72f.fsf@dev6.int.libertyrms.info> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/143 X-Sequence-Number: 11130 Hi, Christopher Browne wrote, On 11/6/2003 4:40 PM: > threshar@torgo.978.org (Jeff) writes: >> On 06 Nov 2003 15:21:03 +0100 >> Marek Florianczyk wrote: >> >>> fsync = false >> >> HOLD THE BOAT THERE BATMAN! >> >> I would *STRONGLY* advise not running with fsync=false in production as >> PG _CANNOT_ guaruntee data consistancy in the event of a hardware >> failure. It would sure suck to have a power failure screw up your nice >> db for the users! > > On one of our test servers, I set "fsync=false", and a test load's > load time dropped from about 90 minutes to 3 minutes. (It was REALLY > update heavy, with huge numbers of tiny transactions.) > > Which is, yes, quite spectacularly faster. But also quite > spectacularly unsafe. > > I'm willing to live with the risk on a test box whose purpose is > _testing_; it's certainly not a good thing to do in production. There is something like: set fsync to off; or set fsync to on; But it says: 'fsync' cannot be changed now. However could be very useful to set this option from sql, not just from config. Tom Lane probably knows why :) C.