+6
-2
lines changedFilter options
+6
-2
lines changed Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## pg_back 2.0.1
4
+
5
+
* Use /var/run/postgresql as default host for connections
6
+
3
7
## pg_back 2.0.0
4
8
5
9
* Full rewrite in Go
Original file line number Diff line number Diff line change
@@ -222,7 +222,7 @@ func prepareConnInfo(host string, port int, username string, dbname string) stri
222
222
// we have to check PGHOST and fallback to the unix
223
223
// socket directory to avoid overriding PGHOST
224
224
if _, ok := os.LookupEnv("PGHOST"); !ok {
225
-
conninfo += "host=/tmp "
225
+
conninfo += "host=/var/run/postgresql "
226
226
}
227
227
}
228
228
if port != 0 {
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ func TestPrepareConnInfo(t *testing.T) {
145
145
{"localhost", 5432, "", "postgres", "host=localhost port=5432 dbname=postgres application_name=pg_back"},
146
146
{"localhost", 5432, "postgres", "", "host=localhost port=5432 user=postgres application_name=pg_back"},
147
147
{"localhost", 0, "postgres", "", "host=localhost user=postgres application_name=pg_back"},
148
-
{"", 0, "postgres", "", "host=/tmp user=postgres application_name=pg_back"},
148
+
{"", 0, "postgres", "", "host=/var/run/postgresql user=postgres application_name=pg_back"},
149
149
{"localhost", 0, "postgres", "host=/tmp port=5432", "host=/tmp port=5432 application_name=pg_back"},
150
150
}
151
151
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4