• Tom Lane's avatar
    Extend CREATE DATABASE to allow selection of a template database to be · 2cf48ca0
    Tom Lane authored
    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!
    2cf48ca0
pg_dumpall.sh 6.57 KB