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

📄 equalfuncs.c

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 C
📖 第 1 页 / 共 4 页
字号:
	COMPARE_NODE_FIELD(items);	COMPARE_SCALAR_FIELD(isDefault);	return true;}static bool_equalCreateOpClassItem(CreateOpClassItem *a, CreateOpClassItem *b){	COMPARE_SCALAR_FIELD(itemtype);	COMPARE_NODE_FIELD(name);	COMPARE_NODE_FIELD(args);	COMPARE_SCALAR_FIELD(number);	COMPARE_SCALAR_FIELD(recheck);	COMPARE_NODE_FIELD(storedtype);	return true;}static bool_equalCreatedbStmt(CreatedbStmt *a, CreatedbStmt *b){	COMPARE_STRING_FIELD(dbname);	COMPARE_NODE_FIELD(options);	return true;}static bool_equalAlterDatabaseStmt(AlterDatabaseStmt *a, AlterDatabaseStmt *b){	COMPARE_STRING_FIELD(dbname);	COMPARE_NODE_FIELD(options);	return true;}static bool_equalAlterDatabaseSetStmt(AlterDatabaseSetStmt *a, AlterDatabaseSetStmt *b){	COMPARE_STRING_FIELD(dbname);	COMPARE_STRING_FIELD(variable);	COMPARE_NODE_FIELD(value);	return true;}static bool_equalDropdbStmt(DropdbStmt *a, DropdbStmt *b){	COMPARE_STRING_FIELD(dbname);	return true;}static bool_equalVacuumStmt(VacuumStmt *a, VacuumStmt *b){	COMPARE_SCALAR_FIELD(vacuum);	COMPARE_SCALAR_FIELD(full);	COMPARE_SCALAR_FIELD(analyze);	COMPARE_SCALAR_FIELD(freeze);	COMPARE_SCALAR_FIELD(verbose);	COMPARE_NODE_FIELD(relation);	COMPARE_NODE_FIELD(va_cols);	return true;}static bool_equalExplainStmt(ExplainStmt *a, ExplainStmt *b){	COMPARE_NODE_FIELD(query);	COMPARE_SCALAR_FIELD(verbose);	COMPARE_SCALAR_FIELD(analyze);	return true;}static bool_equalCreateSeqStmt(CreateSeqStmt *a, CreateSeqStmt *b){	COMPARE_NODE_FIELD(sequence);	COMPARE_NODE_FIELD(options);	return true;}static bool_equalAlterSeqStmt(AlterSeqStmt *a, AlterSeqStmt *b){	COMPARE_NODE_FIELD(sequence);	COMPARE_NODE_FIELD(options);	return true;}static bool_equalVariableSetStmt(VariableSetStmt *a, VariableSetStmt *b){	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(args);	COMPARE_SCALAR_FIELD(is_local);	return true;}static bool_equalVariableShowStmt(VariableShowStmt *a, VariableShowStmt *b){	COMPARE_STRING_FIELD(name);	return true;}static bool_equalVariableResetStmt(VariableResetStmt *a, VariableResetStmt *b){	COMPARE_STRING_FIELD(name);	return true;}static bool_equalCreateTableSpaceStmt(CreateTableSpaceStmt *a, CreateTableSpaceStmt *b){	COMPARE_STRING_FIELD(tablespacename);	COMPARE_STRING_FIELD(owner);	COMPARE_STRING_FIELD(location);	return true;}static bool_equalDropTableSpaceStmt(DropTableSpaceStmt *a, DropTableSpaceStmt *b){	COMPARE_STRING_FIELD(tablespacename);	return true;}static bool_equalCreateTrigStmt(CreateTrigStmt *a, CreateTrigStmt *b){	COMPARE_STRING_FIELD(trigname);	COMPARE_NODE_FIELD(relation);	COMPARE_NODE_FIELD(funcname);	COMPARE_NODE_FIELD(args);	COMPARE_SCALAR_FIELD(before);	COMPARE_SCALAR_FIELD(row);	if (strcmp(a->actions, b->actions) != 0)	/* in-line string field */		return false;	COMPARE_SCALAR_FIELD(isconstraint);	COMPARE_SCALAR_FIELD(deferrable);	COMPARE_SCALAR_FIELD(initdeferred);	COMPARE_NODE_FIELD(constrrel);	return true;}static bool_equalDropPropertyStmt(DropPropertyStmt *a, DropPropertyStmt *b){	COMPARE_NODE_FIELD(relation);	COMPARE_STRING_FIELD(property);	COMPARE_SCALAR_FIELD(removeType);	COMPARE_SCALAR_FIELD(behavior);	return true;}static bool_equalCreatePLangStmt(CreatePLangStmt *a, CreatePLangStmt *b){	COMPARE_STRING_FIELD(plname);	COMPARE_NODE_FIELD(plhandler);	COMPARE_NODE_FIELD(plvalidator);	COMPARE_SCALAR_FIELD(pltrusted);	return true;}static bool_equalDropPLangStmt(DropPLangStmt *a, DropPLangStmt *b){	COMPARE_STRING_FIELD(plname);	COMPARE_SCALAR_FIELD(behavior);	return true;}static bool_equalCreateRoleStmt(CreateRoleStmt *a, CreateRoleStmt *b){	COMPARE_SCALAR_FIELD(stmt_type);	COMPARE_STRING_FIELD(role);	COMPARE_NODE_FIELD(options);	return true;}static bool_equalAlterRoleStmt(AlterRoleStmt *a, AlterRoleStmt *b){	COMPARE_STRING_FIELD(role);	COMPARE_NODE_FIELD(options);	COMPARE_SCALAR_FIELD(action);	return true;}static bool_equalAlterRoleSetStmt(AlterRoleSetStmt *a, AlterRoleSetStmt *b){	COMPARE_STRING_FIELD(role);	COMPARE_STRING_FIELD(variable);	COMPARE_NODE_FIELD(value);	return true;}static bool_equalDropRoleStmt(DropRoleStmt *a, DropRoleStmt *b){	COMPARE_NODE_FIELD(roles);	return true;}static bool_equalLockStmt(LockStmt *a, LockStmt *b){	COMPARE_NODE_FIELD(relations);	COMPARE_SCALAR_FIELD(mode);	COMPARE_SCALAR_FIELD(nowait);	return true;}static bool_equalConstraintsSetStmt(ConstraintsSetStmt *a, ConstraintsSetStmt *b){	COMPARE_NODE_FIELD(constraints);	COMPARE_SCALAR_FIELD(deferred);	return true;}static bool_equalReindexStmt(ReindexStmt *a, ReindexStmt *b){	COMPARE_SCALAR_FIELD(kind);	COMPARE_NODE_FIELD(relation);	COMPARE_STRING_FIELD(name);	COMPARE_SCALAR_FIELD(do_system);	COMPARE_SCALAR_FIELD(do_user);	return true;}static bool_equalCreateSchemaStmt(CreateSchemaStmt *a, CreateSchemaStmt *b){	COMPARE_STRING_FIELD(schemaname);	COMPARE_STRING_FIELD(authid);	COMPARE_NODE_FIELD(schemaElts);	return true;}static bool_equalCreateConversionStmt(CreateConversionStmt *a, CreateConversionStmt *b){	COMPARE_NODE_FIELD(conversion_name);	COMPARE_STRING_FIELD(for_encoding_name);	COMPARE_STRING_FIELD(to_encoding_name);	COMPARE_NODE_FIELD(func_name);	COMPARE_SCALAR_FIELD(def);	return true;}static bool_equalCreateCastStmt(CreateCastStmt *a, CreateCastStmt *b){	COMPARE_NODE_FIELD(sourcetype);	COMPARE_NODE_FIELD(targettype);	COMPARE_NODE_FIELD(func);	COMPARE_SCALAR_FIELD(context);	return true;}static bool_equalDropCastStmt(DropCastStmt *a, DropCastStmt *b){	COMPARE_NODE_FIELD(sourcetype);	COMPARE_NODE_FIELD(targettype);	COMPARE_SCALAR_FIELD(behavior);	return true;}static bool_equalPrepareStmt(PrepareStmt *a, PrepareStmt *b){	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(argtypes);	COMPARE_NODE_FIELD(argtype_oids);	COMPARE_NODE_FIELD(query);	return true;}static bool_equalExecuteStmt(ExecuteStmt *a, ExecuteStmt *b){	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(into);	COMPARE_NODE_FIELD(params);	return true;}static bool_equalDeallocateStmt(DeallocateStmt *a, DeallocateStmt *b){	COMPARE_STRING_FIELD(name);	return true;}/* * stuff from parsenodes.h */static bool_equalAExpr(A_Expr *a, A_Expr *b){	COMPARE_SCALAR_FIELD(kind);	COMPARE_NODE_FIELD(name);	COMPARE_NODE_FIELD(lexpr);	COMPARE_NODE_FIELD(rexpr);	return true;}static bool_equalColumnRef(ColumnRef *a, ColumnRef *b){	COMPARE_NODE_FIELD(fields);	return true;}static bool_equalParamRef(ParamRef *a, ParamRef *b){	COMPARE_SCALAR_FIELD(number);	return true;}static bool_equalAConst(A_Const *a, A_Const *b){	if (!equal(&a->val, &b->val))		/* hack for in-line Value field */		return false;	COMPARE_NODE_FIELD(typename);	return true;}static bool_equalFuncCall(FuncCall *a, FuncCall *b){	COMPARE_NODE_FIELD(funcname);	COMPARE_NODE_FIELD(args);	COMPARE_SCALAR_FIELD(agg_star);	COMPARE_SCALAR_FIELD(agg_distinct);	return true;}static bool_equalAIndices(A_Indices *a, A_Indices *b){	COMPARE_NODE_FIELD(lidx);	COMPARE_NODE_FIELD(uidx);	return true;}static bool_equalA_Indirection(A_Indirection *a, A_Indirection *b){	COMPARE_NODE_FIELD(arg);	COMPARE_NODE_FIELD(indirection);	return true;}static bool_equalResTarget(ResTarget *a, ResTarget *b){	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(indirection);	COMPARE_NODE_FIELD(val);	return true;}static bool_equalTypeName(TypeName *a, TypeName *b){	COMPARE_NODE_FIELD(names);	COMPARE_SCALAR_FIELD(typeid);	COMPARE_SCALAR_FIELD(timezone);	COMPARE_SCALAR_FIELD(setof);	COMPARE_SCALAR_FIELD(pct_type);	COMPARE_SCALAR_FIELD(typmod);	COMPARE_NODE_FIELD(arrayBounds);	return true;}static bool_equalTypeCast(TypeCast *a, TypeCast *b){	COMPARE_NODE_FIELD(arg);	COMPARE_NODE_FIELD(typename);	return true;}static bool_equalSortBy(SortBy *a, SortBy *b){	COMPARE_SCALAR_FIELD(sortby_kind);	COMPARE_NODE_FIELD(useOp);	COMPARE_NODE_FIELD(node);	return true;}static bool_equalRangeSubselect(RangeSubselect *a, RangeSubselect *b){	COMPARE_NODE_FIELD(subquery);	COMPARE_NODE_FIELD(alias);	return true;}static bool_equalRangeFunction(RangeFunction *a, RangeFunction *b){	COMPARE_NODE_FIELD(funccallnode);	COMPARE_NODE_FIELD(alias);	COMPARE_NODE_FIELD(coldeflist);	return true;}static bool_equalIndexElem(IndexElem *a, IndexElem *b){	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(expr);	COMPARE_NODE_FIELD(opclass);	return true;}static bool_equalColumnDef(ColumnDef *a, ColumnDef *b){	COMPARE_STRING_FIELD(colname);	COMPARE_NODE_FIELD(typename);	COMPARE_SCALAR_FIELD(inhcount);	COMPARE_SCALAR_FIELD(is_local);	COMPARE_SCALAR_FIELD(is_not_null);	COMPARE_NODE_FIELD(raw_default);	COMPARE_STRING_FIELD(cooked_default);	COMPARE_NODE_FIELD(constraints);	COMPARE_NODE_FIELD(support);	return true;}static bool_equalConstraint(Constraint *a, Constraint *b){	COMPARE_SCALAR_FIELD(contype);	COMPARE_STRING_FIELD(name);	COMPARE_NODE_FIELD(raw_expr);	COMPARE_STRING_FIELD(cooked_expr);	COMPARE_NODE_FIELD(keys);	COMPARE_STRING_FIELD(indexspace);	return true;}static bool_equalDefElem(DefElem *a, DefElem *b){	COMPARE_STRING_FIELD(defname);	COMPARE_NODE_FIELD(arg);	return true;}static bool_equalLockingClause(LockingClause *a, LockingClause *b){	COMPARE_NODE_FIELD(lockedRels);	COMPARE_SCALAR_FIELD(forUpdate);	COMPARE_SCALAR_FIELD(nowait);	return true;}static bool_equalRangeTblEntry(RangeTblEntry *a, RangeTblEntry *b){	COMPARE_SCALAR_FIELD(rtekind);	COMPARE_SCALAR_FIELD(relid);	COMPARE_NODE_FIELD(subquery);	COMPARE_NODE_FIELD(funcexpr);	COMPARE_NODE_FIELD(coldeflist);	COMPARE_SCALAR_FIELD(jointype);	COMPARE_NODE_FIELD(joinaliasvars);	COMPARE_NODE_FIELD(alias);	COMPARE_NODE_FIELD(eref);	COMPARE_SCALAR_FIELD(inh);	COMPARE_SCALAR_FIELD(inFromCl);	COMPARE_SCALAR_FIELD(requiredPerms);	COMPARE_SCALAR_FIELD(checkAsUser);	return true;}static bool_equalSortClause(SortClause *a, SortClause *b){	COMPARE_SCALAR_FIELD(tleSortGroupRef);	COMPARE_SCALAR_FIELD(sortop);	return true;}static bool_equalFkConstraint(FkConstraint *a, FkConstraint *b){	COMPARE_STRING_FIELD(constr_name);	COMPARE_NODE_FIELD(pktable);	COMPARE_NODE_FIELD(fk_attrs);	COMPARE_NODE_FIELD(pk_attrs);	COMPARE_SCALAR_FIELD(fk_matchtype);	COMPARE_SCALAR_FIELD(fk_upd_action);	COMPARE_SCALAR_FIELD(fk_del_action);	COMPARE_SCALAR_FIELD(deferrable);	COMPARE_SCALAR_FIELD(initdeferred);	COMPARE_SCALAR_FIELD(skip_validation);	return true;}

⌨️ 快捷键说明

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