mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Turn constraints off for sequences & views
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet"); Call ExecConstraints in CopyFrom
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.7 1997/01/10 20:17:20 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/view.c,v 1.8 1997/08/22 14:22:14 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -77,6 +77,9 @@ DefineVirtualRelation(char *relname, List *tlist)
|
||||
def->colname = pstrdup(resname);
|
||||
|
||||
def->typename = typename;
|
||||
|
||||
def->is_not_null = false;
|
||||
def->defval = (char*) NULL;
|
||||
|
||||
attrList = lappend(attrList, def);
|
||||
}
|
||||
@ -95,6 +98,7 @@ DefineVirtualRelation(char *relname, List *tlist)
|
||||
createStmt.archiveType = ARCH_NONE;
|
||||
createStmt.location = -1;
|
||||
createStmt.archiveLoc = -1;
|
||||
createStmt.constraints = NIL;
|
||||
|
||||
/*
|
||||
* finally create the relation...
|
||||
|
Reference in New Issue
Block a user