Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F194B475D20 for ; Sat, 12 Oct 2002 12:26:51 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 5E8ED475B8E for ; Sat, 12 Oct 2002 12:26:51 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g9CGQphR012602; Sat, 12 Oct 2002 12:26:51 -0400 (EDT) To: Chris Miles Cc: Bruce Momjian , pgsql-admin@postgresql.org Subject: Re: Multiple backends on a single physical database In-reply-to: <20021012161939.K6712@psychofx.com> References: <20021012160610.I6712@psychofx.com> <200210121511.g9CFBs619940@candle.pha.pa.us> <20021012161939.K6712@psychofx.com> Comments: In-reply-to Chris Miles message dated "Sat, 12 Oct 2002 16:19:39 +0100" Date: Sat, 12 Oct 2002 12:26:51 -0400 Message-ID: <12601.1034440011@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/80 X-Sequence-Number: 5938 Chris Miles writes: > On Sat, Oct 12, 2002 at 11:11:53AM -0400, Bruce Momjian wrote: >> Good question. It is my understanding that fsync, locking, and the >> order of writes is not guaranteed in NFS like it is for local file >> systems. I question how well it would handle any of the failure modes >> that local file systems can withstand. AFAIR, we do not use file locking, so the unreliability of NFS locks doesn't hurt us. What I'd be concerned about is fsync() and sync() semantics, namely whether data is down to disk when we think it is. > Nobody is going to make such a guarantee with postgresql (are they?) > so consider us a case study for such a setup. So far, so good, even > under heavy load testing. Load testing is not the issue here; crash testing is. Try pulling the power plug on your NFS box while the database is under load. If you can do that repeatedly and not suffer database corruption, then maybe you have a safe setup. Be sure to try the case of NFS crash immediately after a CHECKPOINT. regards, tom lane