PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
equalfuncs.c File Reference
#include "postgres.h"
#include "nodes/extensible.h"
#include "nodes/relation.h"
#include "utils/datum.h"
Include dependency graph for equalfuncs.c:

Go to the source code of this file.

Macros

#define COMPARE_SCALAR_FIELD(fldname)
 
#define COMPARE_NODE_FIELD(fldname)
 
#define COMPARE_BITMAPSET_FIELD(fldname)
 
#define COMPARE_STRING_FIELD(fldname)
 
#define equalstr(a, b)   (((a) != NULL && (b) != NULL) ? (strcmp(a, b) == 0) : (a) == (b))
 
#define COMPARE_POINTER_FIELD(fldname, sz)
 
#define COMPARE_LOCATION_FIELD(fldname)   ((void) 0)
 
#define COMPARE_COERCIONFORM_FIELD(fldname)   ((void) 0)
 

Functions

static bool _equalAlias (const Alias *a, const Alias *b)
 
static bool _equalRangeVar (const RangeVar *a, const RangeVar *b)
 
static bool _equalTableFunc (const TableFunc *a, const TableFunc *b)
 
static bool _equalIntoClause (const IntoClause *a, const IntoClause *b)
 
static bool _equalVar (const Var *a, const Var *b)
 
static bool _equalConst (const Const *a, const Const *b)
 
static bool _equalParam (const Param *a, const Param *b)
 
static bool _equalAggref (const Aggref *a, const Aggref *b)
 
static bool _equalGroupingFunc (const GroupingFunc *a, const GroupingFunc *b)
 
static bool _equalWindowFunc (const WindowFunc *a, const WindowFunc *b)
 
static bool _equalArrayRef (const ArrayRef *a, const ArrayRef *b)
 
static bool _equalFuncExpr (const FuncExpr *a, const FuncExpr *b)
 
static bool _equalNamedArgExpr (const NamedArgExpr *a, const NamedArgExpr *b)
 
static bool _equalOpExpr (const OpExpr *a, const OpExpr *b)
 
static bool _equalDistinctExpr (const DistinctExpr *a, const DistinctExpr *b)
 
static bool _equalNullIfExpr (const NullIfExpr *a, const NullIfExpr *b)
 
static bool _equalScalarArrayOpExpr (const ScalarArrayOpExpr *a, const ScalarArrayOpExpr *b)
 
static bool _equalBoolExpr (const BoolExpr *a, const BoolExpr *b)
 
static bool _equalSubLink (const SubLink *a, const SubLink *b)
 
static bool _equalSubPlan (const SubPlan *a, const SubPlan *b)
 
static bool _equalAlternativeSubPlan (const AlternativeSubPlan *a, const AlternativeSubPlan *b)
 
static bool _equalFieldSelect (const FieldSelect *a, const FieldSelect *b)
 
static bool _equalFieldStore (const FieldStore *a, const FieldStore *b)
 
static bool _equalRelabelType (const RelabelType *a, const RelabelType *b)
 
static bool _equalCoerceViaIO (const CoerceViaIO *a, const CoerceViaIO *b)
 
static bool _equalArrayCoerceExpr (const ArrayCoerceExpr *a, const ArrayCoerceExpr *b)
 
static bool _equalConvertRowtypeExpr (const ConvertRowtypeExpr *a, const ConvertRowtypeExpr *b)
 
static bool _equalCollateExpr (const CollateExpr *a, const CollateExpr *b)
 
static bool _equalCaseExpr (const CaseExpr *a, const CaseExpr *b)
 
static bool _equalCaseWhen (const CaseWhen *a, const CaseWhen *b)
 
static bool _equalCaseTestExpr (const CaseTestExpr *a, const CaseTestExpr *b)
 
static bool _equalArrayExpr (const ArrayExpr *a, const ArrayExpr *b)
 
static bool _equalRowExpr (const RowExpr *a, const RowExpr *b)
 
static bool _equalRowCompareExpr (const RowCompareExpr *a, const RowCompareExpr *b)
 
static bool _equalCoalesceExpr (const CoalesceExpr *a, const CoalesceExpr *b)
 
static bool _equalMinMaxExpr (const MinMaxExpr *a, const MinMaxExpr *b)
 
static bool _equalSQLValueFunction (const SQLValueFunction *a, const SQLValueFunction *b)
 
static bool _equalXmlExpr (const XmlExpr *a, const XmlExpr *b)
 
static bool _equalNullTest (const NullTest *a, const NullTest *b)
 
static bool _equalBooleanTest (const BooleanTest *a, const BooleanTest *b)
 
static bool _equalCoerceToDomain (const CoerceToDomain *a, const CoerceToDomain *b)
 
static bool _equalCoerceToDomainValue (const CoerceToDomainValue *a, const CoerceToDomainValue *b)
 
static bool _equalSetToDefault (const SetToDefault *a, const SetToDefault *b)
 
static bool _equalCurrentOfExpr (const CurrentOfExpr *a, const CurrentOfExpr *b)
 
static bool _equalInferenceElem (const InferenceElem *a, const InferenceElem *b)
 
static bool _equalTargetEntry (const TargetEntry *a, const TargetEntry *b)
 
static bool _equalRangeTblRef (const RangeTblRef *a, const RangeTblRef *b)
 
static bool _equalJoinExpr (const JoinExpr *a, const JoinExpr *b)
 
static bool _equalFromExpr (const FromExpr *a, const FromExpr *b)
 
static bool _equalOnConflictExpr (const OnConflictExpr *a, const OnConflictExpr *b)
 
static bool _equalPathKey (const PathKey *a, const PathKey *b)
 
static bool _equalRestrictInfo (const RestrictInfo *a, const RestrictInfo *b)
 
static bool _equalPlaceHolderVar (const PlaceHolderVar *a, const PlaceHolderVar *b)
 
static bool _equalSpecialJoinInfo (const SpecialJoinInfo *a, const SpecialJoinInfo *b)
 
static bool _equalAppendRelInfo (const AppendRelInfo *a, const AppendRelInfo *b)
 
static bool _equalPartitionedChildRelInfo (const PartitionedChildRelInfo *a, const PartitionedChildRelInfo *b)
 
static bool _equalPlaceHolderInfo (const PlaceHolderInfo *a, const PlaceHolderInfo *b)
 
static bool _equalExtensibleNode (const ExtensibleNode *a, const ExtensibleNode *b)
 
static bool _equalQuery (const Query *a, const Query *b)
 
static bool _equalRawStmt (const RawStmt *a, const RawStmt *b)
 
static bool _equalInsertStmt (const InsertStmt *a, const InsertStmt *b)
 
static bool _equalDeleteStmt (const DeleteStmt *a, const DeleteStmt *b)
 
static bool _equalUpdateStmt (const UpdateStmt *a, const UpdateStmt *b)
 
static bool _equalSelectStmt (const SelectStmt *a, const SelectStmt *b)
 
static bool _equalSetOperationStmt (const SetOperationStmt *a, const SetOperationStmt *b)
 
static bool _equalAlterTableStmt (const AlterTableStmt *a, const AlterTableStmt *b)
 
static bool _equalAlterTableCmd (const AlterTableCmd *a, const AlterTableCmd *b)
 
static bool _equalAlterCollationStmt (const AlterCollationStmt *a, const AlterCollationStmt *b)
 
static bool _equalAlterDomainStmt (const AlterDomainStmt *a, const AlterDomainStmt *b)
 
static bool _equalGrantStmt (const GrantStmt *a, const GrantStmt *b)
 
static bool _equalObjectWithArgs (const ObjectWithArgs *a, const ObjectWithArgs *b)
 
static bool _equalAccessPriv (const AccessPriv *a, const AccessPriv *b)
 
static bool _equalGrantRoleStmt (const GrantRoleStmt *a, const GrantRoleStmt *b)
 
static bool _equalAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *a, const AlterDefaultPrivilegesStmt *b)
 
static bool _equalDeclareCursorStmt (const DeclareCursorStmt *a, const DeclareCursorStmt *b)
 
static bool _equalClosePortalStmt (const ClosePortalStmt *a, const ClosePortalStmt *b)
 
static bool _equalClusterStmt (const ClusterStmt *a, const ClusterStmt *b)
 
static bool _equalCopyStmt (const CopyStmt *a, const CopyStmt *b)
 
static bool _equalCreateStmt (const CreateStmt *a, const CreateStmt *b)
 
static bool _equalTableLikeClause (const TableLikeClause *a, const TableLikeClause *b)
 
static bool _equalDefineStmt (const DefineStmt *a, const DefineStmt *b)
 
static bool _equalDropStmt (const DropStmt *a, const DropStmt *b)
 
static bool _equalTruncateStmt (const TruncateStmt *a, const TruncateStmt *b)
 
static bool _equalCommentStmt (const CommentStmt *a, const CommentStmt *b)
 
static bool _equalSecLabelStmt (const SecLabelStmt *a, const SecLabelStmt *b)
 
static bool _equalFetchStmt (const FetchStmt *a, const FetchStmt *b)
 
static bool _equalIndexStmt (const IndexStmt *a, const IndexStmt *b)
 
static bool _equalCreateFunctionStmt (const CreateFunctionStmt *a, const CreateFunctionStmt *b)
 
static bool _equalFunctionParameter (const FunctionParameter *a, const FunctionParameter *b)
 
static bool _equalAlterFunctionStmt (const AlterFunctionStmt *a, const AlterFunctionStmt *b)
 
static bool _equalDoStmt (const DoStmt *a, const DoStmt *b)
 
static bool _equalRenameStmt (const RenameStmt *a, const RenameStmt *b)
 
static bool _equalAlterObjectDependsStmt (const AlterObjectDependsStmt *a, const AlterObjectDependsStmt *b)
 
static bool _equalAlterObjectSchemaStmt (const AlterObjectSchemaStmt *a, const AlterObjectSchemaStmt *b)
 
static bool _equalAlterOwnerStmt (const AlterOwnerStmt *a, const AlterOwnerStmt *b)
 
static bool _equalAlterOperatorStmt (const AlterOperatorStmt *a, const AlterOperatorStmt *b)
 
static bool _equalRuleStmt (const RuleStmt *a, const RuleStmt *b)
 
static bool _equalNotifyStmt (const NotifyStmt *a, const NotifyStmt *b)
 
static bool _equalListenStmt (const ListenStmt *a, const ListenStmt *b)
 
static bool _equalUnlistenStmt (const UnlistenStmt *a, const UnlistenStmt *b)
 
static bool _equalTransactionStmt (const TransactionStmt *a, const TransactionStmt *b)
 
static bool _equalCompositeTypeStmt (const CompositeTypeStmt *a, const CompositeTypeStmt *b)
 
static bool _equalCreateEnumStmt (const CreateEnumStmt *a, const CreateEnumStmt *b)
 
static bool _equalCreateRangeStmt (const CreateRangeStmt *a, const CreateRangeStmt *b)
 
static bool _equalAlterEnumStmt (const AlterEnumStmt *a, const AlterEnumStmt *b)
 
static bool _equalViewStmt (const ViewStmt *a, const ViewStmt *b)
 
static bool _equalLoadStmt (const LoadStmt *a, const LoadStmt *b)
 
static bool _equalCreateDomainStmt (const CreateDomainStmt *a, const CreateDomainStmt *b)
 
static bool _equalCreateOpClassStmt (const CreateOpClassStmt *a, const CreateOpClassStmt *b)
 
static bool _equalCreateOpClassItem (const CreateOpClassItem *a, const CreateOpClassItem *b)
 
static bool _equalCreateOpFamilyStmt (const CreateOpFamilyStmt *a, const CreateOpFamilyStmt *b)
 
static bool _equalAlterOpFamilyStmt (const AlterOpFamilyStmt *a, const AlterOpFamilyStmt *b)
 
static bool _equalCreatedbStmt (const CreatedbStmt *a, const CreatedbStmt *b)
 
static bool _equalAlterDatabaseStmt (const AlterDatabaseStmt *a, const AlterDatabaseStmt *b)
 
static bool _equalAlterDatabaseSetStmt (const AlterDatabaseSetStmt *a, const AlterDatabaseSetStmt *b)
 
static bool _equalDropdbStmt (const DropdbStmt *a, const DropdbStmt *b)
 
static bool _equalVacuumStmt (const VacuumStmt *a, const VacuumStmt *b)
 
static bool _equalExplainStmt (const ExplainStmt *a, const ExplainStmt *b)
 
static bool _equalCreateTableAsStmt (const CreateTableAsStmt *a, const CreateTableAsStmt *b)
 
static bool _equalRefreshMatViewStmt (const RefreshMatViewStmt *a, const RefreshMatViewStmt *b)
 
static bool _equalReplicaIdentityStmt (const ReplicaIdentityStmt *a, const ReplicaIdentityStmt *b)
 
static bool _equalAlterSystemStmt (const AlterSystemStmt *a, const AlterSystemStmt *b)
 
static bool _equalCreateSeqStmt (const CreateSeqStmt *a, const CreateSeqStmt *b)
 
static bool _equalAlterSeqStmt (const AlterSeqStmt *a, const AlterSeqStmt *b)
 
static bool _equalVariableSetStmt (const VariableSetStmt *a, const VariableSetStmt *b)
 
static bool _equalVariableShowStmt (const VariableShowStmt *a, const VariableShowStmt *b)
 
static bool _equalDiscardStmt (const DiscardStmt *a, const DiscardStmt *b)
 
static bool _equalCreateTableSpaceStmt (const CreateTableSpaceStmt *a, const CreateTableSpaceStmt *b)
 
static bool _equalDropTableSpaceStmt (const DropTableSpaceStmt *a, const DropTableSpaceStmt *b)
 
static bool _equalAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *a, const AlterTableSpaceOptionsStmt *b)
 
static bool _equalAlterTableMoveAllStmt (const AlterTableMoveAllStmt *a, const AlterTableMoveAllStmt *b)
 
static bool _equalCreateExtensionStmt (const CreateExtensionStmt *a, const CreateExtensionStmt *b)
 
static bool _equalAlterExtensionStmt (const AlterExtensionStmt *a, const AlterExtensionStmt *b)
 
static bool _equalAlterExtensionContentsStmt (const AlterExtensionContentsStmt *a, const AlterExtensionContentsStmt *b)
 
static bool _equalCreateFdwStmt (const CreateFdwStmt *a, const CreateFdwStmt *b)
 
static bool _equalAlterFdwStmt (const AlterFdwStmt *a, const AlterFdwStmt *b)
 
static bool _equalCreateForeignServerStmt (const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
 
static bool _equalAlterForeignServerStmt (const AlterForeignServerStmt *a, const AlterForeignServerStmt *b)
 
static bool _equalCreateUserMappingStmt (const CreateUserMappingStmt *a, const CreateUserMappingStmt *b)
 
static bool _equalAlterUserMappingStmt (const AlterUserMappingStmt *a, const AlterUserMappingStmt *b)
 
static bool _equalDropUserMappingStmt (const DropUserMappingStmt *a, const DropUserMappingStmt *b)
 
static bool _equalCreateForeignTableStmt (const CreateForeignTableStmt *a, const CreateForeignTableStmt *b)
 
static bool _equalImportForeignSchemaStmt (const ImportForeignSchemaStmt *a, const ImportForeignSchemaStmt *b)
 
static bool _equalCreateTransformStmt (const CreateTransformStmt *a, const CreateTransformStmt *b)
 
static bool _equalCreateAmStmt (const CreateAmStmt *a, const CreateAmStmt *b)
 
static bool _equalCreateTrigStmt (const CreateTrigStmt *a, const CreateTrigStmt *b)
 
static bool _equalCreateEventTrigStmt (const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
 
static bool _equalAlterEventTrigStmt (const AlterEventTrigStmt *a, const AlterEventTrigStmt *b)
 
static bool _equalCreatePLangStmt (const CreatePLangStmt *a, const CreatePLangStmt *b)
 
static bool _equalCreateRoleStmt (const CreateRoleStmt *a, const CreateRoleStmt *b)
 
static bool _equalAlterRoleStmt (const AlterRoleStmt *a, const AlterRoleStmt *b)
 
static bool _equalAlterRoleSetStmt (const AlterRoleSetStmt *a, const AlterRoleSetStmt *b)
 
static bool _equalDropRoleStmt (const DropRoleStmt *a, const DropRoleStmt *b)
 
static bool _equalLockStmt (const LockStmt *a, const LockStmt *b)
 
static bool _equalConstraintsSetStmt (const ConstraintsSetStmt *a, const ConstraintsSetStmt *b)
 
static bool _equalReindexStmt (const ReindexStmt *a, const ReindexStmt *b)
 
static bool _equalCreateSchemaStmt (const CreateSchemaStmt *a, const CreateSchemaStmt *b)
 
static bool _equalCreateConversionStmt (const CreateConversionStmt *a, const CreateConversionStmt *b)
 
static bool _equalCreateCastStmt (const CreateCastStmt *a, const CreateCastStmt *b)
 
static bool _equalPrepareStmt (const PrepareStmt *a, const PrepareStmt *b)
 
static bool _equalExecuteStmt (const ExecuteStmt *a, const ExecuteStmt *b)
 
static bool _equalDeallocateStmt (const DeallocateStmt *a, const DeallocateStmt *b)
 
static bool _equalDropOwnedStmt (const DropOwnedStmt *a, const DropOwnedStmt *b)
 
static bool _equalReassignOwnedStmt (const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
 
static bool _equalAlterTSDictionaryStmt (const AlterTSDictionaryStmt *a, const AlterTSDictionaryStmt *b)
 
static bool _equalAlterTSConfigurationStmt (const AlterTSConfigurationStmt *a, const AlterTSConfigurationStmt *b)
 
static bool _equalCreatePublicationStmt (const CreatePublicationStmt *a, const CreatePublicationStmt *b)
 
static bool _equalAlterPublicationStmt (const AlterPublicationStmt *a, const AlterPublicationStmt *b)
 
static bool _equalCreateSubscriptionStmt (const CreateSubscriptionStmt *a, const CreateSubscriptionStmt *b)
 
static bool _equalAlterSubscriptionStmt (const AlterSubscriptionStmt *a, const AlterSubscriptionStmt *b)
 
static bool _equalDropSubscriptionStmt (const DropSubscriptionStmt *a, const DropSubscriptionStmt *b)
 
static bool _equalCreatePolicyStmt (const CreatePolicyStmt *a, const CreatePolicyStmt *b)
 
static bool _equalAlterPolicyStmt (const AlterPolicyStmt *a, const AlterPolicyStmt *b)
 
static bool _equalAExpr (const A_Expr *a, const A_Expr *b)
 
static bool _equalColumnRef (const ColumnRef *a, const ColumnRef *b)
 
static bool _equalParamRef (const ParamRef *a, const ParamRef *b)
 
static bool _equalAConst (const A_Const *a, const A_Const *b)
 
static bool _equalFuncCall (const FuncCall *a, const FuncCall *b)
 
static bool _equalAStar (const A_Star *a, const A_Star *b)
 
static bool _equalAIndices (const A_Indices *a, const A_Indices *b)
 
static bool _equalA_Indirection (const A_Indirection *a, const A_Indirection *b)
 
static bool _equalA_ArrayExpr (const A_ArrayExpr *a, const A_ArrayExpr *b)
 
static bool _equalResTarget (const ResTarget *a, const ResTarget *b)
 
static bool _equalMultiAssignRef (const MultiAssignRef *a, const MultiAssignRef *b)
 
static bool _equalTypeName (const TypeName *a, const TypeName *b)
 
static bool _equalTypeCast (const TypeCast *a, const TypeCast *b)
 
static bool _equalCollateClause (const CollateClause *a, const CollateClause *b)
 
static bool _equalSortBy (const SortBy *a, const SortBy *b)
 
static bool _equalWindowDef (const WindowDef *a, const WindowDef *b)
 
static bool _equalRangeSubselect (const RangeSubselect *a, const RangeSubselect *b)
 
static bool _equalRangeFunction (const RangeFunction *a, const RangeFunction *b)
 
static bool _equalRangeTableSample (const RangeTableSample *a, const RangeTableSample *b)
 
static bool _equalRangeTableFunc (const RangeTableFunc *a, const RangeTableFunc *b)
 
static bool _equalRangeTableFuncCol (const RangeTableFuncCol *a, const RangeTableFuncCol *b)
 
static bool _equalIndexElem (const IndexElem *a, const IndexElem *b)
 
static bool _equalColumnDef (const ColumnDef *a, const ColumnDef *b)
 
static bool _equalConstraint (const Constraint *a, const Constraint *b)
 
static bool _equalDefElem (const DefElem *a, const DefElem *b)
 
static bool _equalLockingClause (const LockingClause *a, const LockingClause *b)
 
static bool _equalRangeTblEntry (const RangeTblEntry *a, const RangeTblEntry *b)
 
static bool _equalRangeTblFunction (const RangeTblFunction *a, const RangeTblFunction *b)
 
static bool _equalTableSampleClause (const TableSampleClause *a, const TableSampleClause *b)
 
static bool _equalWithCheckOption (const WithCheckOption *a, const WithCheckOption *b)
 
static bool _equalSortGroupClause (const SortGroupClause *a, const SortGroupClause *b)
 
static bool _equalGroupingSet (const GroupingSet *a, const GroupingSet *b)
 
static bool _equalWindowClause (const WindowClause *a, const WindowClause *b)
 
static bool _equalRowMarkClause (const RowMarkClause *a, const RowMarkClause *b)
 
static bool _equalWithClause (const WithClause *a, const WithClause *b)
 
static bool _equalInferClause (const InferClause *a, const InferClause *b)
 
static bool _equalOnConflictClause (const OnConflictClause *a, const OnConflictClause *b)
 
static bool _equalCommonTableExpr (const CommonTableExpr *a, const CommonTableExpr *b)
 
static bool _equalXmlSerialize (const XmlSerialize *a, const XmlSerialize *b)
 
static bool _equalRoleSpec (const RoleSpec *a, const RoleSpec *b)
 
static bool _equalTriggerTransition (const TriggerTransition *a, const TriggerTransition *b)
 
static bool _equalPartitionSpec (const PartitionSpec *a, const PartitionSpec *b)
 
static bool _equalPartitionElem (const PartitionElem *a, const PartitionElem *b)
 
static bool _equalPartitionBoundSpec (const PartitionBoundSpec *a, const PartitionBoundSpec *b)
 
static bool _equalPartitionRangeDatum (const PartitionRangeDatum *a, const PartitionRangeDatum *b)
 
static bool _equalPartitionCmd (const PartitionCmd *a, const PartitionCmd *b)
 
static bool _equalList (const List *a, const List *b)
 
static bool _equalValue (const Value *a, const Value *b)
 
bool equal (const void *a, const void *b)
 

Macro Definition Documentation

#define COMPARE_BITMAPSET_FIELD (   fldname)
Value:
do { \
if (!bms_equal(a->fldname, b->fldname)) \
return false; \
} while (0)
bool bms_equal(const Bitmapset *a, const Bitmapset *b)
Definition: bitmapset.c:130

Definition at line 59 of file equalfuncs.c.

Referenced by _equalPlaceHolderInfo(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRestrictInfo(), _equalSpecialJoinInfo(), and _equalTableFunc().

#define COMPARE_COERCIONFORM_FIELD (   fldname)    ((void) 0)
#define COMPARE_NODE_FIELD (   fldname)
Value:
do { \
if (!equal(a->fldname, b->fldname)) \
return false; \
} while (0)
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:2934

Definition at line 52 of file equalfuncs.c.

Referenced by _equalA_ArrayExpr(), _equalA_Indirection(), _equalAccessPriv(), _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlias(), _equalAlterCollationStmt(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOperatorStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterSubscriptionStmt(), _equalAlterSystemStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalArrayRef(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseWhen(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnDef(), _equalColumnRef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalCompositeTypeStmt(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateDomainStmt(), _equalCreateEnumStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRangeStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableAsStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExplainStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFromExpr(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalGroupingFunc(), _equalGroupingSet(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalInferenceElem(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalPartitionBoundSpec(), _equalPartitionCmd(), _equalPartitionedChildRelInfo(), _equalPartitionElem(), _equalPartitionRangeDatum(), _equalPartitionSpec(), _equalPlaceHolderInfo(), _equalPrepareStmt(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTableSample(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeVar(), _equalRawStmt(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalRowCompareExpr(), _equalRowExpr(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSortBy(), _equalSpecialJoinInfo(), _equalSubLink(), _equalSubPlan(), _equalTableFunc(), _equalTableLikeClause(), _equalTableSampleClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeCast(), _equalTypeName(), _equalUpdateStmt(), _equalVacuumStmt(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

#define COMPARE_POINTER_FIELD (   fldname,
  sz 
)
Value:
do { \
if (memcmp(a->fldname, b->fldname, (sz)) != 0) \
return false; \
} while (0)

Definition at line 77 of file equalfuncs.c.

#define COMPARE_SCALAR_FIELD (   fldname)
Value:
do { \
if (a->fldname != b->fldname) \
return false; \
} while (0)

Definition at line 45 of file equalfuncs.c.

Referenced by _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPublicationStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalArrayRef(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseTestExpr(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceToDomainValue(), _equalCoerceViaIO(), _equalCollateExpr(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConst(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreateExtensionStmt(), _equalCreateForeignServerStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStmt(), _equalCreateTableAsStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCurrentOfExpr(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDiscardStmt(), _equalDistinctExpr(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropSubscriptionStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalFetchStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalGroupingFunc(), _equalGroupingSet(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferenceElem(), _equalIntoClause(), _equalJoinExpr(), _equalList(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalPartitionBoundSpec(), _equalPartitionedChildRelInfo(), _equalPartitionRangeDatum(), _equalPathKey(), _equalPlaceHolderInfo(), _equalPlaceHolderVar(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeTblRef(), _equalRangeVar(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalRestrictInfo(), _equalRoleSpec(), _equalRowCompareExpr(), _equalRowExpr(), _equalRowMarkClause(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSetToDefault(), _equalSortBy(), _equalSortGroupClause(), _equalSpecialJoinInfo(), _equalSQLValueFunction(), _equalSubLink(), _equalSubPlan(), _equalTableFunc(), _equalTableLikeClause(), _equalTableSampleClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTriggerTransition(), _equalTruncateStmt(), _equalTypeName(), _equalVacuumStmt(), _equalValue(), _equalVar(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

#define COMPARE_STRING_FIELD (   fldname)
Value:
do { \
if (!equalstr(a->fldname, b->fldname)) \
return false; \
} while (0)
#define equalstr(a, b)
Definition: equalfuncs.c:73

Definition at line 66 of file equalfuncs.c.

Referenced by _equalAccessPriv(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterUserMappingStmt(), _equalClosePortalStmt(), _equalClusterStmt(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConstraint(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCurrentOfExpr(), _equalDeallocateStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDropdbStmt(), _equalDropSubscriptionStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExtensibleNode(), _equalFetchStmt(), _equalFunctionParameter(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalIntoClause(), _equalListenStmt(), _equalLoadStmt(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalPartitionElem(), _equalPartitionSpec(), _equalPrepareStmt(), _equalRangeTableFuncCol(), _equalRangeTblEntry(), _equalRangeVar(), _equalReindexStmt(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalResTarget(), _equalRoleSpec(), _equalRuleStmt(), _equalSecLabelStmt(), _equalSubPlan(), _equalTargetEntry(), _equalTransactionStmt(), _equalTriggerTransition(), _equalUnlistenStmt(), _equalValue(), _equalVariableSetStmt(), _equalVariableShowStmt(), _equalWindowClause(), _equalWindowDef(), _equalWithCheckOption(), and _equalXmlExpr().

#define equalstr (   a,
 
)    (((a) != NULL && (b) != NULL) ? (strcmp(a, b) == 0) : (a) == (b))

Definition at line 73 of file equalfuncs.c.

Function Documentation

static bool _equalA_ArrayExpr ( const A_ArrayExpr a,
const A_ArrayExpr b 
)
static

Definition at line 2339 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2340 {
2341  COMPARE_NODE_FIELD(elements);
2342  COMPARE_LOCATION_FIELD(location);
2343 
2344  return true;
2345 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalA_Indirection ( const A_Indirection a,
const A_Indirection b 
)
static

Definition at line 2330 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2331 {
2333  COMPARE_NODE_FIELD(indirection);
2334 
2335  return true;
2336 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
static bool _equalAccessPriv ( const AccessPriv a,
const AccessPriv b 
)
static

Definition at line 1145 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1146 {
1147  COMPARE_STRING_FIELD(priv_name);
1148  COMPARE_NODE_FIELD(cols);
1149 
1150  return true;
1151 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAConst ( const A_Const a,
const A_Const b 
)
static

Definition at line 2287 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, equal(), and A_Const::val.

Referenced by equal().

2288 {
2289  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2290  return false;
2291  COMPARE_LOCATION_FIELD(location);
2292 
2293  return true;
2294 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:2934
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
Value val
Definition: parsenodes.h:279
static bool _equalAExpr ( const A_Expr a,
const A_Expr b 
)
static

Definition at line 2257 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2258 {
2259  COMPARE_SCALAR_FIELD(kind);
2261  COMPARE_NODE_FIELD(lexpr);
2262  COMPARE_NODE_FIELD(rexpr);
2263  COMPARE_LOCATION_FIELD(location);
2264 
2265  return true;
2266 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAggref ( const Aggref a,
const Aggref b 
)
static

Definition at line 211 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

212 {
213  COMPARE_SCALAR_FIELD(aggfnoid);
214  COMPARE_SCALAR_FIELD(aggtype);
215  COMPARE_SCALAR_FIELD(aggcollid);
216  COMPARE_SCALAR_FIELD(inputcollid);
217  /* ignore aggtranstype since it might not be set yet */
218  COMPARE_NODE_FIELD(aggargtypes);
219  COMPARE_NODE_FIELD(aggdirectargs);
221  COMPARE_NODE_FIELD(aggorder);
222  COMPARE_NODE_FIELD(aggdistinct);
223  COMPARE_NODE_FIELD(aggfilter);
224  COMPARE_SCALAR_FIELD(aggstar);
225  COMPARE_SCALAR_FIELD(aggvariadic);
226  COMPARE_SCALAR_FIELD(aggkind);
227  COMPARE_SCALAR_FIELD(agglevelsup);
228  COMPARE_SCALAR_FIELD(aggsplit);
229  COMPARE_LOCATION_FIELD(location);
230 
231  return true;
232 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAIndices ( const A_Indices a,
const A_Indices b 
)
static

Definition at line 2320 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2321 {
2322  COMPARE_SCALAR_FIELD(is_slice);
2323  COMPARE_NODE_FIELD(lidx);
2324  COMPARE_NODE_FIELD(uidx);
2325 
2326  return true;
2327 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlias ( const Alias a,
const Alias b 
)
static

Definition at line 97 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

98 {
99  COMPARE_STRING_FIELD(aliasname);
100  COMPARE_NODE_FIELD(colnames);
101 
102  return true;
103 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterCollationStmt ( const AlterCollationStmt a,
const AlterCollationStmt b 
)
static

Definition at line 1099 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1100 {
1101  COMPARE_NODE_FIELD(collname);
1102 
1103  return true;
1104 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterDatabaseSetStmt ( const AlterDatabaseSetStmt a,
const AlterDatabaseSetStmt b 
)
static

Definition at line 1622 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1623 {
1625  COMPARE_NODE_FIELD(setstmt);
1626 
1627  return true;
1628 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:38
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterDatabaseStmt ( const AlterDatabaseStmt a,
const AlterDatabaseStmt b 
)
static

Definition at line 1613 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1614 {
1617 
1618  return true;
1619 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:38
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt a,
const AlterDefaultPrivilegesStmt b 
)
static

Definition at line 1167 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1168 {
1170  COMPARE_NODE_FIELD(action);
1171 
1172  return true;
1173 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterDomainStmt ( const AlterDomainStmt a,
const AlterDomainStmt b 
)
static

Definition at line 1107 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1108 {
1109  COMPARE_SCALAR_FIELD(subtype);
1110  COMPARE_NODE_FIELD(typeName);
1112  COMPARE_NODE_FIELD(def);
1113  COMPARE_SCALAR_FIELD(behavior);
1114  COMPARE_SCALAR_FIELD(missing_ok);
1115 
1116  return true;
1117 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterEnumStmt ( const AlterEnumStmt a,
const AlterEnumStmt b 
)
static

Definition at line 1513 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1514 {
1515  COMPARE_NODE_FIELD(typeName);
1516  COMPARE_STRING_FIELD(oldVal);
1517  COMPARE_STRING_FIELD(newVal);
1518  COMPARE_STRING_FIELD(newValNeighbor);
1519  COMPARE_SCALAR_FIELD(newValIsAfter);
1520  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1521 
1522  return true;
1523 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterEventTrigStmt ( const AlterEventTrigStmt a,
const AlterEventTrigStmt b 
)
static

Definition at line 1975 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1976 {
1977  COMPARE_STRING_FIELD(trigname);
1978  COMPARE_SCALAR_FIELD(tgenabled);
1979 
1980  return true;
1981 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterExtensionContentsStmt ( const AlterExtensionContentsStmt a,
const AlterExtensionContentsStmt b 
)
static

Definition at line 1810 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1811 {
1812  COMPARE_STRING_FIELD(extname);
1813  COMPARE_SCALAR_FIELD(action);
1814  COMPARE_SCALAR_FIELD(objtype);
1815  COMPARE_NODE_FIELD(object);
1816 
1817  return true;
1818 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterExtensionStmt ( const AlterExtensionStmt a,
const AlterExtensionStmt b 
)
static

Definition at line 1801 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1802 {
1803  COMPARE_STRING_FIELD(extname);
1805 
1806  return true;
1807 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterFdwStmt ( const AlterFdwStmt a,
const AlterFdwStmt b 
)
static

Definition at line 1831 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1832 {
1833  COMPARE_STRING_FIELD(fdwname);
1834  COMPARE_NODE_FIELD(func_options);
1836 
1837  return true;
1838 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterForeignServerStmt ( const AlterForeignServerStmt a,
const AlterForeignServerStmt b 
)
static

Definition at line 1854 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1855 {
1856  COMPARE_STRING_FIELD(servername);
1857  COMPARE_STRING_FIELD(version);
1859  COMPARE_SCALAR_FIELD(has_version);
1860 
1861  return true;
1862 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterFunctionStmt ( const AlterFunctionStmt a,
const AlterFunctionStmt b 
)
static

Definition at line 1362 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1363 {
1364  COMPARE_NODE_FIELD(func);
1365  COMPARE_NODE_FIELD(actions);
1366 
1367  return true;
1368 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlternativeSubPlan ( const AlternativeSubPlan a,
const AlternativeSubPlan b 
)
static

Definition at line 457 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

458 {
459  COMPARE_NODE_FIELD(subplans);
460 
461  return true;
462 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterObjectDependsStmt ( const AlterObjectDependsStmt a,
const AlterObjectDependsStmt b 
)
static

Definition at line 1394 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1395 {
1396  COMPARE_SCALAR_FIELD(objectType);
1397  COMPARE_NODE_FIELD(relation);
1398  COMPARE_NODE_FIELD(object);
1399  COMPARE_NODE_FIELD(extname);
1400 
1401  return true;
1402 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterObjectSchemaStmt ( const AlterObjectSchemaStmt a,
const AlterObjectSchemaStmt b 
)
static

Definition at line 1405 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1406 {
1407  COMPARE_SCALAR_FIELD(objectType);
1408  COMPARE_NODE_FIELD(relation);
1409  COMPARE_NODE_FIELD(object);
1410  COMPARE_STRING_FIELD(newschema);
1411  COMPARE_SCALAR_FIELD(missing_ok);
1412 
1413  return true;
1414 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterOperatorStmt ( const AlterOperatorStmt a,
const AlterOperatorStmt b 
)
static

Definition at line 1428 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1429 {
1430  COMPARE_NODE_FIELD(opername);
1432 
1433  return true;
1434 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterOpFamilyStmt ( const AlterOpFamilyStmt a,
const AlterOpFamilyStmt b 
)
static

Definition at line 1593 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1594 {
1595  COMPARE_NODE_FIELD(opfamilyname);
1596  COMPARE_STRING_FIELD(amname);
1597  COMPARE_SCALAR_FIELD(isDrop);
1598  COMPARE_NODE_FIELD(items);
1599 
1600  return true;
1601 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterOwnerStmt ( const AlterOwnerStmt a,
const AlterOwnerStmt b 
)
static

Definition at line 1417 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1418 {
1419  COMPARE_SCALAR_FIELD(objectType);
1420  COMPARE_NODE_FIELD(relation);
1421  COMPARE_NODE_FIELD(object);
1422  COMPARE_NODE_FIELD(newowner);
1423 
1424  return true;
1425 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterPolicyStmt ( const AlterPolicyStmt a,
const AlterPolicyStmt b 
)
static

Definition at line 2245 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2246 {
2247  COMPARE_STRING_FIELD(policy_name);
2248  COMPARE_NODE_FIELD(table);
2249  COMPARE_NODE_FIELD(roles);
2250  COMPARE_NODE_FIELD(qual);
2251  COMPARE_NODE_FIELD(with_check);
2252 
2253  return true;
2254 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterPublicationStmt ( const AlterPublicationStmt a,
const AlterPublicationStmt b 
)
static

Definition at line 2182 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2184 {
2185  COMPARE_STRING_FIELD(pubname);
2187  COMPARE_NODE_FIELD(tables);
2188  COMPARE_SCALAR_FIELD(for_all_tables);
2189  COMPARE_SCALAR_FIELD(tableAction);
2190 
2191  return true;
2192 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterRoleSetStmt ( const AlterRoleSetStmt a,
const AlterRoleSetStmt b 
)
static

Definition at line 2017 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2018 {
2019  COMPARE_NODE_FIELD(role);
2020  COMPARE_STRING_FIELD(database);
2021  COMPARE_NODE_FIELD(setstmt);
2022 
2023  return true;
2024 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterRoleStmt ( const AlterRoleStmt a,
const AlterRoleStmt b 
)
static

Definition at line 2007 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2008 {
2009  COMPARE_NODE_FIELD(role);
2011  COMPARE_SCALAR_FIELD(action);
2012 
2013  return true;
2014 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterSeqStmt ( const AlterSeqStmt a,
const AlterSeqStmt b 
)
static

Definition at line 1710 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1711 {
1712  COMPARE_NODE_FIELD(sequence);
1714  COMPARE_SCALAR_FIELD(missing_ok);
1715 
1716  return true;
1717 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterSubscriptionStmt ( const AlterSubscriptionStmt a,
const AlterSubscriptionStmt b 
)
static

Definition at line 2207 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2209 {
2210  COMPARE_SCALAR_FIELD(kind);
2211  COMPARE_STRING_FIELD(subname);
2212  COMPARE_STRING_FIELD(conninfo);
2213  COMPARE_NODE_FIELD(publication);
2215 
2216  return true;
2217 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterSystemStmt ( const AlterSystemStmt a,
const AlterSystemStmt b 
)
static

Definition at line 1690 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1691 {
1692  COMPARE_NODE_FIELD(setstmt);
1693 
1694  return true;
1695 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterTableCmd ( const AlterTableCmd a,
const AlterTableCmd b 
)
static

Definition at line 1086 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1087 {
1088  COMPARE_SCALAR_FIELD(subtype);
1090  COMPARE_NODE_FIELD(newowner);
1091  COMPARE_NODE_FIELD(def);
1092  COMPARE_SCALAR_FIELD(behavior);
1093  COMPARE_SCALAR_FIELD(missing_ok);
1094 
1095  return true;
1096 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterTableMoveAllStmt ( const AlterTableMoveAllStmt a,
const AlterTableMoveAllStmt b 
)
static

Definition at line 1778 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1780 {
1781  COMPARE_STRING_FIELD(orig_tablespacename);
1782  COMPARE_SCALAR_FIELD(objtype);
1783  COMPARE_NODE_FIELD(roles);
1784  COMPARE_STRING_FIELD(new_tablespacename);
1785  COMPARE_SCALAR_FIELD(nowait);
1786 
1787  return true;
1788 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt a,
const AlterTableSpaceOptionsStmt b 
)
static

Definition at line 1767 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1769 {
1770  COMPARE_STRING_FIELD(tablespacename);
1772  COMPARE_SCALAR_FIELD(isReset);
1773 
1774  return true;
1775 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterTableStmt ( const AlterTableStmt a,
const AlterTableStmt b 
)
static

Definition at line 1075 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1076 {
1077  COMPARE_NODE_FIELD(relation);
1078  COMPARE_NODE_FIELD(cmds);
1079  COMPARE_SCALAR_FIELD(relkind);
1080  COMPARE_SCALAR_FIELD(missing_ok);
1081 
1082  return true;
1083 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterTSConfigurationStmt ( const AlterTSConfigurationStmt a,
const AlterTSConfigurationStmt b 
)
static

Definition at line 2155 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2157 {
2158  COMPARE_SCALAR_FIELD(kind);
2159  COMPARE_NODE_FIELD(cfgname);
2160  COMPARE_NODE_FIELD(tokentype);
2161  COMPARE_NODE_FIELD(dicts);
2162  COMPARE_SCALAR_FIELD(override);
2163  COMPARE_SCALAR_FIELD(replace);
2164  COMPARE_SCALAR_FIELD(missing_ok);
2165 
2166  return true;
2167 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAlterTSDictionaryStmt ( const AlterTSDictionaryStmt a,
const AlterTSDictionaryStmt b 
)
static

Definition at line 2146 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2147 {
2148  COMPARE_NODE_FIELD(dictname);
2150 
2151  return true;
2152 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalAlterUserMappingStmt ( const AlterUserMappingStmt a,
const AlterUserMappingStmt b 
)
static

Definition at line 1876 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1877 {
1879  COMPARE_STRING_FIELD(servername);
1881 
1882  return true;
1883 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static char * user
Definition: pg_regress.c:92
static bool _equalAppendRelInfo ( const AppendRelInfo a,
const AppendRelInfo b 
)
static

Definition at line 886 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

887 {
888  COMPARE_SCALAR_FIELD(parent_relid);
889  COMPARE_SCALAR_FIELD(child_relid);
890  COMPARE_SCALAR_FIELD(parent_reltype);
891  COMPARE_SCALAR_FIELD(child_reltype);
892  COMPARE_NODE_FIELD(translated_vars);
893  COMPARE_SCALAR_FIELD(parent_reloid);
894 
895  return true;
896 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalArrayCoerceExpr ( const ArrayCoerceExpr a,
const ArrayCoerceExpr b 
)
static

Definition at line 513 of file equalfuncs.c.

References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

514 {
516  COMPARE_SCALAR_FIELD(elemfuncid);
517  COMPARE_SCALAR_FIELD(resulttype);
518  COMPARE_SCALAR_FIELD(resulttypmod);
519  COMPARE_SCALAR_FIELD(resultcollid);
520  COMPARE_SCALAR_FIELD(isExplicit);
521  COMPARE_COERCIONFORM_FIELD(coerceformat);
522  COMPARE_LOCATION_FIELD(location);
523 
524  return true;
525 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalArrayExpr ( const ArrayExpr a,
const ArrayExpr b 
)
static

Definition at line 582 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

583 {
584  COMPARE_SCALAR_FIELD(array_typeid);
585  COMPARE_SCALAR_FIELD(array_collid);
586  COMPARE_SCALAR_FIELD(element_typeid);
587  COMPARE_NODE_FIELD(elements);
588  COMPARE_SCALAR_FIELD(multidims);
589  COMPARE_LOCATION_FIELD(location);
590 
591  return true;
592 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalArrayRef ( const ArrayRef a,
const ArrayRef b 
)
static

Definition at line 267 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

268 {
269  COMPARE_SCALAR_FIELD(refarraytype);
270  COMPARE_SCALAR_FIELD(refelemtype);
271  COMPARE_SCALAR_FIELD(reftypmod);
272  COMPARE_SCALAR_FIELD(refcollid);
273  COMPARE_NODE_FIELD(refupperindexpr);
274  COMPARE_NODE_FIELD(reflowerindexpr);
275  COMPARE_NODE_FIELD(refexpr);
276  COMPARE_NODE_FIELD(refassgnexpr);
277 
278  return true;
279 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalAStar ( const A_Star a,
const A_Star b 
)
static

Definition at line 2314 of file equalfuncs.c.

Referenced by equal().

2315 {
2316  return true;
2317 }
static bool _equalBooleanTest ( const BooleanTest a,
const BooleanTest b 
)
static

Definition at line 682 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

683 {
685  COMPARE_SCALAR_FIELD(booltesttype);
686  COMPARE_LOCATION_FIELD(location);
687 
688  return true;
689 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalBoolExpr ( const BoolExpr a,
const BoolExpr b 
)
static

Definition at line 411 of file equalfuncs.c.

References generate_unaccent_rules::args, boolop(), COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

412 {
415  COMPARE_LOCATION_FIELD(location);
416 
417  return true;
418 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:420
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCaseExpr ( const CaseExpr a,
const CaseExpr b 
)
static

Definition at line 549 of file equalfuncs.c.

References arg, generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

550 {
551  COMPARE_SCALAR_FIELD(casetype);
552  COMPARE_SCALAR_FIELD(casecollid);
555  COMPARE_NODE_FIELD(defresult);
556  COMPARE_LOCATION_FIELD(location);
557 
558  return true;
559 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCaseTestExpr ( const CaseTestExpr a,
const CaseTestExpr b 
)
static

Definition at line 572 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

573 {
574  COMPARE_SCALAR_FIELD(typeId);
575  COMPARE_SCALAR_FIELD(typeMod);
576  COMPARE_SCALAR_FIELD(collation);
577 
578  return true;
579 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCaseWhen ( const CaseWhen a,
const CaseWhen b 
)
static

Definition at line 562 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and result.

Referenced by equal().

563 {
564  COMPARE_NODE_FIELD(expr);
566  COMPARE_LOCATION_FIELD(location);
567 
568  return true;
569 }
return result
Definition: formatting.c:1618
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalClosePortalStmt ( const ClosePortalStmt a,
const ClosePortalStmt b 
)
static

Definition at line 1186 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1187 {
1188  COMPARE_STRING_FIELD(portalname);
1189 
1190  return true;
1191 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static bool _equalClusterStmt ( const ClusterStmt a,
const ClusterStmt b 
)
static

Definition at line 1194 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and verbose.

Referenced by equal().

1195 {
1196  COMPARE_NODE_FIELD(relation);
1197  COMPARE_STRING_FIELD(indexname);
1199 
1200  return true;
1201 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static int verbose
Definition: pg_basebackup.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCoalesceExpr ( const CoalesceExpr a,
const CoalesceExpr b 
)
static

Definition at line 620 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

621 {
622  COMPARE_SCALAR_FIELD(coalescetype);
623  COMPARE_SCALAR_FIELD(coalescecollid);
625  COMPARE_LOCATION_FIELD(location);
626 
627  return true;
628 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCoerceToDomain ( const CoerceToDomain a,
const CoerceToDomain b 
)
static

Definition at line 692 of file equalfuncs.c.

References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

693 {
695  COMPARE_SCALAR_FIELD(resulttype);
696  COMPARE_SCALAR_FIELD(resulttypmod);
697  COMPARE_SCALAR_FIELD(resultcollid);
698  COMPARE_COERCIONFORM_FIELD(coercionformat);
699  COMPARE_LOCATION_FIELD(location);
700 
701  return true;
702 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCoerceToDomainValue ( const CoerceToDomainValue a,
const CoerceToDomainValue b 
)
static

Definition at line 705 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

706 {
707  COMPARE_SCALAR_FIELD(typeId);
708  COMPARE_SCALAR_FIELD(typeMod);
709  COMPARE_SCALAR_FIELD(collation);
710  COMPARE_LOCATION_FIELD(location);
711 
712  return true;
713 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCoerceViaIO ( const CoerceViaIO a,
const CoerceViaIO b 
)
static

Definition at line 501 of file equalfuncs.c.

References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

502 {
504  COMPARE_SCALAR_FIELD(resulttype);
505  COMPARE_SCALAR_FIELD(resultcollid);
506  COMPARE_COERCIONFORM_FIELD(coerceformat);
507  COMPARE_LOCATION_FIELD(location);
508 
509  return true;
510 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCollateClause ( const CollateClause a,
const CollateClause b 
)
static

Definition at line 2394 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2395 {
2397  COMPARE_NODE_FIELD(collname);
2398  COMPARE_LOCATION_FIELD(location);
2399 
2400  return true;
2401 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
static bool _equalCollateExpr ( const CollateExpr a,
const CollateExpr b 
)
static

Definition at line 539 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

540 {
542  COMPARE_SCALAR_FIELD(collOid);
543  COMPARE_LOCATION_FIELD(location);
544 
545  return true;
546 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalColumnDef ( const ColumnDef a,
const ColumnDef b 
)
static

Definition at line 2510 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2511 {
2512  COMPARE_STRING_FIELD(colname);
2513  COMPARE_NODE_FIELD(typeName);
2514  COMPARE_SCALAR_FIELD(inhcount);
2515  COMPARE_SCALAR_FIELD(is_local);
2516  COMPARE_SCALAR_FIELD(is_not_null);
2517  COMPARE_SCALAR_FIELD(is_from_type);
2518  COMPARE_SCALAR_FIELD(storage);
2519  COMPARE_NODE_FIELD(raw_default);
2520  COMPARE_NODE_FIELD(cooked_default);
2521  COMPARE_NODE_FIELD(collClause);
2522  COMPARE_SCALAR_FIELD(collOid);
2523  COMPARE_NODE_FIELD(constraints);
2524  COMPARE_NODE_FIELD(fdwoptions);
2525  COMPARE_LOCATION_FIELD(location);
2526 
2527  return true;
2528 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalColumnRef ( const ColumnRef a,
const ColumnRef b 
)
static

Definition at line 2269 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2270 {
2271  COMPARE_NODE_FIELD(fields);
2272  COMPARE_LOCATION_FIELD(location);
2273 
2274  return true;
2275 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCommentStmt ( const CommentStmt a,
const CommentStmt b 
)
static

Definition at line 1280 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1281 {
1282  COMPARE_SCALAR_FIELD(objtype);
1283  COMPARE_NODE_FIELD(object);
1284  COMPARE_STRING_FIELD(comment);
1285 
1286  return true;
1287 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCommonTableExpr ( const CommonTableExpr a,
const CommonTableExpr b 
)
static

Definition at line 2740 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2741 {
2742  COMPARE_STRING_FIELD(ctename);
2743  COMPARE_NODE_FIELD(aliascolnames);
2744  COMPARE_NODE_FIELD(ctequery);
2745  COMPARE_LOCATION_FIELD(location);
2746  COMPARE_SCALAR_FIELD(cterecursive);
2747  COMPARE_SCALAR_FIELD(cterefcount);
2748  COMPARE_NODE_FIELD(ctecolnames);
2749  COMPARE_NODE_FIELD(ctecoltypes);
2750  COMPARE_NODE_FIELD(ctecoltypmods);
2751  COMPARE_NODE_FIELD(ctecolcollations);
2752 
2753  return true;
2754 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCompositeTypeStmt ( const CompositeTypeStmt a,
const CompositeTypeStmt b 
)
static

Definition at line 1486 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1487 {
1488  COMPARE_NODE_FIELD(typevar);
1489  COMPARE_NODE_FIELD(coldeflist);
1490 
1491  return true;
1492 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalConst ( const Const a,
const Const b 
)
static

Definition at line 177 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, Const::constbyval, Const::constisnull, Const::constlen, Const::constvalue, and datumIsEqual().

Referenced by equal().

178 {
179  COMPARE_SCALAR_FIELD(consttype);
180  COMPARE_SCALAR_FIELD(consttypmod);
181  COMPARE_SCALAR_FIELD(constcollid);
182  COMPARE_SCALAR_FIELD(constlen);
183  COMPARE_SCALAR_FIELD(constisnull);
184  COMPARE_SCALAR_FIELD(constbyval);
185  COMPARE_LOCATION_FIELD(location);
186 
187  /*
188  * We treat all NULL constants of the same type as equal. Someday this
189  * might need to change? But datumIsEqual doesn't work on nulls, so...
190  */
191  if (a->constisnull)
192  return true;
193  return datumIsEqual(a->constvalue, b->constvalue,
194  a->constbyval, a->constlen);
195 }
Datum constvalue
Definition: primnodes.h:196
bool constbyval
Definition: primnodes.h:199
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:219
int constlen
Definition: primnodes.h:195
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
bool constisnull
Definition: primnodes.h:197
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalConstraint ( const Constraint a,
const Constraint b 
)
static

Definition at line 2531 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2532 {
2533  COMPARE_SCALAR_FIELD(contype);
2534  COMPARE_STRING_FIELD(conname);
2535  COMPARE_SCALAR_FIELD(deferrable);
2536  COMPARE_SCALAR_FIELD(initdeferred);
2537  COMPARE_LOCATION_FIELD(location);
2538  COMPARE_SCALAR_FIELD(is_no_inherit);
2539  COMPARE_NODE_FIELD(raw_expr);
2540  COMPARE_STRING_FIELD(cooked_expr);
2541  COMPARE_NODE_FIELD(keys);
2542  COMPARE_NODE_FIELD(exclusions);
2544  COMPARE_STRING_FIELD(indexname);
2545  COMPARE_STRING_FIELD(indexspace);
2546  COMPARE_STRING_FIELD(access_method);
2547  COMPARE_NODE_FIELD(where_clause);
2548  COMPARE_NODE_FIELD(pktable);
2549  COMPARE_NODE_FIELD(fk_attrs);
2550  COMPARE_NODE_FIELD(pk_attrs);
2551  COMPARE_SCALAR_FIELD(fk_matchtype);
2552  COMPARE_SCALAR_FIELD(fk_upd_action);
2553  COMPARE_SCALAR_FIELD(fk_del_action);
2554  COMPARE_NODE_FIELD(old_conpfeqop);
2555  COMPARE_SCALAR_FIELD(old_pktable_oid);
2556  COMPARE_SCALAR_FIELD(skip_validation);
2557  COMPARE_SCALAR_FIELD(initially_valid);
2558 
2559  return true;
2560 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalConstraintsSetStmt ( const ConstraintsSetStmt a,
const ConstraintsSetStmt b 
)
static

Definition at line 2046 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2047 {
2048  COMPARE_NODE_FIELD(constraints);
2049  COMPARE_SCALAR_FIELD(deferred);
2050 
2051  return true;
2052 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalConvertRowtypeExpr ( const ConvertRowtypeExpr a,
const ConvertRowtypeExpr b 
)
static

Definition at line 528 of file equalfuncs.c.

References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

529 {
531  COMPARE_SCALAR_FIELD(resulttype);
532  COMPARE_COERCIONFORM_FIELD(convertformat);
533  COMPARE_LOCATION_FIELD(location);
534 
535  return true;
536 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCopyStmt ( const CopyStmt a,
const CopyStmt b 
)
static

Definition at line 1204 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1205 {
1206  COMPARE_NODE_FIELD(relation);
1207  COMPARE_NODE_FIELD(query);
1208  COMPARE_NODE_FIELD(attlist);
1209  COMPARE_SCALAR_FIELD(is_from);
1210  COMPARE_SCALAR_FIELD(is_program);
1213 
1214  return true;
1215 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static char * filename
Definition: pg_dumpall.c:87
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateAmStmt ( const CreateAmStmt a,
const CreateAmStmt b 
)
static

Definition at line 1933 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1934 {
1935  COMPARE_STRING_FIELD(amname);
1936  COMPARE_NODE_FIELD(handler_name);
1937  COMPARE_SCALAR_FIELD(amtype);
1938 
1939  return true;
1940 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateCastStmt ( const CreateCastStmt a,
const CreateCastStmt b 
)
static

Definition at line 2089 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2090 {
2091  COMPARE_NODE_FIELD(sourcetype);
2092  COMPARE_NODE_FIELD(targettype);
2093  COMPARE_NODE_FIELD(func);
2094  COMPARE_SCALAR_FIELD(context);
2095  COMPARE_SCALAR_FIELD(inout);
2096 
2097  return true;
2098 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateConversionStmt ( const CreateConversionStmt a,
const CreateConversionStmt b 
)
static

Definition at line 2077 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2078 {
2079  COMPARE_NODE_FIELD(conversion_name);
2080  COMPARE_STRING_FIELD(for_encoding_name);
2081  COMPARE_STRING_FIELD(to_encoding_name);
2082  COMPARE_NODE_FIELD(func_name);
2083  COMPARE_SCALAR_FIELD(def);
2084 
2085  return true;
2086 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreatedbStmt ( const CreatedbStmt a,
const CreatedbStmt b 
)
static

Definition at line 1604 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1605 {
1608 
1609  return true;
1610 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:38
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateDomainStmt ( const CreateDomainStmt a,
const CreateDomainStmt b 
)
static

Definition at line 1547 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1548 {
1549  COMPARE_NODE_FIELD(domainname);
1550  COMPARE_NODE_FIELD(typeName);
1551  COMPARE_NODE_FIELD(collClause);
1552  COMPARE_NODE_FIELD(constraints);
1553 
1554  return true;
1555 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateEnumStmt ( const CreateEnumStmt a,
const CreateEnumStmt b 
)
static

Definition at line 1495 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1496 {
1497  COMPARE_NODE_FIELD(typeName);
1498  COMPARE_NODE_FIELD(vals);
1499 
1500  return true;
1501 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateEventTrigStmt ( const CreateEventTrigStmt a,
const CreateEventTrigStmt b 
)
static

Definition at line 1964 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1965 {
1966  COMPARE_STRING_FIELD(trigname);
1967  COMPARE_STRING_FIELD(eventname);
1968  COMPARE_NODE_FIELD(whenclause);
1969  COMPARE_NODE_FIELD(funcname);
1970 
1971  return true;
1972 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateExtensionStmt ( const CreateExtensionStmt a,
const CreateExtensionStmt b 
)
static

Definition at line 1791 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1792 {
1793  COMPARE_STRING_FIELD(extname);
1794  COMPARE_SCALAR_FIELD(if_not_exists);
1796 
1797  return true;
1798 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateFdwStmt ( const CreateFdwStmt a,
const CreateFdwStmt b 
)
static

Definition at line 1821 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1822 {
1823  COMPARE_STRING_FIELD(fdwname);
1824  COMPARE_NODE_FIELD(func_options);
1826 
1827  return true;
1828 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateForeignServerStmt ( const CreateForeignServerStmt a,
const CreateForeignServerStmt b 
)
static

Definition at line 1841 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1842 {
1843  COMPARE_STRING_FIELD(servername);
1844  COMPARE_STRING_FIELD(servertype);
1845  COMPARE_STRING_FIELD(version);
1846  COMPARE_STRING_FIELD(fdwname);
1848  COMPARE_SCALAR_FIELD(if_not_exists);
1849 
1850  return true;
1851 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateForeignTableStmt ( const CreateForeignTableStmt a,
const CreateForeignTableStmt b 
)
static

Definition at line 1896 of file equalfuncs.c.

References _equalCreateStmt(), CreateForeignTableStmt::base, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1897 {
1898  if (!_equalCreateStmt(&a->base, &b->base))
1899  return false;
1900 
1901  COMPARE_STRING_FIELD(servername);
1903 
1904  return true;
1905 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
Definition: equalfuncs.c:1218
static bool _equalCreateFunctionStmt ( const CreateFunctionStmt a,
const CreateFunctionStmt b 
)
static

Definition at line 1338 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1339 {
1340  COMPARE_SCALAR_FIELD(replace);
1341  COMPARE_NODE_FIELD(funcname);
1342  COMPARE_NODE_FIELD(parameters);
1343  COMPARE_NODE_FIELD(returnType);
1345  COMPARE_NODE_FIELD(withClause);
1346 
1347  return true;
1348 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateOpClassItem ( const CreateOpClassItem a,
const CreateOpClassItem b 
)
static

Definition at line 1571 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1572 {
1573  COMPARE_SCALAR_FIELD(itemtype);
1575  COMPARE_SCALAR_FIELD(number);
1576  COMPARE_NODE_FIELD(order_family);
1577  COMPARE_NODE_FIELD(class_args);
1578  COMPARE_NODE_FIELD(storedtype);
1579 
1580  return true;
1581 }
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateOpClassStmt ( const CreateOpClassStmt a,
const CreateOpClassStmt b 
)
static

Definition at line 1558 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1559 {
1560  COMPARE_NODE_FIELD(opclassname);
1561  COMPARE_NODE_FIELD(opfamilyname);
1562  COMPARE_STRING_FIELD(amname);
1563  COMPARE_NODE_FIELD(datatype);
1564  COMPARE_NODE_FIELD(items);
1565  COMPARE_SCALAR_FIELD(isDefault);
1566 
1567  return true;
1568 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateOpFamilyStmt ( const CreateOpFamilyStmt a,
const CreateOpFamilyStmt b 
)
static

Definition at line 1584 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1585 {
1586  COMPARE_NODE_FIELD(opfamilyname);
1587  COMPARE_STRING_FIELD(amname);
1588 
1589  return true;
1590 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreatePLangStmt ( const CreatePLangStmt a,
const CreatePLangStmt b 
)
static

Definition at line 1984 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1985 {
1986  COMPARE_SCALAR_FIELD(replace);
1987  COMPARE_STRING_FIELD(plname);
1988  COMPARE_NODE_FIELD(plhandler);
1989  COMPARE_NODE_FIELD(plinline);
1990  COMPARE_NODE_FIELD(plvalidator);
1991  COMPARE_SCALAR_FIELD(pltrusted);
1992 
1993  return true;
1994 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreatePolicyStmt ( const CreatePolicyStmt a,
const CreatePolicyStmt b 
)
static

Definition at line 2231 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2232 {
2233  COMPARE_STRING_FIELD(policy_name);
2234  COMPARE_NODE_FIELD(table);
2235  COMPARE_STRING_FIELD(cmd_name);
2236  COMPARE_SCALAR_FIELD(permissive);
2237  COMPARE_NODE_FIELD(roles);
2238  COMPARE_NODE_FIELD(qual);
2239  COMPARE_NODE_FIELD(with_check);
2240 
2241  return true;
2242 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreatePublicationStmt ( const CreatePublicationStmt a,
const CreatePublicationStmt b 
)
static

Definition at line 2170 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2172 {
2173  COMPARE_STRING_FIELD(pubname);
2175  COMPARE_NODE_FIELD(tables);
2176  COMPARE_SCALAR_FIELD(for_all_tables);
2177 
2178  return true;
2179 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateRangeStmt ( const CreateRangeStmt a,
const CreateRangeStmt b 
)
static

Definition at line 1504 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1505 {
1506  COMPARE_NODE_FIELD(typeName);
1507  COMPARE_NODE_FIELD(params);
1508 
1509  return true;
1510 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateRoleStmt ( const CreateRoleStmt a,
const CreateRoleStmt b 
)
static

Definition at line 1997 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1998 {
1999  COMPARE_SCALAR_FIELD(stmt_type);
2000  COMPARE_STRING_FIELD(role);
2002 
2003  return true;
2004 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateSchemaStmt ( const CreateSchemaStmt a,
const CreateSchemaStmt b 
)
static

Definition at line 2066 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2067 {
2068  COMPARE_STRING_FIELD(schemaname);
2069  COMPARE_NODE_FIELD(authrole);
2070  COMPARE_NODE_FIELD(schemaElts);
2071  COMPARE_SCALAR_FIELD(if_not_exists);
2072 
2073  return true;
2074 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateSeqStmt ( const CreateSeqStmt a,
const CreateSeqStmt b 
)
static

Definition at line 1699 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1700 {
1701  COMPARE_NODE_FIELD(sequence);
1703  COMPARE_SCALAR_FIELD(ownerId);
1704  COMPARE_SCALAR_FIELD(if_not_exists);
1705 
1706  return true;
1707 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateStmt ( const CreateStmt a,
const CreateStmt b 
)
static

Definition at line 1218 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1219 {
1220  COMPARE_NODE_FIELD(relation);
1221  COMPARE_NODE_FIELD(tableElts);
1222  COMPARE_NODE_FIELD(inhRelations);
1223  COMPARE_NODE_FIELD(partspec);
1224  COMPARE_NODE_FIELD(partbound);
1225  COMPARE_NODE_FIELD(ofTypename);
1226  COMPARE_NODE_FIELD(constraints);
1228  COMPARE_SCALAR_FIELD(oncommit);
1229  COMPARE_STRING_FIELD(tablespacename);
1230  COMPARE_SCALAR_FIELD(if_not_exists);
1231 
1232  return true;
1233 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateSubscriptionStmt ( const CreateSubscriptionStmt a,
const CreateSubscriptionStmt b 
)
static

Definition at line 2195 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2197 {
2198  COMPARE_STRING_FIELD(subname);
2199  COMPARE_STRING_FIELD(conninfo);
2200  COMPARE_NODE_FIELD(publication);
2202 
2203  return true;
2204 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateTableAsStmt ( const CreateTableAsStmt a,
const CreateTableAsStmt b 
)
static

Definition at line 1659 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1660 {
1661  COMPARE_NODE_FIELD(query);
1662  COMPARE_NODE_FIELD(into);
1663  COMPARE_SCALAR_FIELD(relkind);
1664  COMPARE_SCALAR_FIELD(is_select_into);
1665  COMPARE_SCALAR_FIELD(if_not_exists);
1666 
1667  return true;
1668 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateTableSpaceStmt ( const CreateTableSpaceStmt a,
const CreateTableSpaceStmt b 
)
static

Definition at line 1747 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1748 {
1749  COMPARE_STRING_FIELD(tablespacename);
1750  COMPARE_NODE_FIELD(owner);
1751  COMPARE_STRING_FIELD(location);
1753 
1754  return true;
1755 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalCreateTransformStmt ( const CreateTransformStmt a,
const CreateTransformStmt b 
)
static

Definition at line 1921 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1922 {
1923  COMPARE_SCALAR_FIELD(replace);
1924  COMPARE_NODE_FIELD(type_name);
1925  COMPARE_STRING_FIELD(lang);
1926  COMPARE_NODE_FIELD(fromsql);
1927  COMPARE_NODE_FIELD(tosql);
1928 
1929  return true;
1930 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateTrigStmt ( const CreateTrigStmt a,
const CreateTrigStmt b 
)
static

Definition at line 1943 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1944 {
1945  COMPARE_STRING_FIELD(trigname);
1946  COMPARE_NODE_FIELD(relation);
1947  COMPARE_NODE_FIELD(funcname);
1949  COMPARE_SCALAR_FIELD(row);
1950  COMPARE_SCALAR_FIELD(timing);
1951  COMPARE_SCALAR_FIELD(events);
1952  COMPARE_NODE_FIELD(columns);
1953  COMPARE_NODE_FIELD(whenClause);
1954  COMPARE_SCALAR_FIELD(isconstraint);
1955  COMPARE_NODE_FIELD(transitionRels);
1956  COMPARE_SCALAR_FIELD(deferrable);
1957  COMPARE_SCALAR_FIELD(initdeferred);
1958  COMPARE_NODE_FIELD(constrrel);
1959 
1960  return true;
1961 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCreateUserMappingStmt ( const CreateUserMappingStmt a,
const CreateUserMappingStmt b 
)
static

Definition at line 1865 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1866 {
1868  COMPARE_STRING_FIELD(servername);
1870  COMPARE_SCALAR_FIELD(if_not_exists);
1871 
1872  return true;
1873 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static char * user
Definition: pg_regress.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalCurrentOfExpr ( const CurrentOfExpr a,
const CurrentOfExpr b 
)
static

Definition at line 727 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

728 {
729  COMPARE_SCALAR_FIELD(cvarno);
730  COMPARE_STRING_FIELD(cursor_name);
731  COMPARE_SCALAR_FIELD(cursor_param);
732 
733  return true;
734 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDeallocateStmt ( const DeallocateStmt a,
const DeallocateStmt b 
)
static

Definition at line 2120 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2121 {
2123 
2124  return true;
2125 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
static bool _equalDeclareCursorStmt ( const DeclareCursorStmt a,
const DeclareCursorStmt b 
)
static

Definition at line 1176 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1177 {
1178  COMPARE_STRING_FIELD(portalname);
1180  COMPARE_NODE_FIELD(query);
1181 
1182  return true;
1183 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDefElem ( const DefElem a,
const DefElem b 
)
static

Definition at line 2563 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2564 {
2565  COMPARE_STRING_FIELD(defnamespace);
2566  COMPARE_STRING_FIELD(defname);
2568  COMPARE_SCALAR_FIELD(defaction);
2569  COMPARE_LOCATION_FIELD(location);
2570 
2571  return true;
2572 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDefineStmt ( const DefineStmt a,
const DefineStmt b 
)
static

Definition at line 1245 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1246 {
1247  COMPARE_SCALAR_FIELD(kind);
1248  COMPARE_SCALAR_FIELD(oldstyle);
1249  COMPARE_NODE_FIELD(defnames);
1251  COMPARE_NODE_FIELD(definition);
1252  COMPARE_SCALAR_FIELD(if_not_exists);
1253 
1254  return true;
1255 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDeleteStmt ( const DeleteStmt a,
const DeleteStmt b 
)
static

Definition at line 1010 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1011 {
1012  COMPARE_NODE_FIELD(relation);
1013  COMPARE_NODE_FIELD(usingClause);
1014  COMPARE_NODE_FIELD(whereClause);
1015  COMPARE_NODE_FIELD(returningList);
1016  COMPARE_NODE_FIELD(withClause);
1017 
1018  return true;
1019 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalDiscardStmt ( const DiscardStmt a,
const DiscardStmt b 
)
static

Definition at line 1739 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1740 {
1741  COMPARE_SCALAR_FIELD(target);
1742 
1743  return true;
1744 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDistinctExpr ( const DistinctExpr a,
const DistinctExpr b 
)
static

Definition at line 335 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.

Referenced by equal().

336 {
337  COMPARE_SCALAR_FIELD(opno);
338 
339  /*
340  * Special-case opfuncid: it is allowable for it to differ if one node
341  * contains zero and the other doesn't. This just means that the one node
342  * isn't as far along in the parse/plan pipeline and hasn't had the
343  * opfuncid cache filled yet.
344  */
345  if (a->opfuncid != b->opfuncid &&
346  a->opfuncid != 0 &&
347  b->opfuncid != 0)
348  return false;
349 
350  COMPARE_SCALAR_FIELD(opresulttype);
351  COMPARE_SCALAR_FIELD(opretset);
352  COMPARE_SCALAR_FIELD(opcollid);
353  COMPARE_SCALAR_FIELD(inputcollid);
355  COMPARE_LOCATION_FIELD(location);
356 
357  return true;
358 }
Oid opfuncid
Definition: primnodes.h:496
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDoStmt ( const DoStmt a,
const DoStmt b 
)
static

Definition at line 1371 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1372 {
1374 
1375  return true;
1376 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalDropdbStmt ( const DropdbStmt a,
const DropdbStmt b 
)
static

Definition at line 1631 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1632 {
1634  COMPARE_SCALAR_FIELD(missing_ok);
1635 
1636  return true;
1637 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:38
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropOwnedStmt ( const DropOwnedStmt a,
const DropOwnedStmt b 
)
static

Definition at line 2128 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2129 {
2130  COMPARE_NODE_FIELD(roles);
2131  COMPARE_SCALAR_FIELD(behavior);
2132 
2133  return true;
2134 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropRoleStmt ( const DropRoleStmt a,
const DropRoleStmt b 
)
static

Definition at line 2027 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2028 {
2029  COMPARE_NODE_FIELD(roles);
2030  COMPARE_SCALAR_FIELD(missing_ok);
2031 
2032  return true;
2033 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropStmt ( const DropStmt a,
const DropStmt b 
)
static

Definition at line 1258 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1259 {
1260  COMPARE_NODE_FIELD(objects);
1261  COMPARE_SCALAR_FIELD(removeType);
1262  COMPARE_SCALAR_FIELD(behavior);
1263  COMPARE_SCALAR_FIELD(missing_ok);
1264  COMPARE_SCALAR_FIELD(concurrent);
1265 
1266  return true;
1267 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropSubscriptionStmt ( const DropSubscriptionStmt a,
const DropSubscriptionStmt b 
)
static

Definition at line 2220 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2222 {
2223  COMPARE_STRING_FIELD(subname);
2224  COMPARE_SCALAR_FIELD(drop_slot);
2225  COMPARE_SCALAR_FIELD(missing_ok);
2226 
2227  return true;
2228 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropTableSpaceStmt ( const DropTableSpaceStmt a,
const DropTableSpaceStmt b 
)
static

Definition at line 1758 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1759 {
1760  COMPARE_STRING_FIELD(tablespacename);
1761  COMPARE_SCALAR_FIELD(missing_ok);
1762 
1763  return true;
1764 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalDropUserMappingStmt ( const DropUserMappingStmt a,
const DropUserMappingStmt b 
)
static

Definition at line 1886 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1887 {
1889  COMPARE_STRING_FIELD(servername);
1890  COMPARE_SCALAR_FIELD(missing_ok);
1891 
1892  return true;
1893 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static char * user
Definition: pg_regress.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalExecuteStmt ( const ExecuteStmt a,
const ExecuteStmt b 
)
static

Definition at line 2111 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2112 {
2114  COMPARE_NODE_FIELD(params);
2115 
2116  return true;
2117 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalExplainStmt ( const ExplainStmt a,
const ExplainStmt b 
)
static

Definition at line 1650 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1651 {
1652  COMPARE_NODE_FIELD(query);
1654 
1655  return true;
1656 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalExtensibleNode ( const ExtensibleNode a,
const ExtensibleNode b 
)
static

Definition at line 924 of file equalfuncs.c.

References COMPARE_STRING_FIELD, ExtensibleNode::extnodename, GetExtensibleNodeMethods(), and ExtensibleNodeMethods::nodeEqual.

Referenced by equal().

925 {
926  const ExtensibleNodeMethods *methods;
927 
928  COMPARE_STRING_FIELD(extnodename);
929 
930  /* At this point, we know extnodename is the same for both nodes. */
931  methods = GetExtensibleNodeMethods(a->extnodename, false);
932 
933  /* compare the private fields */
934  if (!methods->nodeEqual(a, b))
935  return false;
936 
937  return true;
938 }
bool(* nodeEqual)(const struct ExtensibleNode *a, const struct ExtensibleNode *b)
Definition: extensible.h:66
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * extnodename
Definition: extensible.h:35
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
static bool _equalFetchStmt ( const FetchStmt a,
const FetchStmt b 
)
static

Definition at line 1301 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1302 {
1303  COMPARE_SCALAR_FIELD(direction);
1304  COMPARE_SCALAR_FIELD(howMany);
1305  COMPARE_STRING_FIELD(portalname);
1306  COMPARE_SCALAR_FIELD(ismove);
1307 
1308  return true;
1309 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalFieldSelect ( const FieldSelect a,
const FieldSelect b 
)
static

Definition at line 465 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

466 {
468  COMPARE_SCALAR_FIELD(fieldnum);
469  COMPARE_SCALAR_FIELD(resulttype);
470  COMPARE_SCALAR_FIELD(resulttypmod);
471  COMPARE_SCALAR_FIELD(resultcollid);
472 
473  return true;
474 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalFieldStore ( const FieldStore a,
const FieldStore b 
)
static

Definition at line 477 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

478 {
480  COMPARE_NODE_FIELD(newvals);
481  COMPARE_NODE_FIELD(fieldnums);
482  COMPARE_SCALAR_FIELD(resulttype);
483 
484  return true;
485 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalFromExpr ( const FromExpr a,
const FromExpr b 
)
static

Definition at line 784 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

785 {
786  COMPARE_NODE_FIELD(fromlist);
787  COMPARE_NODE_FIELD(quals);
788 
789  return true;
790 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalFuncCall ( const FuncCall a,
const FuncCall b 
)
static

Definition at line 2297 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2298 {
2299  COMPARE_NODE_FIELD(funcname);
2301  COMPARE_NODE_FIELD(agg_order);
2302  COMPARE_NODE_FIELD(agg_filter);
2303  COMPARE_SCALAR_FIELD(agg_within_group);
2304  COMPARE_SCALAR_FIELD(agg_star);
2305  COMPARE_SCALAR_FIELD(agg_distinct);
2306  COMPARE_SCALAR_FIELD(func_variadic);
2307  COMPARE_NODE_FIELD(over);
2308  COMPARE_LOCATION_FIELD(location);
2309 
2310  return true;
2311 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalFuncExpr ( const FuncExpr a,
const FuncExpr b 
)
static

Definition at line 282 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

283 {
284  COMPARE_SCALAR_FIELD(funcid);
285  COMPARE_SCALAR_FIELD(funcresulttype);
286  COMPARE_SCALAR_FIELD(funcretset);
287  COMPARE_SCALAR_FIELD(funcvariadic);
288  COMPARE_COERCIONFORM_FIELD(funcformat);
289  COMPARE_SCALAR_FIELD(funccollid);
290  COMPARE_SCALAR_FIELD(inputcollid);
292  COMPARE_LOCATION_FIELD(location);
293 
294  return true;
295 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalFunctionParameter ( const FunctionParameter a,
const FunctionParameter b 
)
static

Definition at line 1351 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1352 {
1354  COMPARE_NODE_FIELD(argType);
1355  COMPARE_SCALAR_FIELD(mode);
1356  COMPARE_NODE_FIELD(defexpr);
1357 
1358  return true;
1359 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalGrantRoleStmt ( const GrantRoleStmt a,
const GrantRoleStmt b 
)
static

Definition at line 1154 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1155 {
1156  COMPARE_NODE_FIELD(granted_roles);
1157  COMPARE_NODE_FIELD(grantee_roles);
1158  COMPARE_SCALAR_FIELD(is_grant);
1159  COMPARE_SCALAR_FIELD(admin_opt);
1160  COMPARE_NODE_FIELD(grantor);
1161  COMPARE_SCALAR_FIELD(behavior);
1162 
1163  return true;
1164 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalGrantStmt ( const GrantStmt a,
const GrantStmt b 
)
static

Definition at line 1120 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1121 {
1122  COMPARE_SCALAR_FIELD(is_grant);
1123  COMPARE_SCALAR_FIELD(targtype);
1124  COMPARE_SCALAR_FIELD(objtype);
1125  COMPARE_NODE_FIELD(objects);
1126  COMPARE_NODE_FIELD(privileges);
1127  COMPARE_NODE_FIELD(grantees);
1128  COMPARE_SCALAR_FIELD(grant_option);
1129  COMPARE_SCALAR_FIELD(behavior);
1130 
1131  return true;
1132 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalGroupingFunc ( const GroupingFunc a,
const GroupingFunc b 
)
static

Definition at line 235 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

236 {
238 
239  /*
240  * We must not compare the refs or cols field
241  */
242 
243  COMPARE_SCALAR_FIELD(agglevelsup);
244  COMPARE_LOCATION_FIELD(location);
245 
246  return true;
247 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalGroupingSet ( const GroupingSet a,
const GroupingSet b 
)
static

Definition at line 2670 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2671 {
2672  COMPARE_SCALAR_FIELD(kind);
2673  COMPARE_NODE_FIELD(content);
2674  COMPARE_LOCATION_FIELD(location);
2675 
2676  return true;
2677 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalImportForeignSchemaStmt ( const ImportForeignSchemaStmt a,
const ImportForeignSchemaStmt b 
)
static

Definition at line 1908 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1909 {
1910  COMPARE_STRING_FIELD(server_name);
1911  COMPARE_STRING_FIELD(remote_schema);
1912  COMPARE_STRING_FIELD(local_schema);
1913  COMPARE_SCALAR_FIELD(list_type);
1914  COMPARE_NODE_FIELD(table_list);
1916 
1917  return true;
1918 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalIndexElem ( const IndexElem a,
const IndexElem b 
)
static

Definition at line 2496 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2497 {
2499  COMPARE_NODE_FIELD(expr);
2500  COMPARE_STRING_FIELD(indexcolname);
2501  COMPARE_NODE_FIELD(collation);
2502  COMPARE_NODE_FIELD(opclass);
2503  COMPARE_SCALAR_FIELD(ordering);
2504  COMPARE_SCALAR_FIELD(nulls_ordering);
2505 
2506  return true;
2507 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalIndexStmt ( const IndexStmt a,
const IndexStmt b 
)
static

Definition at line 1312 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1313 {
1314  COMPARE_STRING_FIELD(idxname);
1315  COMPARE_NODE_FIELD(relation);
1316  COMPARE_STRING_FIELD(accessMethod);
1317  COMPARE_STRING_FIELD(tableSpace);
1318  COMPARE_NODE_FIELD(indexParams);
1320  COMPARE_NODE_FIELD(whereClause);
1321  COMPARE_NODE_FIELD(excludeOpNames);
1322  COMPARE_STRING_FIELD(idxcomment);
1323  COMPARE_SCALAR_FIELD(indexOid);
1324  COMPARE_SCALAR_FIELD(oldNode);
1325  COMPARE_SCALAR_FIELD(unique);
1326  COMPARE_SCALAR_FIELD(primary);
1327  COMPARE_SCALAR_FIELD(isconstraint);
1328  COMPARE_SCALAR_FIELD(deferrable);
1329  COMPARE_SCALAR_FIELD(initdeferred);
1330  COMPARE_SCALAR_FIELD(transformed);
1331  COMPARE_SCALAR_FIELD(concurrent);
1332  COMPARE_SCALAR_FIELD(if_not_exists);
1333 
1334  return true;
1335 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalInferClause ( const InferClause a,
const InferClause b 
)
static

Definition at line 2717 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2718 {
2719  COMPARE_NODE_FIELD(indexElems);
2720  COMPARE_NODE_FIELD(whereClause);
2721  COMPARE_STRING_FIELD(conname);
2722  COMPARE_LOCATION_FIELD(location);
2723 
2724  return true;
2725 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalInferenceElem ( const InferenceElem a,
const InferenceElem b 
)
static

Definition at line 737 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

738 {
739  COMPARE_NODE_FIELD(expr);
740  COMPARE_SCALAR_FIELD(infercollid);
741  COMPARE_SCALAR_FIELD(inferopclass);
742 
743  return true;
744 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalInsertStmt ( const InsertStmt a,
const InsertStmt b 
)
static

Definition at line 997 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

998 {
999  COMPARE_NODE_FIELD(relation);
1000  COMPARE_NODE_FIELD(cols);
1001  COMPARE_NODE_FIELD(selectStmt);
1002  COMPARE_NODE_FIELD(onConflictClause);
1003  COMPARE_NODE_FIELD(returningList);
1004  COMPARE_NODE_FIELD(withClause);
1005 
1006  return true;
1007 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalIntoClause ( const IntoClause a,
const IntoClause b 
)
static

Definition at line 140 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

141 {
142  COMPARE_NODE_FIELD(rel);
143  COMPARE_NODE_FIELD(colNames);
145  COMPARE_SCALAR_FIELD(onCommit);
146  COMPARE_STRING_FIELD(tableSpaceName);
147  COMPARE_NODE_FIELD(viewQuery);
148  COMPARE_SCALAR_FIELD(skipData);
149 
150  return true;
151 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalJoinExpr ( const JoinExpr a,
const JoinExpr b 
)
static

Definition at line 769 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

770 {
771  COMPARE_SCALAR_FIELD(jointype);
772  COMPARE_SCALAR_FIELD(isNatural);
773  COMPARE_NODE_FIELD(larg);
774  COMPARE_NODE_FIELD(rarg);
775  COMPARE_NODE_FIELD(usingClause);
776  COMPARE_NODE_FIELD(quals);
777  COMPARE_NODE_FIELD(alias);
778  COMPARE_SCALAR_FIELD(rtindex);
779 
780  return true;
781 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalList ( const List a,
const List b 
)
static

Definition at line 2845 of file equalfuncs.c.

References Assert, COMPARE_SCALAR_FIELD, elog, equal(), ERROR, forboth, length(), lfirst, lfirst_int, lfirst_oid, NULL, T_IntList, T_List, T_OidList, and List::type.

Referenced by equal().

2846 {
2847  const ListCell *item_a;
2848  const ListCell *item_b;
2849 
2850  /*
2851  * Try to reject by simple scalar checks before grovelling through all the
2852  * list elements...
2853  */
2854  COMPARE_SCALAR_FIELD(type);
2856 
2857  /*
2858  * We place the switch outside the loop for the sake of efficiency; this
2859  * may not be worth doing...
2860  */
2861  switch (a->type)
2862  {
2863  case T_List:
2864  forboth(item_a, a, item_b, b)
2865  {
2866  if (!equal(lfirst(item_a), lfirst(item_b)))
2867  return false;
2868  }
2869  break;
2870  case T_IntList:
2871  forboth(item_a, a, item_b, b)
2872  {
2873  if (lfirst_int(item_a) != lfirst_int(item_b))
2874  return false;
2875  }
2876  break;
2877  case T_OidList:
2878  forboth(item_a, a, item_b, b)
2879  {
2880  if (lfirst_oid(item_a) != lfirst_oid(item_b))
2881  return false;
2882  }
2883  break;
2884  default:
2885  elog(ERROR, "unrecognized list node type: %d",
2886  (int) a->type);
2887  return false; /* keep compiler quiet */
2888  }
2889 
2890  /*
2891  * If we got here, we should have run out of elements of both lists
2892  */
2893  Assert(item_a == NULL);
2894  Assert(item_b == NULL);
2895 
2896  return true;
2897 }
int length(const List *list)
Definition: list.c:1271
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:174
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:2934
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:107
Definition: nodes.h:303
#define NULL
Definition: c.h:229
#define Assert(condition)
Definition: c.h:675
#define lfirst(lc)
Definition: pg_list.h:106
NodeTag type
Definition: pg_list.h:47
#define elog
Definition: elog.h:219
#define lfirst_oid(lc)
Definition: pg_list.h:108
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalListenStmt ( const ListenStmt a,
const ListenStmt b 
)
static

Definition at line 1460 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1461 {
1462  COMPARE_STRING_FIELD(conditionname);
1463 
1464  return true;
1465 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static bool _equalLoadStmt ( const LoadStmt a,
const LoadStmt b 
)
static

Definition at line 1539 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1540 {
1542 
1543  return true;
1544 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static char * filename
Definition: pg_dumpall.c:87
static bool _equalLockingClause ( const LockingClause a,
const LockingClause b 
)
static

Definition at line 2575 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2576 {
2577  COMPARE_NODE_FIELD(lockedRels);
2578  COMPARE_SCALAR_FIELD(strength);
2579  COMPARE_SCALAR_FIELD(waitPolicy);
2580  COMPARE_LOCATION_FIELD(location);
2581 
2582  return true;
2583 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalLockStmt ( const LockStmt a,
const LockStmt b 
)
static

Definition at line 2036 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2037 {
2038  COMPARE_NODE_FIELD(relations);
2039  COMPARE_SCALAR_FIELD(mode);
2040  COMPARE_SCALAR_FIELD(nowait);
2041 
2042  return true;
2043 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalMinMaxExpr ( const MinMaxExpr a,
const MinMaxExpr b 
)
static

Definition at line 631 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

632 {
633  COMPARE_SCALAR_FIELD(minmaxtype);
634  COMPARE_SCALAR_FIELD(minmaxcollid);
635  COMPARE_SCALAR_FIELD(inputcollid);
638  COMPARE_LOCATION_FIELD(location);
639 
640  return true;
641 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalMultiAssignRef ( const MultiAssignRef a,
const MultiAssignRef b 
)
static

Definition at line 2359 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2360 {
2361  COMPARE_NODE_FIELD(source);
2362  COMPARE_SCALAR_FIELD(colno);
2363  COMPARE_SCALAR_FIELD(ncolumns);
2364 
2365  return true;
2366 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalNamedArgExpr ( const NamedArgExpr a,
const NamedArgExpr b 
)
static

Definition at line 298 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

299 {
302  COMPARE_SCALAR_FIELD(argnumber);
303  COMPARE_LOCATION_FIELD(location);
304 
305  return true;
306 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalNotifyStmt ( const NotifyStmt a,
const NotifyStmt b 
)
static

Definition at line 1451 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1452 {
1453  COMPARE_STRING_FIELD(conditionname);
1454  COMPARE_STRING_FIELD(payload);
1455 
1456  return true;
1457 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static bool _equalNullIfExpr ( const NullIfExpr a,
const NullIfExpr b 
)
static

Definition at line 361 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.

Referenced by equal().

362 {
363  COMPARE_SCALAR_FIELD(opno);
364 
365  /*
366  * Special-case opfuncid: it is allowable for it to differ if one node
367  * contains zero and the other doesn't. This just means that the one node
368  * isn't as far along in the parse/plan pipeline and hasn't had the
369  * opfuncid cache filled yet.
370  */
371  if (a->opfuncid != b->opfuncid &&
372  a->opfuncid != 0 &&
373  b->opfuncid != 0)
374  return false;
375 
376  COMPARE_SCALAR_FIELD(opresulttype);
377  COMPARE_SCALAR_FIELD(opretset);
378  COMPARE_SCALAR_FIELD(opcollid);
379  COMPARE_SCALAR_FIELD(inputcollid);
381  COMPARE_LOCATION_FIELD(location);
382 
383  return true;
384 }
Oid opfuncid
Definition: primnodes.h:496
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalNullTest ( const NullTest a,
const NullTest b 
)
static

Definition at line 671 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

672 {
674  COMPARE_SCALAR_FIELD(nulltesttype);
675  COMPARE_SCALAR_FIELD(argisrow);
676  COMPARE_LOCATION_FIELD(location);
677 
678  return true;
679 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalObjectWithArgs ( const ObjectWithArgs a,
const ObjectWithArgs b 
)
static

Definition at line 1135 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1136 {
1137  COMPARE_NODE_FIELD(objname);
1138  COMPARE_NODE_FIELD(objargs);
1139  COMPARE_SCALAR_FIELD(args_unspecified);
1140 
1141  return true;
1142 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalOnConflictClause ( const OnConflictClause a,
const OnConflictClause b 
)
static

Definition at line 2728 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2729 {
2730  COMPARE_SCALAR_FIELD(action);
2731  COMPARE_NODE_FIELD(infer);
2732  COMPARE_NODE_FIELD(targetList);
2733  COMPARE_NODE_FIELD(whereClause);
2734  COMPARE_LOCATION_FIELD(location);
2735 
2736  return true;
2737 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalOnConflictExpr ( const OnConflictExpr a,
const OnConflictExpr b 
)
static

Definition at line 793 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

794 {
795  COMPARE_SCALAR_FIELD(action);
796  COMPARE_NODE_FIELD(arbiterElems);
797  COMPARE_NODE_FIELD(arbiterWhere);
798  COMPARE_SCALAR_FIELD(constraint);
799  COMPARE_NODE_FIELD(onConflictSet);
800  COMPARE_NODE_FIELD(onConflictWhere);
801  COMPARE_SCALAR_FIELD(exclRelIndex);
802  COMPARE_NODE_FIELD(exclRelTlist);
803 
804  return true;
805 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalOpExpr ( const OpExpr a,
const OpExpr b 
)
static

Definition at line 309 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.

Referenced by equal().

310 {
311  COMPARE_SCALAR_FIELD(opno);
312 
313  /*
314  * Special-case opfuncid: it is allowable for it to differ if one node
315  * contains zero and the other doesn't. This just means that the one node
316  * isn't as far along in the parse/plan pipeline and hasn't had the
317  * opfuncid cache filled yet.
318  */
319  if (a->opfuncid != b->opfuncid &&
320  a->opfuncid != 0 &&
321  b->opfuncid != 0)
322  return false;
323 
324  COMPARE_SCALAR_FIELD(opresulttype);
325  COMPARE_SCALAR_FIELD(opretset);
326  COMPARE_SCALAR_FIELD(opcollid);
327  COMPARE_SCALAR_FIELD(inputcollid);
329  COMPARE_LOCATION_FIELD(location);
330 
331  return true;
332 }
Oid opfuncid
Definition: primnodes.h:496
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalParam ( const Param a,
const Param b 
)
static

Definition at line 198 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

199 {
200  COMPARE_SCALAR_FIELD(paramkind);
201  COMPARE_SCALAR_FIELD(paramid);
202  COMPARE_SCALAR_FIELD(paramtype);
203  COMPARE_SCALAR_FIELD(paramtypmod);
204  COMPARE_SCALAR_FIELD(paramcollid);
205  COMPARE_LOCATION_FIELD(location);
206 
207  return true;
208 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalParamRef ( const ParamRef a,
const ParamRef b 
)
static

Definition at line 2278 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2279 {
2280  COMPARE_SCALAR_FIELD(number);
2281  COMPARE_LOCATION_FIELD(location);
2282 
2283  return true;
2284 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPartitionBoundSpec ( const PartitionBoundSpec a,
const PartitionBoundSpec b 
)
static

Definition at line 2810 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2811 {
2812  COMPARE_SCALAR_FIELD(strategy);
2813  COMPARE_NODE_FIELD(listdatums);
2814  COMPARE_NODE_FIELD(lowerdatums);
2815  COMPARE_NODE_FIELD(upperdatums);
2816  COMPARE_LOCATION_FIELD(location);
2817 
2818  return true;
2819 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPartitionCmd ( const PartitionCmd a,
const PartitionCmd b 
)
static

Definition at line 2832 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2833 {
2835  COMPARE_NODE_FIELD(bound);
2836 
2837  return true;
2838 }
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalPartitionedChildRelInfo ( const PartitionedChildRelInfo a,
const PartitionedChildRelInfo b 
)
static

Definition at line 899 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

900 {
901  COMPARE_SCALAR_FIELD(parent_relid);
902  COMPARE_NODE_FIELD(child_rels);
903 
904  return true;
905 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPartitionElem ( const PartitionElem a,
const PartitionElem b 
)
static

Definition at line 2798 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2799 {
2801  COMPARE_NODE_FIELD(expr);
2802  COMPARE_NODE_FIELD(collation);
2803  COMPARE_NODE_FIELD(opclass);
2804  COMPARE_LOCATION_FIELD(location);
2805 
2806  return true;
2807 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalPartitionRangeDatum ( const PartitionRangeDatum a,
const PartitionRangeDatum b 
)
static

Definition at line 2822 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2823 {
2824  COMPARE_SCALAR_FIELD(infinite);
2826  COMPARE_LOCATION_FIELD(location);
2827 
2828  return true;
2829 }
static struct @78 value
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPartitionSpec ( const PartitionSpec a,
const PartitionSpec b 
)
static

Definition at line 2788 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2789 {
2790  COMPARE_STRING_FIELD(strategy);
2791  COMPARE_NODE_FIELD(partParams);
2792  COMPARE_LOCATION_FIELD(location);
2793 
2794  return true;
2795 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalPathKey ( const PathKey a,
const PathKey b 
)
static

Definition at line 812 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

813 {
814  /* We assume pointer equality is sufficient to compare the eclasses */
815  COMPARE_SCALAR_FIELD(pk_eclass);
816  COMPARE_SCALAR_FIELD(pk_opfamily);
817  COMPARE_SCALAR_FIELD(pk_strategy);
818  COMPARE_SCALAR_FIELD(pk_nulls_first);
819 
820  return true;
821 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPlaceHolderInfo ( const PlaceHolderInfo a,
const PlaceHolderInfo b 
)
static

Definition at line 908 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

909 {
910  COMPARE_SCALAR_FIELD(phid);
911  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
912  COMPARE_BITMAPSET_FIELD(ph_eval_at);
913  COMPARE_BITMAPSET_FIELD(ph_lateral);
914  COMPARE_BITMAPSET_FIELD(ph_needed);
915  COMPARE_SCALAR_FIELD(ph_width);
916 
917  return true;
918 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPlaceHolderVar ( const PlaceHolderVar a,
const PlaceHolderVar b 
)
static

Definition at line 843 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

844 {
845  /*
846  * We intentionally do not compare phexpr. Two PlaceHolderVars with the
847  * same ID and levelsup should be considered equal even if the contained
848  * expressions have managed to mutate to different states. This will
849  * happen during final plan construction when there are nested PHVs, since
850  * the inner PHV will get replaced by a Param in some copies of the outer
851  * PHV. Another way in which it can happen is that initplan sublinks
852  * could get replaced by differently-numbered Params when sublink folding
853  * is done. (The end result of such a situation would be some
854  * unreferenced initplans, which is annoying but not really a problem.) On
855  * the same reasoning, there is no need to examine phrels.
856  *
857  * COMPARE_NODE_FIELD(phexpr);
858  *
859  * COMPARE_BITMAPSET_FIELD(phrels);
860  */
861  COMPARE_SCALAR_FIELD(phid);
862  COMPARE_SCALAR_FIELD(phlevelsup);
863 
864  return true;
865 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalPrepareStmt ( const PrepareStmt a,
const PrepareStmt b 
)
static

Definition at line 2101 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2102 {
2104  COMPARE_NODE_FIELD(argtypes);
2105  COMPARE_NODE_FIELD(query);
2106 
2107  return true;
2108 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalQuery ( const Query a,
const Query b 
)
static

Definition at line 945 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

946 {
947  COMPARE_SCALAR_FIELD(commandType);
948  COMPARE_SCALAR_FIELD(querySource);
949  /* we intentionally ignore queryId, since it might not be set */
950  COMPARE_SCALAR_FIELD(canSetTag);
951  COMPARE_NODE_FIELD(utilityStmt);
952  COMPARE_SCALAR_FIELD(resultRelation);
953  COMPARE_SCALAR_FIELD(hasAggs);
954  COMPARE_SCALAR_FIELD(hasWindowFuncs);
955  COMPARE_SCALAR_FIELD(hasTargetSRFs);
956  COMPARE_SCALAR_FIELD(hasSubLinks);
957  COMPARE_SCALAR_FIELD(hasDistinctOn);
958  COMPARE_SCALAR_FIELD(hasRecursive);
959  COMPARE_SCALAR_FIELD(hasModifyingCTE);
960  COMPARE_SCALAR_FIELD(hasForUpdate);
961  COMPARE_SCALAR_FIELD(hasRowSecurity);
962  COMPARE_NODE_FIELD(cteList);
963  COMPARE_NODE_FIELD(rtable);
964  COMPARE_NODE_FIELD(jointree);
965  COMPARE_NODE_FIELD(targetList);
966  COMPARE_NODE_FIELD(onConflict);
967  COMPARE_NODE_FIELD(returningList);
968  COMPARE_NODE_FIELD(groupClause);
969  COMPARE_NODE_FIELD(groupingSets);
970  COMPARE_NODE_FIELD(havingQual);
971  COMPARE_NODE_FIELD(windowClause);
972  COMPARE_NODE_FIELD(distinctClause);
973  COMPARE_NODE_FIELD(sortClause);
974  COMPARE_NODE_FIELD(limitOffset);
975  COMPARE_NODE_FIELD(limitCount);
976  COMPARE_NODE_FIELD(rowMarks);
977  COMPARE_NODE_FIELD(setOperations);
978  COMPARE_NODE_FIELD(constraintDeps);
979  COMPARE_NODE_FIELD(withCheckOptions);
980  COMPARE_LOCATION_FIELD(stmt_location);
981  COMPARE_LOCATION_FIELD(stmt_len);
982 
983  return true;
984 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeFunction ( const RangeFunction a,
const RangeFunction b 
)
static

Definition at line 2441 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2442 {
2443  COMPARE_SCALAR_FIELD(lateral);
2444  COMPARE_SCALAR_FIELD(ordinality);
2445  COMPARE_SCALAR_FIELD(is_rowsfrom);
2447  COMPARE_NODE_FIELD(alias);
2448  COMPARE_NODE_FIELD(coldeflist);
2449 
2450  return true;
2451 }
static const struct fns functions
Definition: regcomp.c:299
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeSubselect ( const RangeSubselect a,
const RangeSubselect b 
)
static

Definition at line 2431 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2432 {
2433  COMPARE_SCALAR_FIELD(lateral);
2434  COMPARE_NODE_FIELD(subquery);
2435  COMPARE_NODE_FIELD(alias);
2436 
2437  return true;
2438 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeTableFunc ( const RangeTableFunc a,
const RangeTableFunc b 
)
static

Definition at line 2466 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2467 {
2468  COMPARE_SCALAR_FIELD(lateral);
2469  COMPARE_NODE_FIELD(docexpr);
2470  COMPARE_NODE_FIELD(rowexpr);
2471  COMPARE_NODE_FIELD(namespaces);
2472  COMPARE_NODE_FIELD(columns);
2473  COMPARE_NODE_FIELD(alias);
2474  COMPARE_LOCATION_FIELD(location);
2475 
2476  return true;
2477 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeTableFuncCol ( const RangeTableFuncCol a,
const RangeTableFuncCol b 
)
static

Definition at line 2480 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2481 {
2482  COMPARE_STRING_FIELD(colname);
2483  COMPARE_NODE_FIELD(typeName);
2484  COMPARE_SCALAR_FIELD(for_ordinality);
2485  COMPARE_NODE_FIELD(typeName);
2486  COMPARE_SCALAR_FIELD(is_not_null);
2487  COMPARE_NODE_FIELD(colexpr);
2488  COMPARE_NODE_FIELD(coldefexpr);
2489  COMPARE_LOCATION_FIELD(location);
2490 
2491  return true;
2492 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeTableSample ( const RangeTableSample a,
const RangeTableSample b 
)
static

Definition at line 2454 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2455 {
2456  COMPARE_NODE_FIELD(relation);
2457  COMPARE_NODE_FIELD(method);
2459  COMPARE_NODE_FIELD(repeatable);
2460  COMPARE_LOCATION_FIELD(location);
2461 
2462  return true;
2463 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalRangeTblEntry ( const RangeTblEntry a,
const RangeTblEntry b 
)
static

Definition at line 2586 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and functions.

Referenced by equal().

2587 {
2588  COMPARE_SCALAR_FIELD(rtekind);
2589  COMPARE_SCALAR_FIELD(relid);
2590  COMPARE_SCALAR_FIELD(relkind);
2591  COMPARE_NODE_FIELD(tablesample);
2592  COMPARE_NODE_FIELD(subquery);
2593  COMPARE_SCALAR_FIELD(security_barrier);
2594  COMPARE_SCALAR_FIELD(jointype);
2595  COMPARE_NODE_FIELD(joinaliasvars);
2597  COMPARE_NODE_FIELD(tablefunc);
2598  COMPARE_SCALAR_FIELD(funcordinality);
2599  COMPARE_NODE_FIELD(values_lists);
2600  COMPARE_STRING_FIELD(ctename);
2601  COMPARE_SCALAR_FIELD(ctelevelsup);
2602  COMPARE_SCALAR_FIELD(self_reference);
2603  COMPARE_NODE_FIELD(coltypes);
2604  COMPARE_NODE_FIELD(coltypmods);
2605  COMPARE_NODE_FIELD(colcollations);
2606  COMPARE_NODE_FIELD(alias);
2607  COMPARE_NODE_FIELD(eref);
2608  COMPARE_SCALAR_FIELD(lateral);
2609  COMPARE_SCALAR_FIELD(inh);
2610  COMPARE_SCALAR_FIELD(inFromCl);
2611  COMPARE_SCALAR_FIELD(requiredPerms);
2612  COMPARE_SCALAR_FIELD(checkAsUser);
2613  COMPARE_BITMAPSET_FIELD(selectedCols);
2614  COMPARE_BITMAPSET_FIELD(insertedCols);
2615  COMPARE_BITMAPSET_FIELD(updatedCols);
2616  COMPARE_NODE_FIELD(securityQuals);
2617 
2618  return true;
2619 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
static const struct fns functions
Definition: regcomp.c:299
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeTblFunction ( const RangeTblFunction a,
const RangeTblFunction b 
)
static

Definition at line 2622 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2623 {
2624  COMPARE_NODE_FIELD(funcexpr);
2625  COMPARE_SCALAR_FIELD(funccolcount);
2626  COMPARE_NODE_FIELD(funccolnames);
2627  COMPARE_NODE_FIELD(funccoltypes);
2628  COMPARE_NODE_FIELD(funccoltypmods);
2629  COMPARE_NODE_FIELD(funccolcollations);
2630  COMPARE_BITMAPSET_FIELD(funcparams);
2631 
2632  return true;
2633 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeTblRef ( const RangeTblRef a,
const RangeTblRef b 
)
static

Definition at line 761 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

762 {
763  COMPARE_SCALAR_FIELD(rtindex);
764 
765  return true;
766 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRangeVar ( const RangeVar a,
const RangeVar b 
)
static

Definition at line 106 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

107 {
108  COMPARE_STRING_FIELD(catalogname);
109  COMPARE_STRING_FIELD(schemaname);
110  COMPARE_STRING_FIELD(relname);
112  COMPARE_SCALAR_FIELD(relpersistence);
113  COMPARE_NODE_FIELD(alias);
114  COMPARE_LOCATION_FIELD(location);
115 
116  return true;
117 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRawStmt ( const RawStmt a,
const RawStmt b 
)
static

Definition at line 987 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

988 {
989  COMPARE_NODE_FIELD(stmt);
990  COMPARE_LOCATION_FIELD(stmt_location);
991  COMPARE_LOCATION_FIELD(stmt_len);
992 
993  return true;
994 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalReassignOwnedStmt ( const ReassignOwnedStmt a,
const ReassignOwnedStmt b 
)
static

Definition at line 2137 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2138 {
2139  COMPARE_NODE_FIELD(roles);
2140  COMPARE_NODE_FIELD(newrole);
2141 
2142  return true;
2143 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
static bool _equalRefreshMatViewStmt ( const RefreshMatViewStmt a,
const RefreshMatViewStmt b 
)
static

Definition at line 1671 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1672 {
1673  COMPARE_SCALAR_FIELD(concurrent);
1674  COMPARE_SCALAR_FIELD(skipData);
1675  COMPARE_NODE_FIELD(relation);
1676 
1677  return true;
1678 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalReindexStmt ( const ReindexStmt a,
const ReindexStmt b 
)
static

Definition at line 2055 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2056 {
2057  COMPARE_SCALAR_FIELD(kind);
2058  COMPARE_NODE_FIELD(relation);
2061 
2062  return true;
2063 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRelabelType ( const RelabelType a,
const RelabelType b 
)
static

Definition at line 488 of file equalfuncs.c.

References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

489 {
491  COMPARE_SCALAR_FIELD(resulttype);
492  COMPARE_SCALAR_FIELD(resulttypmod);
493  COMPARE_SCALAR_FIELD(resultcollid);
494  COMPARE_COERCIONFORM_FIELD(relabelformat);
495  COMPARE_LOCATION_FIELD(location);
496 
497  return true;
498 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRenameStmt ( const RenameStmt a,
const RenameStmt b 
)
static

Definition at line 1379 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1380 {
1381  COMPARE_SCALAR_FIELD(renameType);
1382  COMPARE_SCALAR_FIELD(relationType);
1383  COMPARE_NODE_FIELD(relation);
1384  COMPARE_NODE_FIELD(object);
1385  COMPARE_STRING_FIELD(subname);
1386  COMPARE_STRING_FIELD(newname);
1387  COMPARE_SCALAR_FIELD(behavior);
1388  COMPARE_SCALAR_FIELD(missing_ok);
1389 
1390  return true;
1391 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalReplicaIdentityStmt ( const ReplicaIdentityStmt a,
const ReplicaIdentityStmt b 
)
static

Definition at line 1681 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1682 {
1683  COMPARE_SCALAR_FIELD(identity_type);
1685 
1686  return true;
1687 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalResTarget ( const ResTarget a,
const ResTarget b 
)
static

Definition at line 2348 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, name, and val.

Referenced by equal().

2349 {
2351  COMPARE_NODE_FIELD(indirection);
2353  COMPARE_LOCATION_FIELD(location);
2354 
2355  return true;
2356 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
long val
Definition: informix.c:689
static bool _equalRestrictInfo ( const RestrictInfo a,
const RestrictInfo b 
)
static

Definition at line 824 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

825 {
826  COMPARE_NODE_FIELD(clause);
827  COMPARE_SCALAR_FIELD(is_pushed_down);
828  COMPARE_SCALAR_FIELD(outerjoin_delayed);
829  COMPARE_SCALAR_FIELD(security_level);
830  COMPARE_BITMAPSET_FIELD(required_relids);
831  COMPARE_BITMAPSET_FIELD(outer_relids);
832  COMPARE_BITMAPSET_FIELD(nullable_relids);
833 
834  /*
835  * We ignore all the remaining fields, since they may not be set yet, and
836  * should be derivable from the clause anyway.
837  */
838 
839  return true;
840 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRoleSpec ( const RoleSpec a,
const RoleSpec b 
)
static

Definition at line 2768 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2769 {
2770  COMPARE_SCALAR_FIELD(roletype);
2771  COMPARE_STRING_FIELD(rolename);
2772  COMPARE_LOCATION_FIELD(location);
2773 
2774  return true;
2775 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRowCompareExpr ( const RowCompareExpr a,
const RowCompareExpr b 
)
static

Definition at line 607 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

608 {
609  COMPARE_SCALAR_FIELD(rctype);
610  COMPARE_NODE_FIELD(opnos);
611  COMPARE_NODE_FIELD(opfamilies);
612  COMPARE_NODE_FIELD(inputcollids);
613  COMPARE_NODE_FIELD(largs);
614  COMPARE_NODE_FIELD(rargs);
615 
616  return true;
617 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRowExpr ( const RowExpr a,
const RowExpr b 
)
static

Definition at line 595 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

596 {
598  COMPARE_SCALAR_FIELD(row_typeid);
599  COMPARE_COERCIONFORM_FIELD(row_format);
600  COMPARE_NODE_FIELD(colnames);
601  COMPARE_LOCATION_FIELD(location);
602 
603  return true;
604 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:88
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRowMarkClause ( const RowMarkClause a,
const RowMarkClause b 
)
static

Definition at line 2696 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2697 {
2698  COMPARE_SCALAR_FIELD(rti);
2699  COMPARE_SCALAR_FIELD(strength);
2700  COMPARE_SCALAR_FIELD(waitPolicy);
2701  COMPARE_SCALAR_FIELD(pushedDown);
2702 
2703  return true;
2704 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalRuleStmt ( const RuleStmt a,
const RuleStmt b 
)
static

Definition at line 1437 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1438 {
1439  COMPARE_NODE_FIELD(relation);
1440  COMPARE_STRING_FIELD(rulename);
1441  COMPARE_NODE_FIELD(whereClause);
1442  COMPARE_SCALAR_FIELD(event);
1443  COMPARE_SCALAR_FIELD(instead);
1444  COMPARE_NODE_FIELD(actions);
1445  COMPARE_SCALAR_FIELD(replace);
1446 
1447  return true;
1448 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalScalarArrayOpExpr ( const ScalarArrayOpExpr a,
const ScalarArrayOpExpr b 
)
static

Definition at line 387 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and ScalarArrayOpExpr::opfuncid.

Referenced by equal().

388 {
389  COMPARE_SCALAR_FIELD(opno);
390 
391  /*
392  * Special-case opfuncid: it is allowable for it to differ if one node
393  * contains zero and the other doesn't. This just means that the one node
394  * isn't as far along in the parse/plan pipeline and hasn't had the
395  * opfuncid cache filled yet.
396  */
397  if (a->opfuncid != b->opfuncid &&
398  a->opfuncid != 0 &&
399  b->opfuncid != 0)
400  return false;
401 
402  COMPARE_SCALAR_FIELD(useOr);
403  COMPARE_SCALAR_FIELD(inputcollid);
405  COMPARE_LOCATION_FIELD(location);
406 
407  return true;
408 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSecLabelStmt ( const SecLabelStmt a,
const SecLabelStmt b 
)
static

Definition at line 1290 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and label.

Referenced by equal().

1291 {
1292  COMPARE_SCALAR_FIELD(objtype);
1293  COMPARE_NODE_FIELD(object);
1294  COMPARE_STRING_FIELD(provider);
1296 
1297  return true;
1298 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static char * label
Definition: pg_basebackup.c:81
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSelectStmt ( const SelectStmt a,
const SelectStmt b 
)
static

Definition at line 1035 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1036 {
1037  COMPARE_NODE_FIELD(distinctClause);
1038  COMPARE_NODE_FIELD(intoClause);
1039  COMPARE_NODE_FIELD(targetList);
1040  COMPARE_NODE_FIELD(fromClause);
1041  COMPARE_NODE_FIELD(whereClause);
1042  COMPARE_NODE_FIELD(groupClause);
1043  COMPARE_NODE_FIELD(havingClause);
1044  COMPARE_NODE_FIELD(windowClause);
1045  COMPARE_NODE_FIELD(valuesLists);
1046  COMPARE_NODE_FIELD(sortClause);
1047  COMPARE_NODE_FIELD(limitOffset);
1048  COMPARE_NODE_FIELD(limitCount);
1049  COMPARE_NODE_FIELD(lockingClause);
1050  COMPARE_NODE_FIELD(withClause);
1052  COMPARE_SCALAR_FIELD(all);
1053  COMPARE_NODE_FIELD(larg);
1054  COMPARE_NODE_FIELD(rarg);
1055 
1056  return true;
1057 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSetOperationStmt ( const SetOperationStmt a,
const SetOperationStmt b 
)
static

Definition at line 1060 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1061 {
1063  COMPARE_SCALAR_FIELD(all);
1064  COMPARE_NODE_FIELD(larg);
1065  COMPARE_NODE_FIELD(rarg);
1066  COMPARE_NODE_FIELD(colTypes);
1067  COMPARE_NODE_FIELD(colTypmods);
1068  COMPARE_NODE_FIELD(colCollations);
1069  COMPARE_NODE_FIELD(groupClauses);
1070 
1071  return true;
1072 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSetToDefault ( const SetToDefault a,
const SetToDefault b 
)
static

Definition at line 716 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

717 {
718  COMPARE_SCALAR_FIELD(typeId);
719  COMPARE_SCALAR_FIELD(typeMod);
720  COMPARE_SCALAR_FIELD(collation);
721  COMPARE_LOCATION_FIELD(location);
722 
723  return true;
724 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSortBy ( const SortBy a,
const SortBy b 
)
static

Definition at line 2404 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2405 {
2406  COMPARE_NODE_FIELD(node);
2407  COMPARE_SCALAR_FIELD(sortby_dir);
2408  COMPARE_SCALAR_FIELD(sortby_nulls);
2409  COMPARE_NODE_FIELD(useOp);
2410  COMPARE_LOCATION_FIELD(location);
2411 
2412  return true;
2413 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSortGroupClause ( const SortGroupClause a,
const SortGroupClause b 
)
static

Definition at line 2658 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2659 {
2660  COMPARE_SCALAR_FIELD(tleSortGroupRef);
2661  COMPARE_SCALAR_FIELD(eqop);
2662  COMPARE_SCALAR_FIELD(sortop);
2663  COMPARE_SCALAR_FIELD(nulls_first);
2664  COMPARE_SCALAR_FIELD(hashable);
2665 
2666  return true;
2667 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSpecialJoinInfo ( const SpecialJoinInfo a,
const SpecialJoinInfo b 
)
static

Definition at line 868 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

869 {
870  COMPARE_BITMAPSET_FIELD(min_lefthand);
871  COMPARE_BITMAPSET_FIELD(min_righthand);
872  COMPARE_BITMAPSET_FIELD(syn_lefthand);
873  COMPARE_BITMAPSET_FIELD(syn_righthand);
874  COMPARE_SCALAR_FIELD(jointype);
875  COMPARE_SCALAR_FIELD(lhs_strict);
876  COMPARE_SCALAR_FIELD(delay_upper_joins);
877  COMPARE_SCALAR_FIELD(semi_can_btree);
878  COMPARE_SCALAR_FIELD(semi_can_hash);
879  COMPARE_NODE_FIELD(semi_operators);
880  COMPARE_NODE_FIELD(semi_rhs_exprs);
881 
882  return true;
883 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSQLValueFunction ( const SQLValueFunction a,
const SQLValueFunction b 
)
static

Definition at line 644 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

645 {
647  COMPARE_SCALAR_FIELD(type);
648  COMPARE_SCALAR_FIELD(typmod);
649  COMPARE_LOCATION_FIELD(location);
650 
651  return true;
652 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSubLink ( const SubLink a,
const SubLink b 
)
static

Definition at line 421 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

422 {
423  COMPARE_SCALAR_FIELD(subLinkType);
424  COMPARE_SCALAR_FIELD(subLinkId);
425  COMPARE_NODE_FIELD(testexpr);
426  COMPARE_NODE_FIELD(operName);
427  COMPARE_NODE_FIELD(subselect);
428  COMPARE_LOCATION_FIELD(location);
429 
430  return true;
431 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalSubPlan ( const SubPlan a,
const SubPlan b 
)
static

Definition at line 434 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

435 {
436  COMPARE_SCALAR_FIELD(subLinkType);
437  COMPARE_NODE_FIELD(testexpr);
438  COMPARE_NODE_FIELD(paramIds);
439  COMPARE_SCALAR_FIELD(plan_id);
440  COMPARE_STRING_FIELD(plan_name);
441  COMPARE_SCALAR_FIELD(firstColType);
442  COMPARE_SCALAR_FIELD(firstColTypmod);
443  COMPARE_SCALAR_FIELD(firstColCollation);
444  COMPARE_SCALAR_FIELD(useHashTable);
445  COMPARE_SCALAR_FIELD(unknownEqFalse);
446  COMPARE_SCALAR_FIELD(parallel_safe);
447  COMPARE_NODE_FIELD(setParam);
448  COMPARE_NODE_FIELD(parParam);
450  COMPARE_SCALAR_FIELD(startup_cost);
451  COMPARE_SCALAR_FIELD(per_call_cost);
452 
453  return true;
454 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalTableFunc ( const TableFunc a,
const TableFunc b 
)
static

Definition at line 120 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

121 {
122  COMPARE_NODE_FIELD(ns_names);
123  COMPARE_NODE_FIELD(ns_uris);
124  COMPARE_NODE_FIELD(docexpr);
125  COMPARE_NODE_FIELD(rowexpr);
126  COMPARE_NODE_FIELD(colnames);
127  COMPARE_NODE_FIELD(coltypes);
128  COMPARE_NODE_FIELD(coltypes);
129  COMPARE_NODE_FIELD(colcollations);
130  COMPARE_NODE_FIELD(colexprs);
131  COMPARE_NODE_FIELD(coldefexprs);
132  COMPARE_BITMAPSET_FIELD(notnulls);
133  COMPARE_SCALAR_FIELD(ordinalitycol);
134  COMPARE_LOCATION_FIELD(location);
135 
136  return true;
137 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalTableLikeClause ( const TableLikeClause a,
const TableLikeClause b 
)
static

Definition at line 1236 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1237 {
1238  COMPARE_NODE_FIELD(relation);
1240 
1241  return true;
1242 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45
static bool _equalTableSampleClause ( const TableSampleClause a,
const TableSampleClause b 
)
static

Definition at line 2636 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2637 {
2638  COMPARE_SCALAR_FIELD(tsmhandler);
2640  COMPARE_NODE_FIELD(repeatable);
2641 
2642  return true;
2643 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52