aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-10-27 11:45:50 +0100
committerPeter Eisentraut <peter_e@gmx.net>2018-11-01 20:36:05 +0100
commit96b00c433cd615144a34ff1a79d691d8b297120d (patch)
treeeebaed0bf2e30c8516695424e2c019acd9ebc49f /doc/src
parentfe5038236c6b99d48c2faa2247b5cec9703add2a (diff)
downloadpostgresql-96b00c433cd615144a34ff1a79d691d8b297120d.tar.gz
postgresql-96b00c433cd615144a34ff1a79d691d8b297120d.zip
Remove obsolete pg_constraint.consrc column
This has been deprecated and effectively unused for a long time. Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/catalogs.sgml21
1 files changed, 4 insertions, 17 deletions
diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index e7165bdc5d5..8b7f169d50c 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -2400,14 +2400,10 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<entry><structfield>conbin</structfield></entry>
<entry><type>pg_node_tree</type></entry>
<entry></entry>
- <entry>If a check constraint, an internal representation of the expression</entry>
- </row>
-
- <row>
- <entry><structfield>consrc</structfield></entry>
- <entry><type>text</type></entry>
- <entry></entry>
- <entry>If a check constraint, a human-readable representation of the expression</entry>
+ <entry>If a check constraint, an internal representation of the
+ expression. (It's recommended to use
+ <function>pg_get_constraintdef()</function> to extract the definition of
+ a check constraint.)</entry>
</row>
</tbody>
</tgroup>
@@ -2425,15 +2421,6 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
<note>
<para>
- <structfield>consrc</structfield> is not updated when referenced objects
- change; for example, it won't track renaming of columns. Rather than
- relying on this field, it's best to use <function>pg_get_constraintdef()</function>
- to extract the definition of a check constraint.
- </para>
- </note>
-
- <note>
- <para>
<literal>pg_class.relchecks</literal> needs to agree with the
number of check-constraint entries found in this table for each
relation.