📄 equalfuncs.c
字号:
COMPARE_NODE_FIELD(quals); COMPARE_NODE_FIELD(alias); COMPARE_SCALAR_FIELD(rtindex); return true;}static bool_equalFromExpr(FromExpr *a, FromExpr *b){ COMPARE_NODE_FIELD(fromlist); COMPARE_NODE_FIELD(quals); return true;}/* * Stuff from relation.h */static bool_equalPathKeyItem(PathKeyItem *a, PathKeyItem *b){ COMPARE_NODE_FIELD(key); COMPARE_SCALAR_FIELD(sortop); return true;}static bool_equalRestrictInfo(RestrictInfo *a, RestrictInfo *b){ COMPARE_NODE_FIELD(clause); COMPARE_SCALAR_FIELD(is_pushed_down); COMPARE_SCALAR_FIELD(outerjoin_delayed); COMPARE_BITMAPSET_FIELD(required_relids); /* * We ignore all the remaining fields, since they may not be set yet, and * should be derivable from the clause anyway. */ return true;}static bool_equalInClauseInfo(InClauseInfo *a, InClauseInfo *b){ COMPARE_BITMAPSET_FIELD(lefthand); COMPARE_BITMAPSET_FIELD(righthand); COMPARE_NODE_FIELD(sub_targetlist); return true;}/* * Stuff from parsenodes.h */static bool_equalQuery(Query *a, Query *b){ COMPARE_SCALAR_FIELD(commandType); COMPARE_SCALAR_FIELD(querySource); COMPARE_SCALAR_FIELD(canSetTag); COMPARE_NODE_FIELD(utilityStmt); COMPARE_SCALAR_FIELD(resultRelation); COMPARE_NODE_FIELD(into); COMPARE_SCALAR_FIELD(intoHasOids); COMPARE_SCALAR_FIELD(hasAggs); COMPARE_SCALAR_FIELD(hasSubLinks); COMPARE_NODE_FIELD(rtable); COMPARE_NODE_FIELD(jointree); COMPARE_NODE_FIELD(rowMarks); COMPARE_SCALAR_FIELD(forUpdate); COMPARE_SCALAR_FIELD(rowNoWait); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(groupClause); COMPARE_NODE_FIELD(havingQual); COMPARE_NODE_FIELD(distinctClause); COMPARE_NODE_FIELD(sortClause); COMPARE_NODE_FIELD(limitOffset); COMPARE_NODE_FIELD(limitCount); COMPARE_NODE_FIELD(setOperations); COMPARE_NODE_FIELD(resultRelations); return true;}static bool_equalInsertStmt(InsertStmt *a, InsertStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(cols); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(selectStmt); return true;}static bool_equalDeleteStmt(DeleteStmt *a, DeleteStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(usingClause); return true;}static bool_equalUpdateStmt(UpdateStmt *a, UpdateStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(fromClause); return true;}static bool_equalSelectStmt(SelectStmt *a, SelectStmt *b){ COMPARE_NODE_FIELD(distinctClause); COMPARE_NODE_FIELD(into); COMPARE_NODE_FIELD(intoColNames); COMPARE_SCALAR_FIELD(intoHasOids); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(fromClause); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(groupClause); COMPARE_NODE_FIELD(havingClause); COMPARE_NODE_FIELD(sortClause); COMPARE_NODE_FIELD(limitOffset); COMPARE_NODE_FIELD(limitCount); COMPARE_NODE_FIELD(lockingClause); COMPARE_SCALAR_FIELD(op); COMPARE_SCALAR_FIELD(all); COMPARE_NODE_FIELD(larg); COMPARE_NODE_FIELD(rarg); return true;}static bool_equalSetOperationStmt(SetOperationStmt *a, SetOperationStmt *b){ COMPARE_SCALAR_FIELD(op); COMPARE_SCALAR_FIELD(all); COMPARE_NODE_FIELD(larg); COMPARE_NODE_FIELD(rarg); COMPARE_NODE_FIELD(colTypes); return true;}static bool_equalAlterTableStmt(AlterTableStmt *a, AlterTableStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(cmds); COMPARE_SCALAR_FIELD(relkind); return true;}static bool_equalAlterTableCmd(AlterTableCmd *a, AlterTableCmd *b){ COMPARE_SCALAR_FIELD(subtype); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(def); COMPARE_NODE_FIELD(transform); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalAlterDomainStmt(AlterDomainStmt *a, AlterDomainStmt *b){ COMPARE_SCALAR_FIELD(subtype); COMPARE_NODE_FIELD(typename); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(def); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalGrantStmt(GrantStmt *a, GrantStmt *b){ COMPARE_SCALAR_FIELD(is_grant); COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objects); COMPARE_NODE_FIELD(privileges); COMPARE_NODE_FIELD(grantees); COMPARE_SCALAR_FIELD(grant_option); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalPrivGrantee(PrivGrantee *a, PrivGrantee *b){ COMPARE_STRING_FIELD(rolname); return true;}static bool_equalFuncWithArgs(FuncWithArgs *a, FuncWithArgs *b){ COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(funcargs); return true;}static bool_equalGrantRoleStmt(GrantRoleStmt *a, GrantRoleStmt *b){ COMPARE_NODE_FIELD(granted_roles); COMPARE_NODE_FIELD(grantee_roles); COMPARE_SCALAR_FIELD(is_grant); COMPARE_SCALAR_FIELD(admin_opt); COMPARE_STRING_FIELD(grantor); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalDeclareCursorStmt(DeclareCursorStmt *a, DeclareCursorStmt *b){ COMPARE_STRING_FIELD(portalname); COMPARE_SCALAR_FIELD(options); COMPARE_NODE_FIELD(query); return true;}static bool_equalClosePortalStmt(ClosePortalStmt *a, ClosePortalStmt *b){ COMPARE_STRING_FIELD(portalname); return true;}static bool_equalClusterStmt(ClusterStmt *a, ClusterStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(indexname); return true;}static bool_equalCopyStmt(CopyStmt *a, CopyStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(attlist); COMPARE_SCALAR_FIELD(is_from); COMPARE_STRING_FIELD(filename); COMPARE_NODE_FIELD(options); return true;}static bool_equalCreateStmt(CreateStmt *a, CreateStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(tableElts); COMPARE_NODE_FIELD(inhRelations); COMPARE_NODE_FIELD(constraints); COMPARE_SCALAR_FIELD(hasoids); COMPARE_SCALAR_FIELD(oncommit); COMPARE_STRING_FIELD(tablespacename); return true;}static bool_equalInhRelation(InhRelation *a, InhRelation *b){ COMPARE_NODE_FIELD(relation); COMPARE_SCALAR_FIELD(including_defaults); return true;}static bool_equalDefineStmt(DefineStmt *a, DefineStmt *b){ COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(defnames); COMPARE_NODE_FIELD(definition); return true;}static bool_equalDropStmt(DropStmt *a, DropStmt *b){ COMPARE_NODE_FIELD(objects); COMPARE_SCALAR_FIELD(removeType); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalTruncateStmt(TruncateStmt *a, TruncateStmt *b){ COMPARE_NODE_FIELD(relations); return true;}static bool_equalCommentStmt(CommentStmt *a, CommentStmt *b){ COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objname); COMPARE_NODE_FIELD(objargs); COMPARE_STRING_FIELD(comment); return true;}static bool_equalFetchStmt(FetchStmt *a, FetchStmt *b){ COMPARE_SCALAR_FIELD(direction); COMPARE_SCALAR_FIELD(howMany); COMPARE_STRING_FIELD(portalname); COMPARE_SCALAR_FIELD(ismove); return true;}static bool_equalIndexStmt(IndexStmt *a, IndexStmt *b){ COMPARE_STRING_FIELD(idxname); COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(accessMethod); COMPARE_STRING_FIELD(tableSpace); COMPARE_NODE_FIELD(indexParams); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(rangetable); COMPARE_SCALAR_FIELD(unique); COMPARE_SCALAR_FIELD(primary); COMPARE_SCALAR_FIELD(isconstraint); return true;}static bool_equalCreateFunctionStmt(CreateFunctionStmt *a, CreateFunctionStmt *b){ COMPARE_SCALAR_FIELD(replace); COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(parameters); COMPARE_NODE_FIELD(returnType); COMPARE_NODE_FIELD(options); COMPARE_NODE_FIELD(withClause); return true;}static bool_equalFunctionParameter(FunctionParameter *a, FunctionParameter *b){ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(argType); COMPARE_SCALAR_FIELD(mode); return true;}static bool_equalAlterFunctionStmt(AlterFunctionStmt *a, AlterFunctionStmt *b){ COMPARE_NODE_FIELD(func); COMPARE_NODE_FIELD(actions); return true;}static bool_equalRemoveAggrStmt(RemoveAggrStmt *a, RemoveAggrStmt *b){ COMPARE_NODE_FIELD(aggname); COMPARE_NODE_FIELD(aggtype); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalRemoveFuncStmt(RemoveFuncStmt *a, RemoveFuncStmt *b){ COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalRemoveOperStmt(RemoveOperStmt *a, RemoveOperStmt *b){ COMPARE_NODE_FIELD(opname); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalRemoveOpClassStmt(RemoveOpClassStmt *a, RemoveOpClassStmt *b){ COMPARE_NODE_FIELD(opclassname); COMPARE_STRING_FIELD(amname); COMPARE_SCALAR_FIELD(behavior); return true;}static bool_equalRenameStmt(RenameStmt *a, RenameStmt *b){ COMPARE_SCALAR_FIELD(renameType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(subname); COMPARE_STRING_FIELD(newname); return true;}static bool_equalAlterObjectSchemaStmt(AlterObjectSchemaStmt *a, AlterObjectSchemaStmt *b){ COMPARE_SCALAR_FIELD(objectType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(addname); COMPARE_STRING_FIELD(newschema); return true;}static bool_equalAlterOwnerStmt(AlterOwnerStmt *a, AlterOwnerStmt *b){ COMPARE_SCALAR_FIELD(objectType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(addname); COMPARE_STRING_FIELD(newowner); return true;}static bool_equalRuleStmt(RuleStmt *a, RuleStmt *b){ COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(rulename); COMPARE_NODE_FIELD(whereClause); COMPARE_SCALAR_FIELD(event); COMPARE_SCALAR_FIELD(instead); COMPARE_NODE_FIELD(actions); COMPARE_SCALAR_FIELD(replace); return true;}static bool_equalNotifyStmt(NotifyStmt *a, NotifyStmt *b){ COMPARE_NODE_FIELD(relation); return true;}static bool_equalListenStmt(ListenStmt *a, ListenStmt *b){ COMPARE_NODE_FIELD(relation); return true;}static bool_equalUnlistenStmt(UnlistenStmt *a, UnlistenStmt *b){ COMPARE_NODE_FIELD(relation); return true;}static bool_equalTransactionStmt(TransactionStmt *a, TransactionStmt *b){ COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(options); COMPARE_STRING_FIELD(gid); return true;}static bool_equalCompositeTypeStmt(CompositeTypeStmt *a, CompositeTypeStmt *b){ COMPARE_NODE_FIELD(typevar); COMPARE_NODE_FIELD(coldeflist); return true;}static bool_equalViewStmt(ViewStmt *a, ViewStmt *b){ COMPARE_NODE_FIELD(view); COMPARE_NODE_FIELD(aliases); COMPARE_NODE_FIELD(query); COMPARE_SCALAR_FIELD(replace); return true;}static bool_equalLoadStmt(LoadStmt *a, LoadStmt *b){ COMPARE_STRING_FIELD(filename); return true;}static bool_equalCreateDomainStmt(CreateDomainStmt *a, CreateDomainStmt *b){ COMPARE_NODE_FIELD(domainname); COMPARE_NODE_FIELD(typename); COMPARE_NODE_FIELD(constraints); return true;}static bool_equalCreateOpClassStmt(CreateOpClassStmt *a, CreateOpClassStmt *b){ COMPARE_NODE_FIELD(opclassname); COMPARE_STRING_FIELD(amname); COMPARE_NODE_FIELD(datatype);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -