-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pitt wrote:
> 
> Hi Andres!
> 
> Andres Junge [2005-11-10 22:01 -0300]:
> 
>>>>After a dual installation (psql-7.4 and 8.0 on the same machine) the
>>>>postgresql-server 8.0 does not bind to default port 5433. It has to be
>>>>changed in the postgresql.conf file, to use port 5432, and then it
>>>>works.
>>>
>>>
>>>Can you please clarify this a bit? If you installed 7.4 first, and 8.0
>>>second, then the default 7.4 cluster will listen to 5432, and the
>>>default 8.0 one to 5433. Port assignments starts at 5432.
>>>
>>
>>Exactly. 7.4 first (in 5432) and 8.0 next (in 5433).
> 
> 
> Ok, so everything seems to work as it should.
> 
> 
>>The problem is that version 8.0 won't start. It start only if I
>>change port from 5433 to 5432. Got it?
> 
> 
> No, that cannot work. You cannot start two postmasters at the same
> port.
> 
> 
>>Version Cluster   Port Status Owner    Data directory                     Log 
>>file
>>7.4     main      5432 down   postgres /var/lib/postgresql/7.4/main
>>/var/log/postgresql/postgresql-7.4-main.log
>>8.0     main      5432 down   postgres /var/lib/postgresql/8.0/main
>>/var/log/postgresql/postgresql-8.0-main.log
> 
> 
> As I said, this can't work. Both clusters are down, so you cannot talk
> to either of them.
> 
> If 8.0 does not start, the problem cannot be the 5433 port, the
> problem is somewhere else.
> 
> Please change the 8.0 port back to 5433 and send me the output of the
> following commands (as root):
> 
>  /etc/init.d/postgresql-7.4 start
>  /etc/init.d/postgresql-8.0 start
>  pg_lsclusters

Strange thing, now it works!!!

Here is what you ask for
kloketem:~# /etc/init.d/postgresql-7.4 start
Starting PostgreSQL 7.4 database server: main.
kloketem:~# /etc/init.d/postgresql-8.0 start
Starting PostgreSQL 8.0 database server: main.
kloketem:~# pg_lsclusters
Version Cluster   Port Status Owner    Data directory                     Log 
file
7.4     main      5432 online postgres /var/lib/postgresql/7.4/main
/var/log/postgresql/postgresql-7.4-main.log
8.0     main      5433 online postgres /var/lib/postgresql/8.0/main
/var/log/postgresql/postgresql-8.0-main.log


Sorry for the inconviniece.

> 
> Thanks,
> 
> Martin


Andres
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDfl5QVxWNkyLu3tYRAhkoAJ4jZrzvEVnoQraqgMHuDCl91mDY1QCfVr+6
YTGrfp/ibEE/lr098nWkt/k=
=PkGW
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to