From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Andreas 'ads' Scherbaum" <adsmail(at)wars-nicht(dot)de> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: List of postgreSQL databases |
Date: | 2010-05-10 18:52:54 |
Message-ID: | 14921.1273517574@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
"Andreas 'ads' Scherbaum" <adsmail(at)wars-nicht(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Evan Rempel | 2010-05-10 20:26:51 | PgPool-II - does it do re-connect? |
Previous Message | Andreas 'ads' Scherbaum | 2010-05-10 18:40:01 | Re: List of postgreSQL databases |