diff options
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 3f9cad16ce4..84ea31885d6 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.64 2002/12/30 19:45:17 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.65 2003/01/08 22:06:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2756,7 +2756,10 @@ AlterTableAddCheckConstraint(Relation rel, Constraint *constr) elog(ERROR, "cannot use aggregate function in CHECK constraint expression"); /* - * Might as well try to reduce any constant expressions. + * Might as well try to reduce any constant expressions, so as to + * minimize overhead while testing the constraint at each row. + * + * Note that the stored form of the constraint will NOT be const-folded. */ expr = eval_const_expressions(expr); |