Hi,

On 09/12/12 14:31, Nyx wrote:
     > Yup it does, doing `psql postgres` got me in:
     >
     > psql (9.1.5)
     > Type "help" for help.
     >
     > postgres=#

Actually, this will use the unix domain socket to connect, whereas PHP seems to have tried a TCP connection:

     > > >         ["dsn"]=>
     > > >         array(9) {
     > > >           ["phptype"]=>
     > > >           string(5) "pgsql"
     > > >           ["dbsyntax"]=>
     > > >           string(5) "pgsql"
     > > >           ["username"]=>
     > > >           string(0) ""
     > > >           ["password"]=>
     > > >           bool(false)
     > > >           ["protocol"]=>
     > > >           string(3) "tcp"
     > > >           ["hostspec"]=>
     > > >           string(0) ""
     > > >           ["port"]=>
     > > >           bool(false)
     > > >           ["socket"]=>
     > > >           bool(false)
     > > >           ["database"]=>
     > > >           string(9) "nominatim"
     > > >         }

So, to properly simulate what PHP does you would have to try

psql postgres -h localhost

Bye
Frederik

--
Frederik Ramm  ##  eMail [email protected]  ##  N49°00'09" E008°23'33"

_______________________________________________
Geocoding mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/geocoding

Reply via email to