mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +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:
@ -7704,7 +7704,6 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
|
||||
NULL, /* no exclusion constraint */
|
||||
NULL, /* no check constraint */
|
||||
NULL,
|
||||
NULL,
|
||||
true, /* islocal */
|
||||
0, /* inhcount */
|
||||
true, /* isnoinherit */
|
||||
|
@ -752,7 +752,6 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
|
||||
NULL, /* no exclusion */
|
||||
NULL, /* no check constraint */
|
||||
NULL,
|
||||
NULL,
|
||||
true, /* islocal */
|
||||
0, /* inhcount */
|
||||
true, /* isnoinherit */
|
||||
|
@ -3042,7 +3042,6 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
|
||||
const char *domainName, ObjectAddress *constrAddr)
|
||||
{
|
||||
Node *expr;
|
||||
char *ccsrc;
|
||||
char *ccbin;
|
||||
ParseState *pstate;
|
||||
CoerceToDomainValue *domVal;
|
||||
@ -3116,12 +3115,6 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
|
||||
*/
|
||||
ccbin = nodeToString(expr);
|
||||
|
||||
/*
|
||||
* Deparse it to produce text for consrc.
|
||||
*/
|
||||
ccsrc = deparse_expression(expr,
|
||||
NIL, false, false);
|
||||
|
||||
/*
|
||||
* Store the constraint in pg_constraint
|
||||
*/
|
||||
@ -3151,7 +3144,6 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
|
||||
NULL, /* not an exclusion constraint */
|
||||
expr, /* Tree form of check constraint */
|
||||
ccbin, /* Binary form of check constraint */
|
||||
ccsrc, /* Source form of check constraint */
|
||||
true, /* is local */
|
||||
0, /* inhcount */
|
||||
false, /* connoinherit */
|
||||
|
Reference in New Issue
Block a user