A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/21dd26edbd1c8705d9b6ffb7b0d0eab5dfefc18d below:

create a createdb.sql for all dbs but template0 · orgrim/pg_back@21dd26e · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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