public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jürgen Purtz <[email protected]>
To: Corey Huinker <[email protected]>
Cc: Roger Harkavy <[email protected]>
Cc: [email protected]
Cc: Fabien COELHO <[email protected]>
Cc: Michael Paquier <[email protected]>
Subject: Re: Add A Glossary
Date: Fri, 13 Mar 2020 10:18:40 +0600
Message-ID: <[email protected]> (raw)
In-Reply-To: <CADkLM=fuijXpnjnXaaRoYNQm_P5v1ToVpC3ZeSsePdzW_DtOtg@mail.gmail.com>
References: <CADkLM=eP6HOeqDjn0FdXuGRusQu4oWH_LFsKjjafmhvWD=aSpQ@mail.gmail.com>
<alpine.DEB.2.21.1911090904410.31344@lancre>
<[email protected]>
<CADkLM=fx_kNCCz97HSXMBgTSY50Es_czsNZJrdCBtpYiT_VLHA@mail.gmail.com>
<CADkLM=cQ1D4pA8GmBBftg7R+qQnJDHEgLvmxG4HBV8F6r4eiKg@mail.gmail.com>
<CAM-7Z-r5AZ_LxUi2Vs1_U-suM_iZRVgwBHow8Oh56QXu6Zk+0w@mail.gmail.com>
<[email protected]>
<CADkLM=fuijXpnjnXaaRoYNQm_P5v1ToVpC3ZeSsePdzW_DtOtg@mail.gmail.com>
> The statement that names of schema objects are unique isn't
> /strictly/ true, just /mostly/ true. Take the case of a unique
> constraints.
Concerning CONSTRAINTS you are right. Constraints seems to be an exception:
* Their name belongs to a schema, but are not necessarily unique
within this context:
https://www.postgresql.org/docs/current/catalog-pg-constraint.html.
* There is a UNIQUE index within the system catalog pg_constraints:
"pg_constraint_conrelid_contypid_conname_index" UNIQUE, btree
(conrelid, contypid, conname), which expresses that names are unique
within the context of a table/constraint-type. Nevertheless tests
have shown that some stronger restrictions exists across
table-boarders (,which seems to be implemented in CREATE statements
- or as a consequence of your mentioned correlation between
constraint and index ?).
I hope that there are no more such exception to the global rule 'object
names in a schema are unique':
https://www.postgresql.org/docs/current/sql-createschema.html
This facts must be mentioned as a short note in glossary and in more
detail in the later patch about the architecture.
J. Purtz
view thread (97+ messages) latest in thread
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Add A Glossary
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox