Skip to content

Commit fee7802

Browse files
committed
Move information_schema duplicate constraint note to the top of the
information schema documentation because it affects several tables.
1 parent ede45e9 commit fee7802

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

doc/src/sgml/information_schema.sgml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@
2121
<productname>PostgreSQL</productname>-specific views.
2222
</para>
2323

24+
<note>
25+
<para>
26+
The SQL standard requires constraint names to be unique within a
27+
schema; <productname>PostgreSQL</productname>, however, does not
28+
enforce this restriction. If duplicate-named constraints are
29+
stored in the same <productname>PostgreSQL</productname> schema,
30+
a standard-compliant query that expects to return one matching
31+
constraint row might return several, one row for each matching
32+
constraint stored in the specified schema.
33+
</para>
34+
</note>
35+
36+
2437
<sect1 id="infoschema-schema">
2538
<title>The Schema</title>
2639

@@ -3212,18 +3225,6 @@ ORDER BY c.ordinal_position;
32123225
</tgroup>
32133226
</table>
32143227

3215-
<note>
3216-
<para>
3217-
The SQL standard requires constraint names to be unique within a
3218-
schema; <productname>PostgreSQL</productname>, however, does not
3219-
enforce this restriction. If duplicate-named constraints are
3220-
stored in the same <productname>PostgreSQL</productname> schema, a
3221-
standard-compliant query that expects to return one row might
3222-
return several, one for each matching constraint stored in the
3223-
specified schema.
3224-
</para>
3225-
</note>
3226-
32273228
</sect1>
32283229

32293230
<sect1 id="infoschema-role-column-grants">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy