Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] Can we have 2 databases on same server

From: Chris <dmagick(at)gmail(dot)com>
To: Suresh Gupta VG <suresh(dot)g(at)zensar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [GENERAL] Can we have 2 databases on same server
Date: 2008-01-30 06:56:42
Message-ID: 47A01FAA.9060306@gmail.com (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-general
> 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/

In response to

pgsql-admin by date

Next:From: Brian ModraDate: 2008-01-30 06:59:11
Subject: Re: how to create cluster(loadbanacing) of postgresql server
Previous:From: Suresh Gupta VGDate: 2008-01-30 06:38:34
Subject: Can we have 2 databases on same server

pgsql-general by date

Next:From: Brian ModraDate: 2008-01-30 06:59:11
Subject: Re: how to create cluster(loadbanacing) of postgresql server
Previous:From: Joshua D. DrakeDate: 2008-01-30 06:47:57
Subject: Re: PGCon vs Postgresql Conference

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group