Skip to content

Commit fb07eaf

Browse files
authored
Merge pull request sfackler#692 from nguiard/master
Fix unix socket location in docs (/var/run/postgresql instead of /var/lib/postgresql)
2 parents 5ad3c9a + c4b1f5a commit fb07eaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

postgres/src/config.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use tokio_postgres::{Error, Socket};
5959
/// ```
6060
///
6161
/// ```not_rust
62-
/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces'
62+
/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces'
6363
/// ```
6464
///
6565
/// ```not_rust
@@ -80,15 +80,15 @@ use tokio_postgres::{Error, Socket};
8080
/// ```
8181
///
8282
/// ```not_rust
83-
/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10
83+
/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10
8484
/// ```
8585
///
8686
/// ```not_rust
8787
/// postgresql://user@host1:1234,host2,host3:5678?target_session_attrs=read-write
8888
/// ```
8989
///
9090
/// ```not_rust
91-
/// postgresql:///mydb?user=user&host=/var/lib/postgresql
91+
/// postgresql:///mydb?user=user&host=/var/run/postgresql
9292
/// ```
9393
#[derive(Clone)]
9494
pub struct Config {

0 commit comments

Comments
 (0)