Menu

#384 Changed behavior for connecting to PostgreSQL through a UNIX socket

Future_Requests
open
nobody
None
1
2017-04-07
2017-04-05
No

Since MRBS 1.6, it is no longer possible to connect to PostgreSQL through a UNIX socket by leaving $db_host empty - the DSN passed to PDO is invalid. Instead, I have to explicitly set it to the path where the socket resides.

The comments in the sample config file still refer to the old behavior. At the very least, the documentation should be updated, but being able to use the old behavior (which was more portable by using the system's default location) would be even better.

Discussion

  • John Beranek

    John Beranek - 2017-04-05

    Thanks for the report, checked in a fix as [hg-code:0fe8e6].

     

    Related

    Commit: [0fe8e6]

  • John Beranek

    John Beranek - 2017-04-05

    and [hg-code:e9376b].

     

    Related

    Commit: [e9376b]

  • Holger Schletz

    Holger Schletz - 2017-04-07

    Works as expected. Thank you!