Open sashabaranov opened 7 years ago
Can someone give definite example of how to connect to postgresql via unix socket?
I've tried the following:
postgres://user:pass@/path/to/sock.sock/db?sslmode=disable postgres://user:pass@/path/to/sock/dir/db?sslmode=disable postgres://user:pass@localhost/db?sslmode=disable&host=/path/to/sock.sock
Neither seem to work.
With ordinary lib/pq I use:
db, err := sql.Open("postgres", "user=user password=pass host=/path/to/sock/dir dbname=db sslmode=disable")
Interesting. I don't think we have tests for this. I think we would need to implement this.
Can someone give definite example of how to connect to postgresql via unix socket?
I've tried the following:
Neither seem to work.
With ordinary lib/pq I use: