Skip to content

Commit

Permalink
Update docs about PostgreSQL socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Mar 3, 2020
1 parent b06f915 commit d842a5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/core/connectors/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ postgresql://user:password@host?sslidentity=client-identity.p12&sslpassword=mypa

### Connecting via sockets

To connect to your PostgreSQL database via sockets, you must add a `host` field as a _query parameter_ to the connection string (instead of setting it as the `host` part of the URI). The value of this parameter then must point to the directory that contains the socket, e.g.: `postgresql://user:password@/database?host=/var/run/postgresql/`.
To connect to your PostgreSQL database via sockets, you must add a `host` field as a _query parameter_ to the connection string (instead of setting it as the `host` part of the URI).
The value of this parameter then must point to the directory that contains the socket, e.g.:
`postgresql://user:password@localhost/database?host=/var/run/postgresql/`
Note that `localhost` is required, the value itself is ignored and can be anything.

Learn more in this [GitHub issue](https://github.com/prisma/prisma2/issues/525).
Learn more in this [GitHub issue](https://github.com/prisma/prisma-client-js/issues/437#issuecomment-592436707).

0 comments on commit d842a5b

Please sign in to comment.