If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Multiple Postgres Instances on Ubuntu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-09, 10:14
pmlemos pmlemos is offline
Registered User
 
Join Date: Oct 2009
Posts: 4
Question Multiple Postgres Instances on Ubuntu

Hi people,

I'm involved in several projects nowadays, and that makes me the need to install several postgresql versions.

My actual problem is, how can I install postgresql-8.3.1 and postgresql-8.3.4 on ubuntu (linux).

Anyone knows how can I do it?
Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-04-09, 13:00
artacus72 artacus72 is offline
Registered User
 
Join Date: Aug 2009
Location: Olympia, WA
Posts: 337
You shouldn't need to install both because there won't be any functionality differences between the two minor releases.

You can install two major versions (like 8.3 and 8.4) on ubuntu because it puts the config and data files in separate folders by default (/etc/postgres/8.4/...).

But to do this, you'll only be able to install 1 thru synaptic, and the other you'll need to install using 1-click installer or compile your own.

Obviously you'll need to put them on different ports.
Reply With Quote
  #3 (permalink)  
Old 11-04-09, 15:06
pmlemos pmlemos is offline
Registered User
 
Join Date: Oct 2009
Posts: 4
Quote:
Originally Posted by artacus72 View Post
You shouldn't need to install both because there won't be any functionality differences between the two minor releases.

You can install two major versions (like 8.3 and 8.4) on ubuntu because it puts the config and data files in separate folders by default (/etc/postgres/8.4/...).

But to do this, you'll only be able to install 1 thru synaptic, and the other you'll need to install using 1-click installer or compile your own.

Obviously you'll need to put them on different ports.
Hi, thank you for your answer
I only need to use one at a time, so think that I can use the same ports.

I am using: the following commands to install postgres:
1) $ tar xvzf postgresql-8.3.5.tar.gz
2) $ cd postgresql-8.3.5/
3) $ ./configure --with-pam
4) $ make
5) $ sudo make install

And it installs postgres into folder: /usr/local/pgsql.

How can I decide were to put them?
Thanks once more

Last edited by pmlemos; 11-04-09 at 15:10.
Reply With Quote
Reply

Tags
installation, linux, multiple versions, postgres, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On