From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Frampton <frampton@LinuxNinja.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: [REPOST] Remote database questions (NFS shared access, RServ)
Date: Tue, 09 Oct 2001 09:32:26 -0400
Message-ID: <23082.1002634346@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0110090400220.28064-100000@astro.phpwebhosting.com>
References: <Pine.LNX.4.33.0110090400220.28064-100000@astro.phpwebhosting.com>
Steve Frampton <frampton@LinuxNinja.com> writes:
> even better solution seems to be to run my production (or backup mirror)
> from a NetApp over Gb NFS so there's no issues with replication. Is it
> possible, safe, and advisable to share a PostgreSQL database file via NFS,
> as long as non-masters are only accessing it R/O?
No. (a) there is no such thing as R/O access in Postgres; (b) the
non-masters would have no guarantee of seeing a consistent view,
due to buffering inside the master.
I don't even recommend mounting a database over NFS, let alone trying
to share it. Too much risk of database corruption after a system crash,
because NFS provides only weak guarantees about write synchronization.
See the mailing list archives for past discussion about NFS risks.
regards, tom lane
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, frampton@LinuxNinja.com
Subject: Re: [REPOST] Remote database questions (NFS shared access, RServ)
In-Reply-To: <23082.1002634346@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0110090400220.28064-100000@astro.phpwebhosting.com> <23082.1002634346@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