From faebf2f8a2b805d905e5302018ec167e053eb181 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Fri, 22 Aug 1997 14:22:14 +0000 Subject: Turn constraints off for sequences & views elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet"); Call ExecConstraints in CopyFrom --- src/backend/commands/command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/command.c') 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 -- cgit v1.2.3