Skip to content
Snippets Groups Projects
Commit 2cf48ca0 authored by Tom Lane's avatar Tom Lane
Browse files

Extend CREATE DATABASE to allow selection of a template database to be

cloned, rather than always cloning template1.  Modify initdb to generate
two identical databases rather than one, template0 and template1.
Connections to template0 are disallowed, so that it will always remain
in its virgin as-initdb'd state.  pg_dumpall now dumps databases with
restore commands that say CREATE DATABASE foo WITH TEMPLATE = template0.
This allows proper behavior when there is user-added data in template1.
initdb forced!
parent 8a9315ca
No related branches found
No related tags found
No related merge requests found
Showing
with 506 additions and 301 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment