Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dec4ed3

Browse files
committed
Add note deprecating use of consrc.
1 parent 44430db commit dec4ed3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/src/sgml/catalogs.sgml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Documentation of the system catalogs, directed toward PostgreSQL developers
3-
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.74 2003/09/12 22:17:19 tgl Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.75 2003/10/17 00:55:17 tgl Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -1357,6 +1357,15 @@
13571357
</tgroup>
13581358
</table>
13591359

1360+
<note>
1361+
<para>
1362+
<structfield>consrc</structfield> is not updated when referenced objects
1363+
change; for example, it won't track renaming of columns. Rather than
1364+
relying on this field, it's best to use <function>pg_get_constraintdef()</>
1365+
to extract the definition of a check constraint.
1366+
</para>
1367+
</note>
1368+
13601369
<note>
13611370
<para>
13621371
<literal>pg_class.relchecks</literal> needs to agree with the

0 commit comments

Comments
 (0)