Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed postgresql 8.4 and 9.1 on same ubuntu machine and I want to try to run only 9.1 and 8.4 to stay off. When I run /etc/init.d/postgresql start it starts both. How to start only one version, in this case 9.1 ?

Ubuntu is upgraded to 12.04, bit are installed via apt-get install but I added to sources list for 9.1 and then update and apt-get install.

there is no /etc/init.d/postgresql-9.1 start

share|improve this question
1  
What version of Ubuntu and how did you install 9.1 ? Why not simply remove 8.4 ? –  bodhi.zazen Jan 29 at 16:56
    
@bodhi.zazen I have edited –  Damir Jan 29 at 16:58
1  
What sources and what makes you think 8.4 is installed let alone running ? error message ? –  bodhi.zazen Jan 29 at 17:04
    
@bodhi.zazen When run /etc/init.d/postgresql start it writes starting 8.4 and after starting stating 9.1 and after when I run netstat -ltnp for port 5432 I got 8.4 –  Damir Jan 29 at 17:10
    
I suggest you remove postgresql 8.4 . –  bodhi.zazen Jan 29 at 17:34

1 Answer 1

Edit /etc/postgresql/8.4/main/start.conf and change auto to manual.

Or, if you no longer wish to keep the 8.4 database, pg_dropcluster it, or just uninstall 8.4.

For more information see https://help.ubuntu.com/community/PostgreSQL

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.