Re: question about installation

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: martin soethof <martinsoethof(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: question about installation
Date: 2012-07-12 00:27:29
Message-ID: 4FFE19F1.6060109@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/11/2012 08:58 PM, martin soethof wrote:
> Hello
> I have the following situation.
> I used a postgres installer that can choose seperate paths for the
> normal postgres and the data folder.
> I used this because i wanted to share a database on an external hard
> drive between 2 computers.

It'll work so long as both computers are running the same PostgreSQL
major version (same x.y version) built with the same options and the
same bitness (32- or 64-bit). I'd use replication instead if possible,
but it should work so long as the HDD isn't connected to and mounted by
both computers at the same time. If you're using USB that's impossible
and you'll be fine, but it's something to watch out for using FireWire
or SCSI/SAS.

The main thing is that you won't be able to use it as an auto-starting
Windows service. You must either start and stop the service manually
when the disk is added/removed, or use pg_ctl to start/stop the DB manually.

You will also have to watch out for permissions.

Personally, I'd use pg_ctl to start/stop the DB manually. See the
PostgreSQL documentation. That way you don't have to wrangle the Windows
service at all.

> Tomorrow i will be sitting behind PC #2, how should i install it..
Check the command lines for the EnterpriseDB installer. I'd be surprised
if it didn't have a binaries-only option that allowed you to skip
database creation and creation of a Windows service entry, so you can
then just use pg_ctl to start/stop the DB.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2012-07-12 00:42:51 Re: Sequence moves forward when failover is triggerred
Previous Message Adrian Klaver 2012-07-11 23:56:35 Re: Error with plpython