Re: Identify system databases

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Identify system databases
Date: 2025-04-15 15:07:57
Message-ID: ef83fd38-f11d-491b-9d02-86e0f2ccc575@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/15/25 07:48, Igor Korot wrote:
> Hi, ALL,
> Is there a field in the pg_databases table which indicates that
> particular DB is a system one?

No there is not. As a practical matter they are no different then any
user created database, other then template0 is created with datallowconn
set to false.

>
> Or it can be determined ony by name?
>
> Thank you.
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2025-04-15 15:25:11 Re: Help with PhD Dissertation
Previous Message David G. Johnston 2025-04-15 14:56:07 Re: Identify system databases