pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: Suresh Gupta VG <suresh.g@zensar.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Can we have 2 databases on same server
Date: Wed, 30 Jan 2008 17:56:42 +1100
Message-ID: <47A01FAA.9060306@gmail.com> (raw)
In-Reply-To: <3D5445983859B84B92669C0D883EA6FB0C0A57B5@ZENMAILHQ1.ind.zensar.com>
References: <3D5445983859B84B92669C0D883EA6FB0C0A57B5@ZENMAILHQ1.ind.zensar.com>


> 1)       Can I please know, if we can run 2 databases on the same server 
> with out any conflicts?

You can as long as they are installed in separate locations.

That is:

db1: /usr/local/pgsql/7.4
db2: /usr/local/pgsql/8.1

The main reason is so your app doesn't pick up the wrong binary and use 
that and cause all sorts of weird and wonderful errors :)

> 2)       If it is so, at what stage we are need to configure the 2 
> databases? Pls provide links or docs if available.

http://www.postgresql.org/docs/8.2/static/install-procedure.html (look 
at the --prefix stuff).

http://www.postgresql.org/docs/8.2/static/creating-cluster.html

and
http://www.postgresql.org/docs/8.2/static/install-upgrading.html

for how to copy your data into the new system.


They will also need to run on different ports. Edit the postgresql.conf 
file on the new install and change the port=5432 line to another 
(unused) number.

-- 
Postgresql & php tutorials
http://www.designmagick.com/



view thread (4+ messages)  latest in thread

Message-ID: <47A01FAA.9060306@gmail.com>
Permalink:  ../47A01FAA.9060306@gmail.com/
Also on:    postgresql.org/message-id/47A01FAA.9060306@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: dmagick@gmail.com, suresh.g@zensar.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Can we have 2 databases on same server
  In-Reply-To: <47A01FAA.9060306@gmail.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