Commit dec4ed31 authored by Tom Lane's avatar Tom Lane

Add note deprecating use of consrc.

parent 44430dbc
<!-- <!--
Documentation of the system catalogs, directed toward PostgreSQL developers Documentation of the system catalogs, directed toward PostgreSQL developers
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.74 2003/09/12 22:17:19 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.75 2003/10/17 00:55:17 tgl Exp $
--> -->
<chapter id="catalogs"> <chapter id="catalogs">
...@@ -1357,6 +1357,15 @@ ...@@ -1357,6 +1357,15 @@
</tgroup> </tgroup>
</table> </table>
<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()</>
to extract the definition of a check constraint.
</para>
</note>
<note> <note>
<para> <para>
<literal>pg_class.relchecks</literal> needs to agree with the <literal>pg_class.relchecks</literal> needs to agree with the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment