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