From dec4ed311a2fa623eab846eb0a3ac7db8102f7a0 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri, 17 Oct 2003 00:55:17 +0000
Subject: [PATCH] Add note deprecating use of consrc.

---
 doc/src/sgml/catalogs.sgml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index f918e6f1bf2..9a8e2ff455b 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -1,6 +1,6 @@
 <!--
  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">
@@ -1357,6 +1357,15 @@
    </tgroup>
   </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>
    <para>
     <literal>pg_class.relchecks</literal> needs to agree with the
-- 
GitLab