From: Chris Ruprecht <chrup999@yahoo.com>
To: Steve Frampton <frampton@linuxninja.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: [REPOST] Remote database questions (NFS shared access, RServ)
Date: Tue, 9 Oct 2001 10:01:40 -0500
Message-ID: <007201c150d3$4db7d7a0$5dd26383@corp.compucom.com> (raw)
References: <Pine.LNX.4.33.0110090400220.28064-100000@astro.phpwebhosting.com>
<23082.1002634346@sss.pgh.pa.us>
Sharing a DB via NFS - No - absolutely not a good idea, no matter which DB
you're talking about.
However, you can remote access the DB through TCP/IP sockets, the Postmaster
can be configured to listen to some port (5432 is the default) and you can
have remote sessions running.
To R/O access a PostGreSQL DB, you can grant 'select' rights to the remote
users. It's not the same as opening the DB via a local postmaster process on
a remote drive though - refer to my first point ;).
Best regards,
Chris
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Steve Frampton" <frampton@linuxninja.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Tuesday, October 09, 2001 8:32 AM
Subject: Re: [ADMIN] [REPOST] Remote database questions (NFS shared access,
RServ)
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
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: chrup999@yahoo.com, frampton@linuxninja.com
Subject: Re: [REPOST] Remote database questions (NFS shared access, RServ)
In-Reply-To: <007201c150d3$4db7d7a0$5dd26383@corp.compucom.com>
References: <Pine.LNX.4.33.0110090400220.28064-100000@astro.phpwebhosting.com> <23082.1002634346@sss.pgh.pa.us> <007201c150d3$4db7d7a0$5dd26383@corp.compucom.com>
* 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