mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Remove obsolete pg_constraint.consrc column
This has been deprecated and effectively unused for a long time. Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
@ -2400,14 +2400,10 @@ SCRAM-SHA-256$<replaceable><iteration count></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>
|
||||
@ -2423,15 +2419,6 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
|
||||
index.)
|
||||
</para>
|
||||
|
||||
<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
|
||||
|
Reference in New Issue
Block a user