+10
-0
lines changedFilter options
+10
-0
lines changed Original file line number Diff line number Diff line change
@@ -46,6 +46,11 @@ in the current directory:
46
46
docker run --rm -v "$PWD":/go/bin golang:1.16 go get github.com/orgrim/pg_back
47
47
```
48
48
49
+
## Minimum versions
50
+
51
+
The minimum version of `pg_dump` et `pg_dumpall` required to dump is 8.4. The
52
+
oldest tested server version of PostgreSQL is 8.2.
53
+
49
54
## Usage
50
55
51
56
Use the `--help` or `-?` to print the list of available options. To dump all
Original file line number Diff line number Diff line change
@@ -153,7 +153,12 @@ func main() {
153
153
binDir = opts.BinDirectory
154
154
}
155
155
156
+
// Ensure that pg_dump accepts the options we will give it
156
157
pgDumpVersion := pgToolVersion("pg_dump")
158
+
if pgDumpVersion < 80400 {
159
+
l.Fatalln("provided pg_dump is older than 8.4, unable use it.")
160
+
os.Exit(1)
161
+
}
157
162
158
163
// Parse the connection information
159
164
l.Verboseln("processing input connection parameters")
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