[Pkg-postgresql-public] Bug#678626: php5-pgsql: can't connect to PostgreSQL 9.x
Vincent Bernat
bernat at debian.org
Sat Jun 23 11:02:58 UTC 2012
❦ 23 juin 2012 12:41 CEST, Cédric Villemain <cedric at 2ndquadrant.com> :
>> PostgreSQL 9.x in Debian now defaults to port 5433 (in postgresql.conf:
>> port = 5433). php5-pgsql still defaults to 5432. An application that
>> does not specify port won't be allowed to connect to a PostgreSQL
>> database.
>
> If you had a previous version of PostgreSQL installed and then install the new
> one, the port number is incremented so you can run both
> simultaneously.
[...]
> PostgreSQL itself still defaults to 5432.
Thanks for the tip!
My bug report is therefore invalid. This behaviour is a bit disturbing
since 5433 is still used if the other version is removed afterwards (I
usually remove the older version of PostgreSQL when I notice I have
installed the new one) but I think there is no universal solution for
this.
--
Make sure your code "does nothing" gracefully.
- The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20120623/cc525931/attachment.pgp>
More information about the Pkg-postgresql-public
mailing list