git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c99ddfc)
Remove caveat about avoiding cross-type operators in constraints intended
2006年12月28日 20:02:38 +0000 (20:02 +0000)
2006年12月28日 20:02:38 +0000 (20:02 +0000)
for use with constraint exclusion. We can prove those cases now...


diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml
index dee6bc70340246ba79dbe11a80716839ca24ab11..6dd740fbfeeb42044c2d2fd8681c5cf3719b3583 100644 (file)
--- a/doc/src/sgml/ddl.sgml
+++ b/doc/src/sgml/ddl.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.69 2006年11月28日 01:09:01 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.70 2006年12月28日 20:02:38 tgl Exp $ -->
<chapter id="ddl">
<title>Data Definition</title>
@@ -2784,29 +2784,6 @@ EXPLAIN SELECT count(*) FROM measurement WHERE logdate &gt;= DATE '2006年01月01日';
</para>
</listitem>
- <listitem>
- <para>
- Avoid cross-data type comparisons in the <literal>CHECK</>
- constraints, as the planner will currently fail to prove such
- conditions false. For example, the following constraint
- will work if <varname>x</varname> is an <type>integer</type>
- column, but not if <varname>x</varname> is a
- <type>bigint</type>:
-<programlisting>
-CHECK ( x = 1 )
-</programlisting>
- For a <type>bigint</type> column we must use a constraint like:
-<programlisting>
-CHECK ( x = 1::bigint )
-</programlisting>
- The problem is not limited to the <type>bigint</type> data type
- &mdash; it can occur whenever the default data type of the
- constant does not match the data type of the column to which it
- is being compared. Cross-data type comparisons in the supplied
- queries are usually OK, just not in the <literal>CHECK</> conditions.
- </para>
- </listitem>
-
<listitem>
<para>
All constraints on all partitions of the master table are considered for
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /