From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: Yogi S <infayogi@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: PostgreSQL :: Catalog Query
Date: Wed, 18 Jul 2018 09:48:51 -0400
Message-ID: <8245.1531921731@sss.pgh.pa.us> (raw)
In-Reply-To: <046cb876-a4b7-f24d-f5d6-67482755fea2@gmx.net>
References: <CAOs6+zstj=fA8WJbwXLd7uGMQxMLCeV4Sd+LKhS3muG1j4m4Nw@mail.gmail.com>
<046cb876-a4b7-f24d-f5d6-67482755fea2@gmx.net>
Thomas Kellerer <spam_eater@gmx.net> writes:
> As far as the SQL standard is concerned Postgres' databases do map to the term "catalog" .
> The only difference (or deviation from the standard) is, that they are no real "namespaces".
> In the SQL standard a fully qualified (table) name consists of three parts:
> catalog.schema.table
> however in Postgres the catalog (while it exists as a "thing") is not allowed to be used in a fully qualified name.
You can in fact use the database/catalog name within qualified names:
select * from mydb.someschema.sometable;
But it's purely for pro forma standards compliance. If you give a three-
part name and the first part isn't the current database, you'll just get
an error. In theory we might someday extend this to allow cross-database
accesses, but I wouldn't hold my breath waiting.
In any case, the fact that different DBMSes implement different subsets
of the spec isn't a bug, either ours or theirs.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, spam_eater@gmx.net, infayogi@gmail.com
Subject: Re: PostgreSQL :: Catalog Query
In-Reply-To: <8245.1531921731@sss.pgh.pa.us>
References: <CAOs6+zstj=fA8WJbwXLd7uGMQxMLCeV4Sd+LKhS3muG1j4m4Nw@mail.gmail.com> <046cb876-a4b7-f24d-f5d6-67482755fea2@gmx.net> <8245.1531921731@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