pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Miles <chris_pg002@psychofx.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Multiple backends on a single physical database
Date: Sat, 12 Oct 2002 12:26:51 -0400
Message-ID: <12601.1034440011@sss.pgh.pa.us> (raw)
In-Reply-To: <20021012161939.K6712@psychofx.com>
References: <20021012160610.I6712@psychofx.com>
	<200210121511.g9CFBs619940@candle.pha.pa.us>
	<20021012161939.K6712@psychofx.com>

Chris Miles <chris_pg002@psychofx.com> 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



view thread (13+ messages)  latest in thread

Message-ID: <12601.1034440011@sss.pgh.pa.us>
Permalink:  ../12601.1034440011@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12601.1034440011@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, chris_pg002@psychofx.com, pgman@candle.pha.pa.us
  Subject: Re: Multiple backends on a single physical database
  In-Reply-To: <12601.1034440011@sss.pgh.pa.us>
  References: <20021012160610.I6712@psychofx.com> <200210121511.g9CFBs619940@candle.pha.pa.us> <20021012161939.K6712@psychofx.com> <12601.1034440011@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox