X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BB4C39DC83F for ; Wed, 28 Dec 2005 15:58:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31612-02 for ; Wed, 28 Dec 2005 15:58:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5872E9DCA27 for ; Wed, 28 Dec 2005 15:58:40 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBSJwebc021389; Wed, 28 Dec 2005 14:58:40 -0500 (EST) To: "Qingqing Zhou" cc: pgsql-admin@postgresql.org Subject: Re: [GENERAL] Running with fsync=off In-reply-to: References: <43AA5607.20000@cs.ucr.edu> <20051222080759.GB21783@svana.org> <23560.1135270033@sss.pgh.pa.us> <20051227211238.GQ72143@pervasive.com> <4550.1135723450@sss.pgh.pa.us> Comments: In-reply-to "Qingqing Zhou" message dated "Wed, 28 Dec 2005 14:12:54 -0500" Date: Wed, 28 Dec 2005 14:58:40 -0500 Message-ID: <21388.1135799920@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.051 required=5 tests=[AWL=0.051] X-Spam-Score: 0.051 X-Spam-Level: X-Archive-Number: 200512/352 X-Sequence-Number: 20072 "Qingqing Zhou" writes: > But in our 7.4.x, there is code like this: > sync(); > if (IsUnderPostmaster) > sleep(2); > sync(); I'm not claiming that that code is correct; it is in fact just as broken as the traditional custom. You'll notice we don't have it anymore ;-) > Why wasting 2 seconds is enough to save the data? It's not. The entire custom is and always has been bogus. regards, tom lane