Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by postgresql.org (8.11.3/8.11.4) with SMTP id f99F1vn93477 for ; Tue, 9 Oct 2001 11:01:58 -0400 (EDT) (envelope-from chrup999@yahoo.com) Received: from proxy.compucom.com (HELO Z161842) (204.214.145.2) by smtp.mail.vip.sc5.yahoo.com with SMTP; 9 Oct 2001 15:01:53 -0000 X-Apparently-From: Message-ID: <007201c150d3$4db7d7a0$5dd26383@corp.compucom.com> From: "Chris Ruprecht" To: "Steve Frampton" Cc: References: <23082.1002634346@sss.pgh.pa.us> Subject: Re: [REPOST] Remote database questions (NFS shared access, RServ) Date: Tue, 9 Oct 2001 10:01:40 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200110/82 X-Sequence-Number: 2328 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" To: "Steve Frampton" Cc: Sent: Tuesday, October 09, 2001 8:32 AM Subject: Re: [ADMIN] [REPOST] Remote database questions (NFS shared access, RServ) > Steve Frampton 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