diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-22 14:22:14 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-22 14:22:14 +0000 |
commit | faebf2f8a2b805d905e5302018ec167e053eb181 (patch) | |
tree | 9870f95fcc05a1bbad029cc94fea309b863d2a38 /src/backend/commands/command.c | |
parent | 530876fea5060cce019e522b05be81e0aa4d4507 (diff) | |
download | postgresql-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.c | 6 |
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 |