From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: List of postgreSQL databases
Date: Mon, 10 May 2010 14:52:54 -0400
Message-ID: <14921.1273517574@sss.pgh.pa.us> (raw)
In-Reply-To: <20100510204001.308bd971@platin.wars-nicht.de>
References: <7965A9DCF12CC14984420BCC37B1608F25ABF30DE5@Elzar.grant.co.uk>
<x2yc3a7de1f1004060439j35ad8c7m7db3abc046b1efd3@mail.gmail.com>
<20100510204001.308bd971@platin.wars-nicht.de>
"Andreas 'ads' Scherbaum" <adsmail@wars-nicht.de> writes:
>> SELECT datname FROM pg_database;
> Is this guaranteed to stay forever?
It seems reasonably unlikely that we'd change it. Even if we did,
we have in the past provided compatibility views (cf pg_user,
pg_shadow) when removing a catalog --- I would think the same would
happen for pg_database if we ever removed it.
> Isn't there a way to make the list of databases available in
> information_schema and change this view whenever the underlaying
> structure might change?
The point of information_schema is that it's standardized. There
is no view in the SQL standard that corresponds to a list of databases.
If you think there ought to be, take it up with the SQL committee.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, adsmail@wars-nicht.de
Subject: Re: List of postgreSQL databases
In-Reply-To: <14921.1273517574@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