From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Igor Korot <ikorot01(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Fwd: Identify system databases |
Date: | 2025-04-16 07:31:46 |
Message-ID: | f5612b59b0a82bee2bf28efd314ac338bbc4c6b5.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Dominique Devienne | 2025-04-16 08:09:11 | Re: Fwd: Identify system databases |
Previous Message | vijay patil | 2025-04-16 05:15:24 | Re: Best Tool for PostgreSQL Auditing and Storing Audit Logs Separately |