Patches for Fix UNIX socket check for check_pgsql [sf#3510397] [#1144]