This page is part of the BugReports series. Please go there to submit a new bug or to see the list of all existing reports.


postgresql pg_connect missing host variable

ewiki version R1.02b-rc1
operating system Unix
database backend anydb: pgsql
php version 4.2.x
bug category db plugin
status frozen

Lucas Dixon: In the db/any.php the postgresql connection "pg_connect" call is missing the host, so if the database is not hosted locally, it will fail to connect.

simply modify line:

and ($db = pg_connect("dbname=$dbname user=$user password=$pw"))

to

and ($db = pg_connect("host=$host dbname=$dbname user=$user password=$pw"))

I think. :)

bottom corner