⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 copyfuncs.c

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 C
📖 第 1 页 / 共 5 页
字号:
static IndexStmt *_copyIndexStmt(IndexStmt *from){	IndexStmt  *newnode = makeNode(IndexStmt);	COPY_STRING_FIELD(idxname);	COPY_NODE_FIELD(relation);	COPY_STRING_FIELD(accessMethod);	COPY_STRING_FIELD(tableSpace);	COPY_NODE_FIELD(indexParams);	COPY_NODE_FIELD(whereClause);	COPY_NODE_FIELD(rangetable);	COPY_SCALAR_FIELD(unique);	COPY_SCALAR_FIELD(primary);	COPY_SCALAR_FIELD(isconstraint);	return newnode;}static CreateFunctionStmt *_copyCreateFunctionStmt(CreateFunctionStmt *from){	CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt);	COPY_SCALAR_FIELD(replace);	COPY_NODE_FIELD(funcname);	COPY_NODE_FIELD(parameters);	COPY_NODE_FIELD(returnType);	COPY_NODE_FIELD(options);	COPY_NODE_FIELD(withClause);	return newnode;}static FunctionParameter *_copyFunctionParameter(FunctionParameter *from){	FunctionParameter *newnode = makeNode(FunctionParameter);	COPY_STRING_FIELD(name);	COPY_NODE_FIELD(argType);	COPY_SCALAR_FIELD(mode);	return newnode;}static AlterFunctionStmt *_copyAlterFunctionStmt(AlterFunctionStmt *from){	AlterFunctionStmt *newnode = makeNode(AlterFunctionStmt);	COPY_NODE_FIELD(func);	COPY_NODE_FIELD(actions);	return newnode;}static RemoveAggrStmt *_copyRemoveAggrStmt(RemoveAggrStmt *from){	RemoveAggrStmt *newnode = makeNode(RemoveAggrStmt);	COPY_NODE_FIELD(aggname);	COPY_NODE_FIELD(aggtype);	COPY_SCALAR_FIELD(behavior);	return newnode;}static RemoveFuncStmt *_copyRemoveFuncStmt(RemoveFuncStmt *from){	RemoveFuncStmt *newnode = makeNode(RemoveFuncStmt);	COPY_NODE_FIELD(funcname);	COPY_NODE_FIELD(args);	COPY_SCALAR_FIELD(behavior);	return newnode;}static RemoveOperStmt *_copyRemoveOperStmt(RemoveOperStmt *from){	RemoveOperStmt *newnode = makeNode(RemoveOperStmt);	COPY_NODE_FIELD(opname);	COPY_NODE_FIELD(args);	COPY_SCALAR_FIELD(behavior);	return newnode;}static RemoveOpClassStmt *_copyRemoveOpClassStmt(RemoveOpClassStmt *from){	RemoveOpClassStmt *newnode = makeNode(RemoveOpClassStmt);	COPY_NODE_FIELD(opclassname);	COPY_STRING_FIELD(amname);	COPY_SCALAR_FIELD(behavior);	return newnode;}static RenameStmt *_copyRenameStmt(RenameStmt *from){	RenameStmt *newnode = makeNode(RenameStmt);	COPY_SCALAR_FIELD(renameType);	COPY_NODE_FIELD(relation);	COPY_NODE_FIELD(object);	COPY_NODE_FIELD(objarg);	COPY_STRING_FIELD(subname);	COPY_STRING_FIELD(newname);	return newnode;}static AlterObjectSchemaStmt *_copyAlterObjectSchemaStmt(AlterObjectSchemaStmt *from){	AlterObjectSchemaStmt *newnode = makeNode(AlterObjectSchemaStmt);	COPY_SCALAR_FIELD(objectType);	COPY_NODE_FIELD(relation);	COPY_NODE_FIELD(object);	COPY_NODE_FIELD(objarg);	COPY_STRING_FIELD(addname);	COPY_STRING_FIELD(newschema);	return newnode;}static AlterOwnerStmt *_copyAlterOwnerStmt(AlterOwnerStmt *from){	AlterOwnerStmt *newnode = makeNode(AlterOwnerStmt);	COPY_SCALAR_FIELD(objectType);	COPY_NODE_FIELD(relation);	COPY_NODE_FIELD(object);	COPY_NODE_FIELD(objarg);	COPY_STRING_FIELD(addname);	COPY_STRING_FIELD(newowner);	return newnode;}static RuleStmt *_copyRuleStmt(RuleStmt *from){	RuleStmt   *newnode = makeNode(RuleStmt);	COPY_NODE_FIELD(relation);	COPY_STRING_FIELD(rulename);	COPY_NODE_FIELD(whereClause);	COPY_SCALAR_FIELD(event);	COPY_SCALAR_FIELD(instead);	COPY_NODE_FIELD(actions);	COPY_SCALAR_FIELD(replace);	return newnode;}static NotifyStmt *_copyNotifyStmt(NotifyStmt *from){	NotifyStmt *newnode = makeNode(NotifyStmt);	COPY_NODE_FIELD(relation);	return newnode;}static ListenStmt *_copyListenStmt(ListenStmt *from){	ListenStmt *newnode = makeNode(ListenStmt);	COPY_NODE_FIELD(relation);	return newnode;}static UnlistenStmt *_copyUnlistenStmt(UnlistenStmt *from){	UnlistenStmt *newnode = makeNode(UnlistenStmt);	COPY_NODE_FIELD(relation);	return newnode;}static TransactionStmt *_copyTransactionStmt(TransactionStmt *from){	TransactionStmt *newnode = makeNode(TransactionStmt);	COPY_SCALAR_FIELD(kind);	COPY_NODE_FIELD(options);	COPY_STRING_FIELD(gid);	return newnode;}static CompositeTypeStmt *_copyCompositeTypeStmt(CompositeTypeStmt *from){	CompositeTypeStmt *newnode = makeNode(CompositeTypeStmt);	COPY_NODE_FIELD(typevar);	COPY_NODE_FIELD(coldeflist);	return newnode;}static ViewStmt *_copyViewStmt(ViewStmt *from){	ViewStmt   *newnode = makeNode(ViewStmt);	COPY_NODE_FIELD(view);	COPY_NODE_FIELD(aliases);	COPY_NODE_FIELD(query);	COPY_SCALAR_FIELD(replace);	return newnode;}static LoadStmt *_copyLoadStmt(LoadStmt *from){	LoadStmt   *newnode = makeNode(LoadStmt);	COPY_STRING_FIELD(filename);	return newnode;}static CreateDomainStmt *_copyCreateDomainStmt(CreateDomainStmt *from){	CreateDomainStmt *newnode = makeNode(CreateDomainStmt);	COPY_NODE_FIELD(domainname);	COPY_NODE_FIELD(typename);	COPY_NODE_FIELD(constraints);	return newnode;}static CreateOpClassStmt *_copyCreateOpClassStmt(CreateOpClassStmt *from){	CreateOpClassStmt *newnode = makeNode(CreateOpClassStmt);	COPY_NODE_FIELD(opclassname);	COPY_STRING_FIELD(amname);	COPY_NODE_FIELD(datatype);	COPY_NODE_FIELD(items);	COPY_SCALAR_FIELD(isDefault);	return newnode;}static CreateOpClassItem *_copyCreateOpClassItem(CreateOpClassItem *from){	CreateOpClassItem *newnode = makeNode(CreateOpClassItem);	COPY_SCALAR_FIELD(itemtype);	COPY_NODE_FIELD(name);	COPY_NODE_FIELD(args);	COPY_SCALAR_FIELD(number);	COPY_SCALAR_FIELD(recheck);	COPY_NODE_FIELD(storedtype);	return newnode;}static CreatedbStmt *_copyCreatedbStmt(CreatedbStmt *from){	CreatedbStmt *newnode = makeNode(CreatedbStmt);	COPY_STRING_FIELD(dbname);	COPY_NODE_FIELD(options);	return newnode;}static AlterDatabaseStmt *_copyAlterDatabaseStmt(AlterDatabaseStmt *from){	AlterDatabaseStmt *newnode = makeNode(AlterDatabaseStmt);	COPY_STRING_FIELD(dbname);	COPY_NODE_FIELD(options);	return newnode;}static AlterDatabaseSetStmt *_copyAlterDatabaseSetStmt(AlterDatabaseSetStmt *from){	AlterDatabaseSetStmt *newnode = makeNode(AlterDatabaseSetStmt);	COPY_STRING_FIELD(dbname);	COPY_STRING_FIELD(variable);	COPY_NODE_FIELD(value);	return newnode;}static DropdbStmt *_copyDropdbStmt(DropdbStmt *from){	DropdbStmt *newnode = makeNode(DropdbStmt);	COPY_STRING_FIELD(dbname);	return newnode;}static VacuumStmt *_copyVacuumStmt(VacuumStmt *from){	VacuumStmt *newnode = makeNode(VacuumStmt);	COPY_SCALAR_FIELD(vacuum);	COPY_SCALAR_FIELD(full);	COPY_SCALAR_FIELD(analyze);	COPY_SCALAR_FIELD(freeze);	COPY_SCALAR_FIELD(verbose);	COPY_NODE_FIELD(relation);	COPY_NODE_FIELD(va_cols);	return newnode;}static ExplainStmt *_copyExplainStmt(ExplainStmt *from){	ExplainStmt *newnode = makeNode(ExplainStmt);	COPY_NODE_FIELD(query);	COPY_SCALAR_FIELD(verbose);	COPY_SCALAR_FIELD(analyze);	return newnode;}static CreateSeqStmt *_copyCreateSeqStmt(CreateSeqStmt *from){	CreateSeqStmt *newnode = makeNode(CreateSeqStmt);	COPY_NODE_FIELD(sequence);	COPY_NODE_FIELD(options);	return newnode;}static AlterSeqStmt *_copyAlterSeqStmt(AlterSeqStmt *from){	AlterSeqStmt *newnode = makeNode(AlterSeqStmt);	COPY_NODE_FIELD(sequence);	COPY_NODE_FIELD(options);	return newnode;}static VariableSetStmt *_copyVariableSetStmt(VariableSetStmt *from){	VariableSetStmt *newnode = makeNode(VariableSetStmt);	COPY_STRING_FIELD(name);	COPY_NODE_FIELD(args);	COPY_SCALAR_FIELD(is_local);	return newnode;}static VariableShowStmt *_copyVariableShowStmt(VariableShowStmt *from){	VariableShowStmt *newnode = makeNode(VariableShowStmt);	COPY_STRING_FIELD(name);	return newnode;}static VariableResetStmt *_copyVariableResetStmt(VariableResetStmt *from){	VariableResetStmt *newnode = makeNode(VariableResetStmt);	COPY_STRING_FIELD(name);	return newnode;}static CreateTableSpaceStmt *_copyCreateTableSpaceStmt(CreateTableSpaceStmt *from){	CreateTableSpaceStmt *newnode = makeNode(CreateTableSpaceStmt);	COPY_STRING_FIELD(tablespacename);	COPY_STRING_FIELD(owner);	COPY_STRING_FIELD(location);	return newnode;}static DropTableSpaceStmt *_copyDropTableSpaceStmt(DropTableSpaceStmt *from){	DropTableSpaceStmt *newnode = makeNode(DropTableSpaceStmt);	COPY_STRING_FIELD(tablespacename);	return newnode;}static CreateTrigStmt *_copyCreateTrigStmt(CreateTrigStmt *from){	CreateTrigStmt *newnode = makeNode(CreateTrigStmt);	COPY_STRING_FIELD(trigname);	COPY_NODE_FIELD(relation);	COPY_NODE_FIELD(funcname);	COPY_NODE_FIELD(args);	COPY_SCALAR_FIELD(before);	COPY_SCALAR_FIELD(row);	strcpy(newnode->actions, from->actions);	/* in-line string field */	COPY_SCALAR_FIELD(isconstraint);	COPY_SCALAR_FIELD(deferrable);	COPY_SCALAR_FIELD(initdeferred);	COPY_NODE_FIELD(constrrel);	return newnode;}static DropPropertyStmt *_copyDropPropertyStmt(DropPropertyStmt *from){	DropPropertyStmt *newnode = makeNode(DropPropertyStmt);	COPY_NODE_FIELD(relation);	COPY_STRING_FIELD(property);	COPY_SCALAR_FIELD(removeType);	COPY_SCALAR_FIELD(behavior);	return newnode;}static CreatePLangStmt *_copyCreatePLangStmt(CreatePLangStmt *from){	CreatePLangStmt *newnode = makeNode(CreatePLangStmt);	COPY_STRING_FIELD(plname);	COPY_NODE_FIELD(plhandler);	COPY_NODE_FIELD(plvalidator);	COPY_SCALAR_FIELD(pltrusted);	return newnode;}static DropPLangStmt *_copyDropPLangStmt(DropPLangStmt *from){	DropPLangStmt *newnode = makeNode(DropPLangStmt);	COPY_STRING_FIELD(plname);	COPY_SCALAR_FIELD(behavior);	return newnode;}static CreateRoleStmt *_copyCreateRoleStmt(CreateRoleStmt *from){	CreateRoleStmt *newnode = makeNode(CreateRoleStmt);	COPY_SCALAR_FIELD(stmt_type);	COPY_STRING_FIELD(role);	COPY_NODE_FIELD(options);	return newnode;}static AlterRoleStmt *_copyAlterRoleStmt(AlterRoleStmt *from){	AlterRoleStmt *newnode = makeNode(AlterRoleStmt);	COPY_STRING_FIELD(role);	COPY_NODE_FIELD(options);	COPY_SCALAR_FIELD(action);	return newnode;}static AlterRoleSetStmt *_copyAlterRoleSetStmt(AlterRoleSetStmt *from){	AlterRoleSetStmt *newnode = makeNode(AlterRoleSetStmt);	COPY_STRING_FIELD(role);	COPY_STRING_FIELD(variable);	COPY_NODE_FIELD(value);	return newnode;}static DropRoleStmt *_copyDropRoleStmt(DropRoleStmt *from){	DropRoleStmt *newnode = makeNode(DropRoleStmt);	COPY_NODE_FIELD(roles);	return newnode;}static LockStmt *_copyLockStmt(LockStmt *from){	LockStmt   *newnode = makeNode(LockStmt);	COPY_NODE_FIELD(relations);	COPY_SCALAR_FIELD(mode);	COPY_SCALAR_FIELD(nowait);	return newnode;}static ConstraintsSetStmt *_copyConstraintsSetStmt(ConstraintsSetStmt *from){	ConstraintsSetStmt *newnode = makeNode(ConstraintsSetStmt);	COPY_NODE_FIELD(constraints);	COPY_SCALAR_FIELD(deferred);	return newnode;}static ReindexStmt *_copyReindexStmt(ReindexStmt *from){	ReindexStmt *newnode = makeNode(ReindexStmt);	COPY_SCALAR_FIELD(kind);	COPY_NODE_FIELD(relation);	COPY_STRING_FIELD(name);	COPY_SCALAR_FIELD(do_system);	COPY_SCALAR_FIELD(do_user);	return newnode;}static CreateSchemaStmt *_copyCreateSchemaStmt(CreateSchemaStmt *from){	CreateSchemaStmt *newnode = makeNode(CreateSchemaStmt);	COPY_STRING_FIELD(schemaname);	COPY_STRING_FIELD(authid);	COPY_NODE_FIELD(schemaElts);	return newnode;}static CreateConversionStmt *_copyCreateConversionStmt(CreateConversionStmt *from){	CreateConversionStmt *newnode = makeNode(CreateConversionStmt);	COPY_NODE_FIELD(conversion_name);	COPY_STRING_FIELD(for_encoding_name);	COPY_STRING_FIELD(to_encoding_name);	COPY_NODE_FIELD(func_name);	COPY_SCALAR_FIELD(def);	return newnode;}static CreateCastStmt *_copyCreateCastStmt(CreateCastStmt *from){	CreateCastStmt *newnode = makeNode(CreateCastStmt);	COPY_NODE_FIELD(sourcetype);	COPY_NODE_FIELD(targettype);	COPY_NODE_FIELD(func);	COPY_SCALAR_FIELD(context);	return newnode;}static DropCastStmt *_copyDropCastStmt(DropCastStmt *from){	DropCastStmt *newnode = makeNode(DropCastStmt);	COPY_NODE_FIELD(sourcetype);	COPY_NODE_FIELD(targettype);	COPY_SCALAR_FIELD(behavior);	return newnode;}static PrepareStmt *_copyPrepareStmt(PrepareStmt *from){	PrepareStmt *newnode = makeNode(PrepareStmt);	COPY_STRING_FIELD(name);	COPY_NODE_FIELD(argtypes);	COPY_NODE_FIELD(argtype_oids);	COPY_NODE_FIELD(query);	return newnode;}static ExecuteStmt *_copyExecuteStmt(ExecuteStmt *from){	ExecuteStmt *newnode = makeNode(ExecuteStmt);	COPY_STRING_FIELD(name);	COPY_NODE_FIELD(into);	COPY_NODE_FIELD(params);	return newnode;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -