Fix BZ892006: Make postgresql socket file access solvent and add tests for postgres and mysql socket files.
Merge pull request #1131 from pmorie/bugs/892006

Merged by openshift-bot