Re: Fwd: Identify system databases

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Fwd: Identify system databases
Дата
Msg-id f5612b59b0a82bee2bf28efd314ac338bbc4c6b5.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Fwd: Identify system databases  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Fwd: Identify system databases
Список pgsql-general
On Tue, 2025-04-15 at 17:24 -0700, Adrian Klaver wrote:
> I know I can use --template=template with createdb, but that still means
> there has to be a database existing in the initial cluster to use as a
> template. You can't get around that fact.

Right.

But then you fortunately cannot drop all databases, because you cannot
drop the database you are connected to.

Still, a cluster that is missing "postgres" will give beginners trouble,
a cluster that is missing "template1" is annoying, and a cluster without
"template0" is possibly in serious trouble.

Yours,
Laurenz Albe



В списке pgsql-general по дате отправления: