+1
-1
lines changedFilter options
+1
-1
lines changed Original file line number Diff line number Diff line change
@@ -261,7 +261,7 @@ func dumpCreateDBAndACL(db *pg, dbname string, force bool) (string, error) {
261
261
return "", fmt.Errorf("could not get row: %s", err)
262
262
}
263
263
264
-
if dbname != "template1" && dbname != "postgres" {
264
+
if dbname != "template0" {
265
265
s += fmt.Sprintf("--\n-- Database creation\n--\n\n")
266
266
s += fmt.Sprintf("CREATE DATABASE \"%s\" WITH TEMPLATE = template0 OWNER = \"%s\"", sqlQuoteIdent(dbname), sqlQuoteIdent(owner))
267
267
s += fmt.Sprintf(" ENCODING = %s", sqlQuoteLiteral(encoding))
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