aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/command.c
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1997-08-22 14:22:14 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1997-08-22 14:22:14 +0000
commitfaebf2f8a2b805d905e5302018ec167e053eb181 (patch)
tree9870f95fcc05a1bbad029cc94fea309b863d2a38 /src/backend/commands/command.c
parent530876fea5060cce019e522b05be81e0aa4d4507 (diff)
downloadpostgresql-faebf2f8a2b805d905e5302018ec167e053eb181.tar.gz
postgresql-faebf2f8a2b805d905e5302018ec167e053eb181.zip
Turn constraints off for sequences & views
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet"); Call ExecConstraints in CopyFrom
Diffstat (limited to 'src/backend/commands/command.c')
-rw-r--r--src/backend/commands/command.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/commands/command.c b/src/backend/commands/command.c
index cf8b136bd06..376bd3ae5fa 100644
--- a/src/backend/commands/command.c
+++ b/src/backend/commands/command.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.12 1997/08/21 03:01:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.13 1997/08/22 14:22:07 vadim Exp $
*
* NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -283,7 +283,9 @@ PerformAddAttribute(char *relationName,
* we can't add a not null attribute
*/
if (colDef->is_not_null)
- elog(WARN,"Can't add a not null attribute to a existent relation");
+ elog(WARN,"Can't add a not null attribute to a existent relation");
+ if (colDef->defval)
+ elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet");
/*
* if the first element in the 'schema' list is a "*" then we are
* supposed to add this attribute to all classes that inherit from