From: Tom Lane <tgl@sss.pgh.pa.us>
To: bchen90@163.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16426: In active/hot standby mode, create database and drop template databases cause standby restart failed
Date: Sat, 09 May 2020 11:10:48 -0400
Message-ID: <3304.1589037048@sss.pgh.pa.us> (raw)
In-Reply-To: <16426-8150eafd94d1ba37@postgresql.org>
References: <16426-8150eafd94d1ba37@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> In active/hot standby mod, doing likes the following:
> 1) using createdb to create a database 'test'
> 2) drop template0 and template1 database
Removing the template0 database is not a supported configuration.
There are emergency situations where it could make sense to do it,
perhaps, but only if you then recreate it (using some other database
as template); and even then you'd better be a guru who knows exactly
what he's doing, or you'll mess up the installation beyond repair.
It's certainly no surprise that dump/restore type activities will
fail with no template for CREATE DATABASE to source from.
> Is this a Bug?
No, it's Pilot Error.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bchen90@163.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16426: In active/hot standby mode, create database and drop template databases cause standby restart failed
In-Reply-To: <3304.1589037048@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox