From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Information Schema and constraint names not unique |
Date: | 2003-11-06 15:11:38 |
Message-ID: | 19552.1068131498@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> Notice that the two records are identical because the two constraint names
> are the same. ISTM that we should have a way of usefully examining specific
> constraints without having to name them. Can we add the constraint OID or
No. The schemas of the information_schema views are defined by the
standard; I don't think we get to invent columns, especially not columns
with such PG-specific contents as OIDs.
> some other identifier (table?) or ensure that constraint names are unique?
The reason the spec defines these views this way is that it expects
constraint names to be unique across a whole schema. We don't enforce
that, and I don't think we want to start doing so (that was already
proposed and shot down at least once). You are of course free to use
constraint names that are distinct if you want to follow the spec's
lead.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-11-06 15:35:47 | Re: Very poor estimates from planner |
Previous Message | Alvaro Herrera | 2003-11-06 14:46:41 | Re: [HACKERS] Changes to Contributor List |