{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/72","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/72/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/72/events","html_url":"https://github.com/strongloop/loopback-connector-postgresql/issues/72","id":70444881,"number":72,"title":"Add an example for connecting to UNIX domain socket","user":{"login":"pmontrasio","id":47483,"avatar_url":"https://avatars.githubusercontent.com/u/47483?v=3","gravatar_id":"","url":"https://api.github.com/users/pmontrasio","html_url":"https://github.com/pmontrasio","followers_url":"https://api.github.com/users/pmontrasio/followers","following_url":"https://api.github.com/users/pmontrasio/following{/other_user}","gists_url":"https://api.github.com/users/pmontrasio/gists{/gist_id}","starred_url":"https://api.github.com/users/pmontrasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmontrasio/subscriptions","organizations_url":"https://api.github.com/users/pmontrasio/orgs","repos_url":"https://api.github.com/users/pmontrasio/repos","events_url":"https://api.github.com/users/pmontrasio/events{/privacy}","received_events_url":"https://api.github.com/users/pmontrasio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T15:44:52Z","updated_at":"2015-04-24T06:38:47Z","closed_at":"2015-04-24T06:38:47Z","body":"A common PostgreSQL configuration is to connect to the UNIX domain socket /var/run/postgresql/.s.PGSQL.5432 instead of using the TCP/IP port. I read the code and made some attempts at configuring datasources.json until I found the solution\r\n\r\n    {\r\n      \"postgres\": {\r\n        \"host\": \"/var/run/postgresql/\",\r\n        \"port\": \"5432\",\r\n        \"database\": \"dbname\",\r\n        \"username\": \"dbuser\",\r\n        \"password\": \"dbpassword\",\r\n        \"name\": \"postgres\",\r\n        \"debug\": true,\r\n        \"connector\": \"postgresql\"\r\n      }\r\n    }\r\n\r\nI think this could be added to the README.\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/comments/95822008","html_url":"https://github.com/strongloop/loopback-connector-postgresql/issues/72#issuecomment-95822008","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-postgresql/issues/72","id":95822008,"user":{"login":"pmontrasio","id":47483,"avatar_url":"https://avatars.githubusercontent.com/u/47483?v=3","gravatar_id":"","url":"https://api.github.com/users/pmontrasio","html_url":"https://github.com/pmontrasio","followers_url":"https://api.github.com/users/pmontrasio/followers","following_url":"https://api.github.com/users/pmontrasio/following{/other_user}","gists_url":"https://api.github.com/users/pmontrasio/gists{/gist_id}","starred_url":"https://api.github.com/users/pmontrasio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmontrasio/subscriptions","organizations_url":"https://api.github.com/users/pmontrasio/orgs","repos_url":"https://api.github.com/users/pmontrasio/repos","events_url":"https://api.github.com/users/pmontrasio/events{/privacy}","received_events_url":"https://api.github.com/users/pmontrasio/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T06:38:47Z","updated_at":"2015-04-24T06:38:47Z","body":"That was quick!\r\nThanks @raymondfeng and @crandmck "}}