PostgreSQL Source Code  git master
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 _equalNextValueExpr (const NextValueExpr *a, const NextValueExpr *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 _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 _equalCallStmt (const CallStmt *a, const CallStmt *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 _equalCreateStatsStmt (const CreateStatsStmt *a, const CreateStatsStmt *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 _equalVacuumRelation (const VacuumRelation *a, const VacuumRelation *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 _equalPartitionElem (const PartitionElem *a, const PartitionElem *b)
 
static bool _equalPartitionSpec (const PartitionSpec *a, const PartitionSpec *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

◆ COMPARE_BITMAPSET_FIELD

#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:153

Definition at line 59 of file equalfuncs.c.

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

◆ COMPARE_COERCIONFORM_FIELD

#define COMPARE_COERCIONFORM_FIELD (   fldname)    ((void) 0)

◆ COMPARE_LOCATION_FIELD

◆ COMPARE_NODE_FIELD

#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:2986

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(), _equalCallStmt(), _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(), _equalCreateStatsStmt(), _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(), _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(), _equalVacuumRelation(), _equalVacuumStmt(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

◆ COMPARE_POINTER_FIELD

#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.

◆ COMPARE_SCALAR_FIELD

#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(), _equalAlterFunctionStmt(), _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(), _equalCreateStatsStmt(), _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(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalList(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNextValueExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalPartitionBoundSpec(), _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(), _equalVacuumRelation(), _equalVacuumStmt(), _equalValue(), _equalVar(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

◆ COMPARE_STRING_FIELD

#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(), _equalCreateStatsStmt(), _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().

◆ equalstr

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

Definition at line 73 of file equalfuncs.c.

Function Documentation

◆ _equalA_ArrayExpr()

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

Definition at line 2378 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2379 {
2380  COMPARE_NODE_FIELD(elements);
2381  COMPARE_LOCATION_FIELD(location);
2382 
2383  return true;
2384 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalA_Indirection()

static bool _equalA_Indirection ( const A_Indirection a,
const A_Indirection b 
)
static

Definition at line 2369 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2370 {
2372  COMPARE_NODE_FIELD(indirection);
2373 
2374  return true;
2375 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg

◆ _equalAccessPriv()

static bool _equalAccessPriv ( const AccessPriv a,
const AccessPriv b 
)
static

Definition at line 1147 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1148 {
1149  COMPARE_STRING_FIELD(priv_name);
1150  COMPARE_NODE_FIELD(cols);
1151 
1152  return true;
1153 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAConst()

static bool _equalAConst ( const A_Const a,
const A_Const b 
)
static

Definition at line 2326 of file equalfuncs.c.

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

Referenced by equal().

2327 {
2328  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2329  return false;
2330  COMPARE_LOCATION_FIELD(location);
2331 
2332  return true;
2333 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:2986
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
Value val
Definition: parsenodes.h:289

◆ _equalAExpr()

static bool _equalAExpr ( const A_Expr a,
const A_Expr b 
)
static

Definition at line 2296 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2297 {
2298  COMPARE_SCALAR_FIELD(kind);
2300  COMPARE_NODE_FIELD(lexpr);
2301  COMPARE_NODE_FIELD(rexpr);
2302  COMPARE_LOCATION_FIELD(location);
2303 
2304  return true;
2305 }
#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

◆ _equalAggref()

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

◆ _equalAIndices()

static bool _equalAIndices ( const A_Indices a,
const A_Indices b 
)
static

Definition at line 2359 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2360 {
2361  COMPARE_SCALAR_FIELD(is_slice);
2362  COMPARE_NODE_FIELD(lidx);
2363  COMPARE_NODE_FIELD(uidx);
2364 
2365  return true;
2366 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlias()

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

◆ _equalAlterCollationStmt()

static bool _equalAlterCollationStmt ( const AlterCollationStmt a,
const AlterCollationStmt b 
)
static

Definition at line 1101 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1102 {
1103  COMPARE_NODE_FIELD(collname);
1104 
1105  return true;
1106 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterDatabaseSetStmt()

static bool _equalAlterDatabaseSetStmt ( const AlterDatabaseSetStmt a,
const AlterDatabaseSetStmt b 
)
static

Definition at line 1650 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1651 {
1653  COMPARE_NODE_FIELD(setstmt);
1654 
1655  return true;
1656 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterDatabaseStmt()

static bool _equalAlterDatabaseStmt ( const AlterDatabaseStmt a,
const AlterDatabaseStmt b 
)
static

Definition at line 1641 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1642 {
1645 
1646  return true;
1647 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterDefaultPrivilegesStmt()

static bool _equalAlterDefaultPrivilegesStmt ( const AlterDefaultPrivilegesStmt a,
const AlterDefaultPrivilegesStmt b 
)
static

Definition at line 1169 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1170 {
1173 
1174  return true;
1175 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterDomainStmt()

static bool _equalAlterDomainStmt ( const AlterDomainStmt a,
const AlterDomainStmt b 
)
static

Definition at line 1109 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1110 {
1111  COMPARE_SCALAR_FIELD(subtype);
1112  COMPARE_NODE_FIELD(typeName);
1114  COMPARE_NODE_FIELD(def);
1115  COMPARE_SCALAR_FIELD(behavior);
1116  COMPARE_SCALAR_FIELD(missing_ok);
1117 
1118  return true;
1119 }
#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

◆ _equalAlterEnumStmt()

static bool _equalAlterEnumStmt ( const AlterEnumStmt a,
const AlterEnumStmt b 
)
static

Definition at line 1541 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1542 {
1543  COMPARE_NODE_FIELD(typeName);
1544  COMPARE_STRING_FIELD(oldVal);
1545  COMPARE_STRING_FIELD(newVal);
1546  COMPARE_STRING_FIELD(newValNeighbor);
1547  COMPARE_SCALAR_FIELD(newValIsAfter);
1548  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1549 
1550  return true;
1551 }
#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

◆ _equalAlterEventTrigStmt()

static bool _equalAlterEventTrigStmt ( const AlterEventTrigStmt a,
const AlterEventTrigStmt b 
)
static

Definition at line 2014 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2015 {
2016  COMPARE_STRING_FIELD(trigname);
2017  COMPARE_SCALAR_FIELD(tgenabled);
2018 
2019  return true;
2020 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterExtensionContentsStmt()

static bool _equalAlterExtensionContentsStmt ( const AlterExtensionContentsStmt a,
const AlterExtensionContentsStmt b 
)
static

Definition at line 1849 of file equalfuncs.c.

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

Referenced by equal().

1850 {
1851  COMPARE_STRING_FIELD(extname);
1853  COMPARE_SCALAR_FIELD(objtype);
1854  COMPARE_NODE_FIELD(object);
1855 
1856  return true;
1857 }
#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

◆ _equalAlterExtensionStmt()

static bool _equalAlterExtensionStmt ( const AlterExtensionStmt a,
const AlterExtensionStmt b 
)
static

Definition at line 1840 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1841 {
1842  COMPARE_STRING_FIELD(extname);
1844 
1845  return true;
1846 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterFdwStmt()

static bool _equalAlterFdwStmt ( const AlterFdwStmt a,
const AlterFdwStmt b 
)
static

Definition at line 1870 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1871 {
1872  COMPARE_STRING_FIELD(fdwname);
1873  COMPARE_NODE_FIELD(func_options);
1875 
1876  return true;
1877 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterForeignServerStmt()

static bool _equalAlterForeignServerStmt ( const AlterForeignServerStmt a,
const AlterForeignServerStmt b 
)
static

Definition at line 1893 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1894 {
1895  COMPARE_STRING_FIELD(servername);
1896  COMPARE_STRING_FIELD(version);
1898  COMPARE_SCALAR_FIELD(has_version);
1899 
1900  return true;
1901 }
#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

◆ _equalAlterFunctionStmt()

static bool _equalAlterFunctionStmt ( const AlterFunctionStmt a,
const AlterFunctionStmt b 
)
static

Definition at line 1388 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1389 {
1390  COMPARE_SCALAR_FIELD(objtype);
1391  COMPARE_NODE_FIELD(func);
1392  COMPARE_NODE_FIELD(actions);
1393 
1394  return true;
1395 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlternativeSubPlan()

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

◆ _equalAlterObjectDependsStmt()

static bool _equalAlterObjectDependsStmt ( const AlterObjectDependsStmt a,
const AlterObjectDependsStmt b 
)
static

Definition at line 1421 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1422 {
1423  COMPARE_SCALAR_FIELD(objectType);
1424  COMPARE_NODE_FIELD(relation);
1425  COMPARE_NODE_FIELD(object);
1426  COMPARE_NODE_FIELD(extname);
1427 
1428  return true;
1429 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterObjectSchemaStmt()

static bool _equalAlterObjectSchemaStmt ( const AlterObjectSchemaStmt a,
const AlterObjectSchemaStmt b 
)
static

Definition at line 1432 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1433 {
1434  COMPARE_SCALAR_FIELD(objectType);
1435  COMPARE_NODE_FIELD(relation);
1436  COMPARE_NODE_FIELD(object);
1437  COMPARE_STRING_FIELD(newschema);
1438  COMPARE_SCALAR_FIELD(missing_ok);
1439 
1440  return true;
1441 }
#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

◆ _equalAlterOperatorStmt()

static bool _equalAlterOperatorStmt ( const AlterOperatorStmt a,
const AlterOperatorStmt b 
)
static

Definition at line 1455 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1456 {
1457  COMPARE_NODE_FIELD(opername);
1459 
1460  return true;
1461 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterOpFamilyStmt()

static bool _equalAlterOpFamilyStmt ( const AlterOpFamilyStmt a,
const AlterOpFamilyStmt b 
)
static

Definition at line 1621 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1622 {
1623  COMPARE_NODE_FIELD(opfamilyname);
1624  COMPARE_STRING_FIELD(amname);
1625  COMPARE_SCALAR_FIELD(isDrop);
1626  COMPARE_NODE_FIELD(items);
1627 
1628  return true;
1629 }
#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

◆ _equalAlterOwnerStmt()

static bool _equalAlterOwnerStmt ( const AlterOwnerStmt a,
const AlterOwnerStmt b 
)
static

Definition at line 1444 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1445 {
1446  COMPARE_SCALAR_FIELD(objectType);
1447  COMPARE_NODE_FIELD(relation);
1448  COMPARE_NODE_FIELD(object);
1449  COMPARE_NODE_FIELD(newowner);
1450 
1451  return true;
1452 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterPolicyStmt()

static bool _equalAlterPolicyStmt ( const AlterPolicyStmt a,
const AlterPolicyStmt b 
)
static

Definition at line 2284 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2285 {
2286  COMPARE_STRING_FIELD(policy_name);
2287  COMPARE_NODE_FIELD(table);
2288  COMPARE_NODE_FIELD(roles);
2289  COMPARE_NODE_FIELD(qual);
2290  COMPARE_NODE_FIELD(with_check);
2291 
2292  return true;
2293 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterPublicationStmt()

static bool _equalAlterPublicationStmt ( const AlterPublicationStmt a,
const AlterPublicationStmt b 
)
static

Definition at line 2221 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2223 {
2224  COMPARE_STRING_FIELD(pubname);
2226  COMPARE_NODE_FIELD(tables);
2227  COMPARE_SCALAR_FIELD(for_all_tables);
2228  COMPARE_SCALAR_FIELD(tableAction);
2229 
2230  return true;
2231 }
#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

◆ _equalAlterRoleSetStmt()

static bool _equalAlterRoleSetStmt ( const AlterRoleSetStmt a,
const AlterRoleSetStmt b 
)
static

Definition at line 2056 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2057 {
2058  COMPARE_NODE_FIELD(role);
2059  COMPARE_STRING_FIELD(database);
2060  COMPARE_NODE_FIELD(setstmt);
2061 
2062  return true;
2063 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterRoleStmt()

static bool _equalAlterRoleStmt ( const AlterRoleStmt a,
const AlterRoleStmt b 
)
static

Definition at line 2046 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2047 {
2048  COMPARE_NODE_FIELD(role);
2051 
2052  return true;
2053 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterSeqStmt()

static bool _equalAlterSeqStmt ( const AlterSeqStmt a,
const AlterSeqStmt b 
)
static

Definition at line 1748 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1749 {
1750  COMPARE_NODE_FIELD(sequence);
1752  COMPARE_SCALAR_FIELD(for_identity);
1753  COMPARE_SCALAR_FIELD(missing_ok);
1754 
1755  return true;
1756 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterSubscriptionStmt()

static bool _equalAlterSubscriptionStmt ( const AlterSubscriptionStmt a,
const AlterSubscriptionStmt b 
)
static

Definition at line 2246 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2248 {
2249  COMPARE_SCALAR_FIELD(kind);
2251  COMPARE_STRING_FIELD(conninfo);
2252  COMPARE_NODE_FIELD(publication);
2254 
2255  return true;
2256 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterSystemStmt()

static bool _equalAlterSystemStmt ( const AlterSystemStmt a,
const AlterSystemStmt b 
)
static

Definition at line 1727 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1728 {
1729  COMPARE_NODE_FIELD(setstmt);
1730 
1731  return true;
1732 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterTableCmd()

static bool _equalAlterTableCmd ( const AlterTableCmd a,
const AlterTableCmd b 
)
static

Definition at line 1087 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1088 {
1089  COMPARE_SCALAR_FIELD(subtype);
1091  COMPARE_SCALAR_FIELD(num);
1092  COMPARE_NODE_FIELD(newowner);
1093  COMPARE_NODE_FIELD(def);
1094  COMPARE_SCALAR_FIELD(behavior);
1095  COMPARE_SCALAR_FIELD(missing_ok);
1096 
1097  return true;
1098 }
#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

◆ _equalAlterTableMoveAllStmt()

static bool _equalAlterTableMoveAllStmt ( const AlterTableMoveAllStmt a,
const AlterTableMoveAllStmt b 
)
static

Definition at line 1817 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1819 {
1820  COMPARE_STRING_FIELD(orig_tablespacename);
1821  COMPARE_SCALAR_FIELD(objtype);
1822  COMPARE_NODE_FIELD(roles);
1823  COMPARE_STRING_FIELD(new_tablespacename);
1824  COMPARE_SCALAR_FIELD(nowait);
1825 
1826  return true;
1827 }
#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

◆ _equalAlterTableSpaceOptionsStmt()

static bool _equalAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt a,
const AlterTableSpaceOptionsStmt b 
)
static

Definition at line 1806 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1808 {
1809  COMPARE_STRING_FIELD(tablespacename);
1811  COMPARE_SCALAR_FIELD(isReset);
1812 
1813  return true;
1814 }
#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

◆ _equalAlterTableStmt()

static bool _equalAlterTableStmt ( const AlterTableStmt a,
const AlterTableStmt b 
)
static

Definition at line 1076 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1077 {
1078  COMPARE_NODE_FIELD(relation);
1079  COMPARE_NODE_FIELD(cmds);
1081  COMPARE_SCALAR_FIELD(missing_ok);
1082 
1083  return true;
1084 }
char relkind
Definition: pg_class.h:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterTSConfigurationStmt()

static bool _equalAlterTSConfigurationStmt ( const AlterTSConfigurationStmt a,
const AlterTSConfigurationStmt b 
)
static

Definition at line 2194 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2196 {
2197  COMPARE_SCALAR_FIELD(kind);
2198  COMPARE_NODE_FIELD(cfgname);
2199  COMPARE_NODE_FIELD(tokentype);
2200  COMPARE_NODE_FIELD(dicts);
2201  COMPARE_SCALAR_FIELD(override);
2202  COMPARE_SCALAR_FIELD(replace);
2203  COMPARE_SCALAR_FIELD(missing_ok);
2204 
2205  return true;
2206 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalAlterTSDictionaryStmt()

static bool _equalAlterTSDictionaryStmt ( const AlterTSDictionaryStmt a,
const AlterTSDictionaryStmt b 
)
static

Definition at line 2185 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2186 {
2187  COMPARE_NODE_FIELD(dictname);
2189 
2190  return true;
2191 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalAlterUserMappingStmt()

static bool _equalAlterUserMappingStmt ( const AlterUserMappingStmt a,
const AlterUserMappingStmt b 
)
static

Definition at line 1915 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1916 {
1918  COMPARE_STRING_FIELD(servername);
1920 
1921  return true;
1922 }
#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:93

◆ _equalAppendRelInfo()

static bool _equalAppendRelInfo ( const AppendRelInfo a,
const AppendRelInfo b 
)
static

Definition at line 894 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

895 {
896  COMPARE_SCALAR_FIELD(parent_relid);
897  COMPARE_SCALAR_FIELD(child_relid);
898  COMPARE_SCALAR_FIELD(parent_reltype);
899  COMPARE_SCALAR_FIELD(child_reltype);
900  COMPARE_NODE_FIELD(translated_vars);
901  COMPARE_SCALAR_FIELD(parent_reloid);
902 
903  return true;
904 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalArrayCoerceExpr()

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_NODE_FIELD(elemexpr);
517  COMPARE_SCALAR_FIELD(resulttype);
518  COMPARE_SCALAR_FIELD(resulttypmod);
519  COMPARE_SCALAR_FIELD(resultcollid);
520  COMPARE_COERCIONFORM_FIELD(coerceformat);
521  COMPARE_LOCATION_FIELD(location);
522 
523  return true;
524 }
#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

◆ _equalArrayExpr()

static bool _equalArrayExpr ( const ArrayExpr a,
const ArrayExpr b 
)
static

Definition at line 581 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

582 {
583  COMPARE_SCALAR_FIELD(array_typeid);
584  COMPARE_SCALAR_FIELD(array_collid);
585  COMPARE_SCALAR_FIELD(element_typeid);
586  COMPARE_NODE_FIELD(elements);
587  COMPARE_SCALAR_FIELD(multidims);
588  COMPARE_LOCATION_FIELD(location);
589 
590  return true;
591 }
#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

◆ _equalArrayRef()

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

◆ _equalAStar()

static bool _equalAStar ( const A_Star a,
const A_Star b 
)
static

Definition at line 2353 of file equalfuncs.c.

Referenced by equal().

2354 {
2355  return true;
2356 }

◆ _equalBooleanTest()

static bool _equalBooleanTest ( const BooleanTest a,
const BooleanTest b 
)
static

Definition at line 681 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

682 {
684  COMPARE_SCALAR_FIELD(booltesttype);
685  COMPARE_LOCATION_FIELD(location);
686 
687  return true;
688 }
#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

◆ _equalBoolExpr()

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

◆ _equalCallStmt()

static bool _equalCallStmt ( const CallStmt a,
const CallStmt b 
)
static

Definition at line 1196 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1197 {
1198  COMPARE_NODE_FIELD(funccall);
1199  COMPARE_NODE_FIELD(funcexpr);
1200 
1201  return true;
1202 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCaseExpr()

static bool _equalCaseExpr ( const CaseExpr a,
const CaseExpr b 
)
static

Definition at line 548 of file equalfuncs.c.

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

Referenced by equal().

549 {
550  COMPARE_SCALAR_FIELD(casetype);
551  COMPARE_SCALAR_FIELD(casecollid);
554  COMPARE_NODE_FIELD(defresult);
555  COMPARE_LOCATION_FIELD(location);
556 
557  return true;
558 }
#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

◆ _equalCaseTestExpr()

static bool _equalCaseTestExpr ( const CaseTestExpr a,
const CaseTestExpr b 
)
static

Definition at line 571 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

572 {
573  COMPARE_SCALAR_FIELD(typeId);
574  COMPARE_SCALAR_FIELD(typeMod);
575  COMPARE_SCALAR_FIELD(collation);
576 
577  return true;
578 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCaseWhen()

static bool _equalCaseWhen ( const CaseWhen a,
const CaseWhen b 
)
static

Definition at line 561 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

562 {
563  COMPARE_NODE_FIELD(expr);
564  COMPARE_NODE_FIELD(result);
565  COMPARE_LOCATION_FIELD(location);
566 
567  return true;
568 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalClosePortalStmt()

static bool _equalClosePortalStmt ( const ClosePortalStmt a,
const ClosePortalStmt b 
)
static

Definition at line 1188 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1189 {
1190  COMPARE_STRING_FIELD(portalname);
1191 
1192  return true;
1193 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66

◆ _equalClusterStmt()

static bool _equalClusterStmt ( const ClusterStmt a,
const ClusterStmt b 
)
static

Definition at line 1205 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and verbose.

Referenced by equal().

1206 {
1207  COMPARE_NODE_FIELD(relation);
1208  COMPARE_STRING_FIELD(indexname);
1210 
1211  return true;
1212 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static int verbose
Definition: pg_basebackup.c:88
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCoalesceExpr()

static bool _equalCoalesceExpr ( const CoalesceExpr a,
const CoalesceExpr b 
)
static

Definition at line 619 of file equalfuncs.c.

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

Referenced by equal().

620 {
621  COMPARE_SCALAR_FIELD(coalescetype);
622  COMPARE_SCALAR_FIELD(coalescecollid);
624  COMPARE_LOCATION_FIELD(location);
625 
626  return true;
627 }
#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

◆ _equalCoerceToDomain()

static bool _equalCoerceToDomain ( const CoerceToDomain a,
const CoerceToDomain b 
)
static

Definition at line 691 of file equalfuncs.c.

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

Referenced by equal().

692 {
694  COMPARE_SCALAR_FIELD(resulttype);
695  COMPARE_SCALAR_FIELD(resulttypmod);
696  COMPARE_SCALAR_FIELD(resultcollid);
697  COMPARE_COERCIONFORM_FIELD(coercionformat);
698  COMPARE_LOCATION_FIELD(location);
699 
700  return true;
701 }
#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

◆ _equalCoerceToDomainValue()

static bool _equalCoerceToDomainValue ( const CoerceToDomainValue a,
const CoerceToDomainValue b 
)
static

Definition at line 704 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

705 {
706  COMPARE_SCALAR_FIELD(typeId);
707  COMPARE_SCALAR_FIELD(typeMod);
708  COMPARE_SCALAR_FIELD(collation);
709  COMPARE_LOCATION_FIELD(location);
710 
711  return true;
712 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCoerceViaIO()

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

◆ _equalCollateClause()

static bool _equalCollateClause ( const CollateClause a,
const CollateClause b 
)
static

Definition at line 2433 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2434 {
2436  COMPARE_NODE_FIELD(collname);
2437  COMPARE_LOCATION_FIELD(location);
2438 
2439  return true;
2440 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
void * arg

◆ _equalCollateExpr()

static bool _equalCollateExpr ( const CollateExpr a,
const CollateExpr b 
)
static

Definition at line 538 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

539 {
541  COMPARE_SCALAR_FIELD(collOid);
542  COMPARE_LOCATION_FIELD(location);
543 
544  return true;
545 }
#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

◆ _equalColumnDef()

static bool _equalColumnDef ( const ColumnDef a,
const ColumnDef b 
)
static

Definition at line 2548 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2549 {
2550  COMPARE_STRING_FIELD(colname);
2551  COMPARE_NODE_FIELD(typeName);
2552  COMPARE_SCALAR_FIELD(inhcount);
2553  COMPARE_SCALAR_FIELD(is_local);
2554  COMPARE_SCALAR_FIELD(is_not_null);
2555  COMPARE_SCALAR_FIELD(is_from_type);
2556  COMPARE_SCALAR_FIELD(is_from_parent);
2557  COMPARE_SCALAR_FIELD(storage);
2558  COMPARE_NODE_FIELD(raw_default);
2559  COMPARE_NODE_FIELD(cooked_default);
2560  COMPARE_SCALAR_FIELD(identity);
2561  COMPARE_NODE_FIELD(identitySequence);
2562  COMPARE_NODE_FIELD(collClause);
2563  COMPARE_SCALAR_FIELD(collOid);
2564  COMPARE_NODE_FIELD(constraints);
2565  COMPARE_NODE_FIELD(fdwoptions);
2566  COMPARE_LOCATION_FIELD(location);
2567 
2568  return true;
2569 }
#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

◆ _equalColumnRef()

static bool _equalColumnRef ( const ColumnRef a,
const ColumnRef b 
)
static

Definition at line 2308 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2309 {
2310  COMPARE_NODE_FIELD(fields);
2311  COMPARE_LOCATION_FIELD(location);
2312 
2313  return true;
2314 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCommentStmt()

static bool _equalCommentStmt ( const CommentStmt a,
const CommentStmt b 
)
static

Definition at line 1291 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1292 {
1293  COMPARE_SCALAR_FIELD(objtype);
1294  COMPARE_NODE_FIELD(object);
1295  COMPARE_STRING_FIELD(comment);
1296 
1297  return true;
1298 }
#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

◆ _equalCommonTableExpr()

static bool _equalCommonTableExpr ( const CommonTableExpr a,
const CommonTableExpr b 
)
static

Definition at line 2789 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2790 {
2791  COMPARE_STRING_FIELD(ctename);
2792  COMPARE_NODE_FIELD(aliascolnames);
2793  COMPARE_NODE_FIELD(ctequery);
2794  COMPARE_LOCATION_FIELD(location);
2795  COMPARE_SCALAR_FIELD(cterecursive);
2796  COMPARE_SCALAR_FIELD(cterefcount);
2797  COMPARE_NODE_FIELD(ctecolnames);
2798  COMPARE_NODE_FIELD(ctecoltypes);
2799  COMPARE_NODE_FIELD(ctecoltypmods);
2800  COMPARE_NODE_FIELD(ctecolcollations);
2801 
2802  return true;
2803 }
#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

◆ _equalCompositeTypeStmt()

static bool _equalCompositeTypeStmt ( const CompositeTypeStmt a,
const CompositeTypeStmt b 
)
static

Definition at line 1514 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1515 {
1516  COMPARE_NODE_FIELD(typevar);
1517  COMPARE_NODE_FIELD(coldeflist);
1518 
1519  return true;
1520 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalConst()

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:197
bool constbyval
Definition: primnodes.h:200
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:219
int constlen
Definition: primnodes.h:196
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
bool constisnull
Definition: primnodes.h:198
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalConstraint()

static bool _equalConstraint ( const Constraint a,
const Constraint b 
)
static

Definition at line 2572 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2573 {
2574  COMPARE_SCALAR_FIELD(contype);
2575  COMPARE_STRING_FIELD(conname);
2576  COMPARE_SCALAR_FIELD(deferrable);
2577  COMPARE_SCALAR_FIELD(initdeferred);
2578  COMPARE_LOCATION_FIELD(location);
2579  COMPARE_SCALAR_FIELD(is_no_inherit);
2580  COMPARE_NODE_FIELD(raw_expr);
2581  COMPARE_STRING_FIELD(cooked_expr);
2582  COMPARE_SCALAR_FIELD(generated_when);
2583  COMPARE_NODE_FIELD(keys);
2584  COMPARE_NODE_FIELD(including);
2585  COMPARE_NODE_FIELD(exclusions);
2587  COMPARE_STRING_FIELD(indexname);
2588  COMPARE_STRING_FIELD(indexspace);
2589  COMPARE_STRING_FIELD(access_method);
2590  COMPARE_NODE_FIELD(where_clause);
2591  COMPARE_NODE_FIELD(pktable);
2592  COMPARE_NODE_FIELD(fk_attrs);
2593  COMPARE_NODE_FIELD(pk_attrs);
2594  COMPARE_SCALAR_FIELD(fk_matchtype);
2595  COMPARE_SCALAR_FIELD(fk_upd_action);
2596  COMPARE_SCALAR_FIELD(fk_del_action);
2597  COMPARE_NODE_FIELD(old_conpfeqop);
2598  COMPARE_SCALAR_FIELD(old_pktable_oid);
2599  COMPARE_SCALAR_FIELD(skip_validation);
2600  COMPARE_SCALAR_FIELD(initially_valid);
2601 
2602  return true;
2603 }
#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

◆ _equalConstraintsSetStmt()

static bool _equalConstraintsSetStmt ( const ConstraintsSetStmt a,
const ConstraintsSetStmt b 
)
static

Definition at line 2085 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2086 {
2087  COMPARE_NODE_FIELD(constraints);
2088  COMPARE_SCALAR_FIELD(deferred);
2089 
2090  return true;
2091 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalConvertRowtypeExpr()

static bool _equalConvertRowtypeExpr ( const ConvertRowtypeExpr a,
const ConvertRowtypeExpr b 
)
static

Definition at line 527 of file equalfuncs.c.

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

Referenced by equal().

528 {
530  COMPARE_SCALAR_FIELD(resulttype);
531  COMPARE_COERCIONFORM_FIELD(convertformat);
532  COMPARE_LOCATION_FIELD(location);
533 
534  return true;
535 }
#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

◆ _equalCopyStmt()

static bool _equalCopyStmt ( const CopyStmt a,
const CopyStmt b 
)
static

Definition at line 1215 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1216 {
1217  COMPARE_NODE_FIELD(relation);
1218  COMPARE_NODE_FIELD(query);
1219  COMPARE_NODE_FIELD(attlist);
1220  COMPARE_SCALAR_FIELD(is_from);
1221  COMPARE_SCALAR_FIELD(is_program);
1224 
1225  return true;
1226 }
#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

◆ _equalCreateAmStmt()

static bool _equalCreateAmStmt ( const CreateAmStmt a,
const CreateAmStmt b 
)
static

Definition at line 1972 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1973 {
1974  COMPARE_STRING_FIELD(amname);
1975  COMPARE_NODE_FIELD(handler_name);
1976  COMPARE_SCALAR_FIELD(amtype);
1977 
1978  return true;
1979 }
#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

◆ _equalCreateCastStmt()

static bool _equalCreateCastStmt ( const CreateCastStmt a,
const CreateCastStmt 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(sourcetype);
2131  COMPARE_NODE_FIELD(targettype);
2132  COMPARE_NODE_FIELD(func);
2133  COMPARE_SCALAR_FIELD(context);
2134  COMPARE_SCALAR_FIELD(inout);
2135 
2136  return true;
2137 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCreateConversionStmt()

static bool _equalCreateConversionStmt ( const CreateConversionStmt a,
const CreateConversionStmt b 
)
static

Definition at line 2116 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2117 {
2118  COMPARE_NODE_FIELD(conversion_name);
2119  COMPARE_STRING_FIELD(for_encoding_name);
2120  COMPARE_STRING_FIELD(to_encoding_name);
2121  COMPARE_NODE_FIELD(func_name);
2122  COMPARE_SCALAR_FIELD(def);
2123 
2124  return true;
2125 }
#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

◆ _equalCreatedbStmt()

static bool _equalCreatedbStmt ( const CreatedbStmt a,
const CreatedbStmt b 
)
static

Definition at line 1632 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1633 {
1636 
1637  return true;
1638 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateDomainStmt()

static bool _equalCreateDomainStmt ( const CreateDomainStmt a,
const CreateDomainStmt b 
)
static

Definition at line 1575 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1576 {
1577  COMPARE_NODE_FIELD(domainname);
1578  COMPARE_NODE_FIELD(typeName);
1579  COMPARE_NODE_FIELD(collClause);
1580  COMPARE_NODE_FIELD(constraints);
1581 
1582  return true;
1583 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateEnumStmt()

static bool _equalCreateEnumStmt ( const CreateEnumStmt a,
const CreateEnumStmt b 
)
static

Definition at line 1523 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1524 {
1525  COMPARE_NODE_FIELD(typeName);
1526  COMPARE_NODE_FIELD(vals);
1527 
1528  return true;
1529 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateEventTrigStmt()

static bool _equalCreateEventTrigStmt ( const CreateEventTrigStmt a,
const CreateEventTrigStmt b 
)
static

Definition at line 2003 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2004 {
2005  COMPARE_STRING_FIELD(trigname);
2006  COMPARE_STRING_FIELD(eventname);
2007  COMPARE_NODE_FIELD(whenclause);
2008  COMPARE_NODE_FIELD(funcname);
2009 
2010  return true;
2011 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateExtensionStmt()

static bool _equalCreateExtensionStmt ( const CreateExtensionStmt a,
const CreateExtensionStmt b 
)
static

Definition at line 1830 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1831 {
1832  COMPARE_STRING_FIELD(extname);
1833  COMPARE_SCALAR_FIELD(if_not_exists);
1835 
1836  return true;
1837 }
#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

◆ _equalCreateFdwStmt()

static bool _equalCreateFdwStmt ( const CreateFdwStmt a,
const CreateFdwStmt b 
)
static

Definition at line 1860 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1861 {
1862  COMPARE_STRING_FIELD(fdwname);
1863  COMPARE_NODE_FIELD(func_options);
1865 
1866  return true;
1867 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateForeignServerStmt()

static bool _equalCreateForeignServerStmt ( const CreateForeignServerStmt a,
const CreateForeignServerStmt b 
)
static

Definition at line 1880 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1881 {
1882  COMPARE_STRING_FIELD(servername);
1883  COMPARE_STRING_FIELD(servertype);
1884  COMPARE_STRING_FIELD(version);
1885  COMPARE_STRING_FIELD(fdwname);
1886  COMPARE_SCALAR_FIELD(if_not_exists);
1888 
1889  return true;
1890 }
#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

◆ _equalCreateForeignTableStmt()

static bool _equalCreateForeignTableStmt ( const CreateForeignTableStmt a,
const CreateForeignTableStmt b 
)
static

Definition at line 1935 of file equalfuncs.c.

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

Referenced by equal().

1936 {
1937  if (!_equalCreateStmt(&a->base, &b->base))
1938  return false;
1939 
1940  COMPARE_STRING_FIELD(servername);
1942 
1943  return true;
1944 }
#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:1229

◆ _equalCreateFunctionStmt()

static bool _equalCreateFunctionStmt ( const CreateFunctionStmt a,
const CreateFunctionStmt b 
)
static

Definition at line 1364 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1365 {
1366  COMPARE_SCALAR_FIELD(is_procedure);
1367  COMPARE_SCALAR_FIELD(replace);
1368  COMPARE_NODE_FIELD(funcname);
1369  COMPARE_NODE_FIELD(parameters);
1370  COMPARE_NODE_FIELD(returnType);
1372 
1373  return true;
1374 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCreateOpClassItem()

static bool _equalCreateOpClassItem ( const CreateOpClassItem a,
const CreateOpClassItem b 
)
static

Definition at line 1599 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1600 {
1601  COMPARE_SCALAR_FIELD(itemtype);
1603  COMPARE_SCALAR_FIELD(number);
1604  COMPARE_NODE_FIELD(order_family);
1605  COMPARE_NODE_FIELD(class_args);
1606  COMPARE_NODE_FIELD(storedtype);
1607 
1608  return true;
1609 }
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

◆ _equalCreateOpClassStmt()

static bool _equalCreateOpClassStmt ( const CreateOpClassStmt a,
const CreateOpClassStmt b 
)
static

Definition at line 1586 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1587 {
1588  COMPARE_NODE_FIELD(opclassname);
1589  COMPARE_NODE_FIELD(opfamilyname);
1590  COMPARE_STRING_FIELD(amname);
1591  COMPARE_NODE_FIELD(datatype);
1592  COMPARE_NODE_FIELD(items);
1593  COMPARE_SCALAR_FIELD(isDefault);
1594 
1595  return true;
1596 }
#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

◆ _equalCreateOpFamilyStmt()

static bool _equalCreateOpFamilyStmt ( const CreateOpFamilyStmt a,
const CreateOpFamilyStmt b 
)
static

Definition at line 1612 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1613 {
1614  COMPARE_NODE_FIELD(opfamilyname);
1615  COMPARE_STRING_FIELD(amname);
1616 
1617  return true;
1618 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreatePLangStmt()

static bool _equalCreatePLangStmt ( const CreatePLangStmt a,
const CreatePLangStmt b 
)
static

Definition at line 2023 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2024 {
2025  COMPARE_SCALAR_FIELD(replace);
2026  COMPARE_STRING_FIELD(plname);
2027  COMPARE_NODE_FIELD(plhandler);
2028  COMPARE_NODE_FIELD(plinline);
2029  COMPARE_NODE_FIELD(plvalidator);
2030  COMPARE_SCALAR_FIELD(pltrusted);
2031 
2032  return true;
2033 }
#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

◆ _equalCreatePolicyStmt()

static bool _equalCreatePolicyStmt ( const CreatePolicyStmt a,
const CreatePolicyStmt b 
)
static

Definition at line 2270 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2271 {
2272  COMPARE_STRING_FIELD(policy_name);
2273  COMPARE_NODE_FIELD(table);
2274  COMPARE_STRING_FIELD(cmd_name);
2275  COMPARE_SCALAR_FIELD(permissive);
2276  COMPARE_NODE_FIELD(roles);
2277  COMPARE_NODE_FIELD(qual);
2278  COMPARE_NODE_FIELD(with_check);
2279 
2280  return true;
2281 }
#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

◆ _equalCreatePublicationStmt()

static bool _equalCreatePublicationStmt ( const CreatePublicationStmt a,
const CreatePublicationStmt b 
)
static

Definition at line 2209 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2211 {
2212  COMPARE_STRING_FIELD(pubname);
2214  COMPARE_NODE_FIELD(tables);
2215  COMPARE_SCALAR_FIELD(for_all_tables);
2216 
2217  return true;
2218 }
#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

◆ _equalCreateRangeStmt()

static bool _equalCreateRangeStmt ( const CreateRangeStmt a,
const CreateRangeStmt b 
)
static

Definition at line 1532 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1533 {
1534  COMPARE_NODE_FIELD(typeName);
1535  COMPARE_NODE_FIELD(params);
1536 
1537  return true;
1538 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateRoleStmt()

static bool _equalCreateRoleStmt ( const CreateRoleStmt a,
const CreateRoleStmt b 
)
static

Definition at line 2036 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2037 {
2038  COMPARE_SCALAR_FIELD(stmt_type);
2039  COMPARE_STRING_FIELD(role);
2041 
2042  return true;
2043 }
#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

◆ _equalCreateSchemaStmt()

static bool _equalCreateSchemaStmt ( const CreateSchemaStmt a,
const CreateSchemaStmt b 
)
static

Definition at line 2105 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2106 {
2107  COMPARE_STRING_FIELD(schemaname);
2108  COMPARE_NODE_FIELD(authrole);
2109  COMPARE_NODE_FIELD(schemaElts);
2110  COMPARE_SCALAR_FIELD(if_not_exists);
2111 
2112  return true;
2113 }
#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

◆ _equalCreateSeqStmt()

static bool _equalCreateSeqStmt ( const CreateSeqStmt a,
const CreateSeqStmt b 
)
static

Definition at line 1736 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1737 {
1738  COMPARE_NODE_FIELD(sequence);
1740  COMPARE_SCALAR_FIELD(ownerId);
1741  COMPARE_SCALAR_FIELD(for_identity);
1742  COMPARE_SCALAR_FIELD(if_not_exists);
1743 
1744  return true;
1745 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCreateStatsStmt()

static bool _equalCreateStatsStmt ( const CreateStatsStmt a,
const CreateStatsStmt b 
)
static

Definition at line 1351 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1352 {
1353  COMPARE_NODE_FIELD(defnames);
1354  COMPARE_NODE_FIELD(stat_types);
1355  COMPARE_NODE_FIELD(exprs);
1356  COMPARE_NODE_FIELD(relations);
1357  COMPARE_STRING_FIELD(stxcomment);
1358  COMPARE_SCALAR_FIELD(if_not_exists);
1359 
1360  return true;
1361 }
#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

◆ _equalCreateStmt()

static bool _equalCreateStmt ( const CreateStmt a,
const CreateStmt b 
)
static

Definition at line 1229 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1230 {
1231  COMPARE_NODE_FIELD(relation);
1232  COMPARE_NODE_FIELD(tableElts);
1233  COMPARE_NODE_FIELD(inhRelations);
1234  COMPARE_NODE_FIELD(partbound);
1235  COMPARE_NODE_FIELD(partspec);
1236  COMPARE_NODE_FIELD(ofTypename);
1237  COMPARE_NODE_FIELD(constraints);
1239  COMPARE_SCALAR_FIELD(oncommit);
1240  COMPARE_STRING_FIELD(tablespacename);
1241  COMPARE_SCALAR_FIELD(if_not_exists);
1242 
1243  return true;
1244 }
#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

◆ _equalCreateSubscriptionStmt()

static bool _equalCreateSubscriptionStmt ( const CreateSubscriptionStmt a,
const CreateSubscriptionStmt b 
)
static

Definition at line 2234 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2236 {
2238  COMPARE_STRING_FIELD(conninfo);
2239  COMPARE_NODE_FIELD(publication);
2241 
2242  return true;
2243 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateTableAsStmt()

static bool _equalCreateTableAsStmt ( const CreateTableAsStmt a,
const CreateTableAsStmt b 
)
static

Definition at line 1696 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1697 {
1698  COMPARE_NODE_FIELD(query);
1699  COMPARE_NODE_FIELD(into);
1701  COMPARE_SCALAR_FIELD(is_select_into);
1702  COMPARE_SCALAR_FIELD(if_not_exists);
1703 
1704  return true;
1705 }
char relkind
Definition: pg_class.h:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCreateTableSpaceStmt()

static bool _equalCreateTableSpaceStmt ( const CreateTableSpaceStmt a,
const CreateTableSpaceStmt b 
)
static

Definition at line 1786 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1787 {
1788  COMPARE_STRING_FIELD(tablespacename);
1789  COMPARE_NODE_FIELD(owner);
1790  COMPARE_STRING_FIELD(location);
1792 
1793  return true;
1794 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalCreateTransformStmt()

static bool _equalCreateTransformStmt ( const CreateTransformStmt a,
const CreateTransformStmt b 
)
static

Definition at line 1960 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1961 {
1962  COMPARE_SCALAR_FIELD(replace);
1963  COMPARE_NODE_FIELD(type_name);
1964  COMPARE_STRING_FIELD(lang);
1965  COMPARE_NODE_FIELD(fromsql);
1966  COMPARE_NODE_FIELD(tosql);
1967 
1968  return true;
1969 }
#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

◆ _equalCreateTrigStmt()

static bool _equalCreateTrigStmt ( const CreateTrigStmt a,
const CreateTrigStmt b 
)
static

Definition at line 1982 of file equalfuncs.c.

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

Referenced by equal().

1983 {
1984  COMPARE_STRING_FIELD(trigname);
1985  COMPARE_NODE_FIELD(relation);
1986  COMPARE_NODE_FIELD(funcname);
1988  COMPARE_SCALAR_FIELD(row);
1989  COMPARE_SCALAR_FIELD(timing);
1990  COMPARE_SCALAR_FIELD(events);
1991  COMPARE_NODE_FIELD(columns);
1992  COMPARE_NODE_FIELD(whenClause);
1993  COMPARE_SCALAR_FIELD(isconstraint);
1994  COMPARE_NODE_FIELD(transitionRels);
1995  COMPARE_SCALAR_FIELD(deferrable);
1996  COMPARE_SCALAR_FIELD(initdeferred);
1997  COMPARE_NODE_FIELD(constrrel);
1998 
1999  return true;
2000 }
#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

◆ _equalCreateUserMappingStmt()

static bool _equalCreateUserMappingStmt ( const CreateUserMappingStmt a,
const CreateUserMappingStmt b 
)
static

Definition at line 1904 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1905 {
1907  COMPARE_STRING_FIELD(servername);
1908  COMPARE_SCALAR_FIELD(if_not_exists);
1910 
1911  return true;
1912 }
#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:93
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalCurrentOfExpr()

static bool _equalCurrentOfExpr ( const CurrentOfExpr a,
const CurrentOfExpr b 
)
static

Definition at line 726 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

727 {
728  COMPARE_SCALAR_FIELD(cvarno);
729  COMPARE_STRING_FIELD(cursor_name);
730  COMPARE_SCALAR_FIELD(cursor_param);
731 
732  return true;
733 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDeallocateStmt()

static bool _equalDeallocateStmt ( const DeallocateStmt a,
const DeallocateStmt b 
)
static

Definition at line 2159 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2160 {
2162 
2163  return true;
2164 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
const char * name
Definition: encode.c:521

◆ _equalDeclareCursorStmt()

static bool _equalDeclareCursorStmt ( const DeclareCursorStmt a,
const DeclareCursorStmt b 
)
static

Definition at line 1178 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1179 {
1180  COMPARE_STRING_FIELD(portalname);
1182  COMPARE_NODE_FIELD(query);
1183 
1184  return true;
1185 }
#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

◆ _equalDefElem()

static bool _equalDefElem ( const DefElem a,
const DefElem b 
)
static

Definition at line 2606 of file equalfuncs.c.

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

Referenced by equal().

2607 {
2608  COMPARE_STRING_FIELD(defnamespace);
2609  COMPARE_STRING_FIELD(defname);
2611  COMPARE_SCALAR_FIELD(defaction);
2612  COMPARE_LOCATION_FIELD(location);
2613 
2614  return true;
2615 }
#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

◆ _equalDefineStmt()

static bool _equalDefineStmt ( const DefineStmt a,
const DefineStmt b 
)
static

Definition at line 1256 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1257 {
1258  COMPARE_SCALAR_FIELD(kind);
1259  COMPARE_SCALAR_FIELD(oldstyle);
1260  COMPARE_NODE_FIELD(defnames);
1262  COMPARE_NODE_FIELD(definition);
1263  COMPARE_SCALAR_FIELD(if_not_exists);
1264 
1265  return true;
1266 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDeleteStmt()

static bool _equalDeleteStmt ( const DeleteStmt a,
const DeleteStmt b 
)
static

Definition at line 1011 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1012 {
1013  COMPARE_NODE_FIELD(relation);
1014  COMPARE_NODE_FIELD(usingClause);
1015  COMPARE_NODE_FIELD(whereClause);
1016  COMPARE_NODE_FIELD(returningList);
1017  COMPARE_NODE_FIELD(withClause);
1018 
1019  return true;
1020 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalDiscardStmt()

static bool _equalDiscardStmt ( const DiscardStmt a,
const DiscardStmt b 
)
static

Definition at line 1778 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1779 {
1780  COMPARE_SCALAR_FIELD(target);
1781 
1782  return true;
1783 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDistinctExpr()

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:498
#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

◆ _equalDoStmt()

static bool _equalDoStmt ( const DoStmt a,
const DoStmt b 
)
static

Definition at line 1398 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1399 {
1401 
1402  return true;
1403 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalDropdbStmt()

static bool _equalDropdbStmt ( const DropdbStmt a,
const DropdbStmt b 
)
static

Definition at line 1659 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1660 {
1662  COMPARE_SCALAR_FIELD(missing_ok);
1663 
1664  return true;
1665 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char * dbname
Definition: streamutil.c:51
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropOwnedStmt()

static bool _equalDropOwnedStmt ( const DropOwnedStmt a,
const DropOwnedStmt b 
)
static

Definition at line 2167 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2168 {
2169  COMPARE_NODE_FIELD(roles);
2170  COMPARE_SCALAR_FIELD(behavior);
2171 
2172  return true;
2173 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropRoleStmt()

static bool _equalDropRoleStmt ( const DropRoleStmt a,
const DropRoleStmt b 
)
static

Definition at line 2066 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2067 {
2068  COMPARE_NODE_FIELD(roles);
2069  COMPARE_SCALAR_FIELD(missing_ok);
2070 
2071  return true;
2072 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropStmt()

static bool _equalDropStmt ( const DropStmt a,
const DropStmt b 
)
static

Definition at line 1269 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1270 {
1271  COMPARE_NODE_FIELD(objects);
1272  COMPARE_SCALAR_FIELD(removeType);
1273  COMPARE_SCALAR_FIELD(behavior);
1274  COMPARE_SCALAR_FIELD(missing_ok);
1275  COMPARE_SCALAR_FIELD(concurrent);
1276 
1277  return true;
1278 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropSubscriptionStmt()

static bool _equalDropSubscriptionStmt ( const DropSubscriptionStmt a,
const DropSubscriptionStmt b 
)
static

Definition at line 2259 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2261 {
2263  COMPARE_SCALAR_FIELD(missing_ok);
2264  COMPARE_SCALAR_FIELD(behavior);
2265 
2266  return true;
2267 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
NameData subname
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropTableSpaceStmt()

static bool _equalDropTableSpaceStmt ( const DropTableSpaceStmt a,
const DropTableSpaceStmt b 
)
static

Definition at line 1797 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1798 {
1799  COMPARE_STRING_FIELD(tablespacename);
1800  COMPARE_SCALAR_FIELD(missing_ok);
1801 
1802  return true;
1803 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalDropUserMappingStmt()

static bool _equalDropUserMappingStmt ( const DropUserMappingStmt a,
const DropUserMappingStmt b 
)
static

Definition at line 1925 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1926 {
1928  COMPARE_STRING_FIELD(servername);
1929  COMPARE_SCALAR_FIELD(missing_ok);
1930 
1931  return true;
1932 }
#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:93
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalExecuteStmt()

static bool _equalExecuteStmt ( const ExecuteStmt a,
const ExecuteStmt b 
)
static

Definition at line 2150 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2151 {
2153  COMPARE_NODE_FIELD(params);
2154 
2155  return true;
2156 }
#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

◆ _equalExplainStmt()

static bool _equalExplainStmt ( const ExplainStmt a,
const ExplainStmt b 
)
static

Definition at line 1687 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1688 {
1689  COMPARE_NODE_FIELD(query);
1691 
1692  return true;
1693 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalExtensibleNode()

static bool _equalExtensibleNode ( const ExtensibleNode a,
const ExtensibleNode b 
)
static

Definition at line 923 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalFetchStmt()

static bool _equalFetchStmt ( const FetchStmt a,
const FetchStmt b 
)
static

Definition at line 1312 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1313 {
1314  COMPARE_SCALAR_FIELD(direction);
1315  COMPARE_SCALAR_FIELD(howMany);
1316  COMPARE_STRING_FIELD(portalname);
1317  COMPARE_SCALAR_FIELD(ismove);
1318 
1319  return true;
1320 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalFieldSelect()

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

◆ _equalFieldStore()

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

◆ _equalFromExpr()

static bool _equalFromExpr ( const FromExpr a,
const FromExpr b 
)
static

Definition at line 792 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

793 {
794  COMPARE_NODE_FIELD(fromlist);
795  COMPARE_NODE_FIELD(quals);
796 
797  return true;
798 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalFuncCall()

static bool _equalFuncCall ( const FuncCall a,
const FuncCall b 
)
static

Definition at line 2336 of file equalfuncs.c.

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

Referenced by equal().

2337 {
2338  COMPARE_NODE_FIELD(funcname);
2340  COMPARE_NODE_FIELD(agg_order);
2341  COMPARE_NODE_FIELD(agg_filter);
2342  COMPARE_SCALAR_FIELD(agg_within_group);
2343  COMPARE_SCALAR_FIELD(agg_star);
2344  COMPARE_SCALAR_FIELD(agg_distinct);
2345  COMPARE_SCALAR_FIELD(func_variadic);
2346  COMPARE_NODE_FIELD(over);
2347  COMPARE_LOCATION_FIELD(location);
2348 
2349  return true;
2350 }
#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

◆ _equalFuncExpr()

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

◆ _equalFunctionParameter()

static bool _equalFunctionParameter ( const FunctionParameter a,
const FunctionParameter b 
)
static

Definition at line 1377 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1378 {
1380  COMPARE_NODE_FIELD(argType);
1381  COMPARE_SCALAR_FIELD(mode);
1382  COMPARE_NODE_FIELD(defexpr);
1383 
1384  return true;
1385 }
#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

◆ _equalGrantRoleStmt()

static bool _equalGrantRoleStmt ( const GrantRoleStmt a,
const GrantRoleStmt b 
)
static

Definition at line 1156 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and grantor.

Referenced by equal().

1157 {
1158  COMPARE_NODE_FIELD(granted_roles);
1159  COMPARE_NODE_FIELD(grantee_roles);
1160  COMPARE_SCALAR_FIELD(is_grant);
1161  COMPARE_SCALAR_FIELD(admin_opt);
1163  COMPARE_SCALAR_FIELD(behavior);
1164 
1165  return true;
1166 }
Oid grantor
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalGrantStmt()

static bool _equalGrantStmt ( const GrantStmt a,
const GrantStmt b 
)
static

Definition at line 1122 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1123 {
1124  COMPARE_SCALAR_FIELD(is_grant);
1125  COMPARE_SCALAR_FIELD(targtype);
1126  COMPARE_SCALAR_FIELD(objtype);
1127  COMPARE_NODE_FIELD(objects);
1128  COMPARE_NODE_FIELD(privileges);
1129  COMPARE_NODE_FIELD(grantees);
1130  COMPARE_SCALAR_FIELD(grant_option);
1131  COMPARE_SCALAR_FIELD(behavior);
1132 
1133  return true;
1134 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalGroupingFunc()

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

◆ _equalGroupingSet()

static bool _equalGroupingSet ( const GroupingSet a,
const GroupingSet b 
)
static

Definition at line 2714 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2715 {
2716  COMPARE_SCALAR_FIELD(kind);
2717  COMPARE_NODE_FIELD(content);
2718  COMPARE_LOCATION_FIELD(location);
2719 
2720  return true;
2721 }
#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

◆ _equalImportForeignSchemaStmt()

static bool _equalImportForeignSchemaStmt ( const ImportForeignSchemaStmt a,
const ImportForeignSchemaStmt b 
)
static

Definition at line 1947 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1948 {
1949  COMPARE_STRING_FIELD(server_name);
1950  COMPARE_STRING_FIELD(remote_schema);
1951  COMPARE_STRING_FIELD(local_schema);
1952  COMPARE_SCALAR_FIELD(list_type);
1953  COMPARE_NODE_FIELD(table_list);
1955 
1956  return true;
1957 }
#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

◆ _equalIndexElem()

static bool _equalIndexElem ( const IndexElem a,
const IndexElem b 
)
static

Definition at line 2534 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2535 {
2537  COMPARE_NODE_FIELD(expr);
2538  COMPARE_STRING_FIELD(indexcolname);
2539  COMPARE_NODE_FIELD(collation);
2540  COMPARE_NODE_FIELD(opclass);
2541  COMPARE_SCALAR_FIELD(ordering);
2542  COMPARE_SCALAR_FIELD(nulls_ordering);
2543 
2544  return true;
2545 }
#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

◆ _equalIndexStmt()

static bool _equalIndexStmt ( const IndexStmt a,
const IndexStmt b 
)
static

Definition at line 1323 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1324 {
1325  COMPARE_STRING_FIELD(idxname);
1326  COMPARE_NODE_FIELD(relation);
1327  COMPARE_SCALAR_FIELD(relationId);
1328  COMPARE_STRING_FIELD(accessMethod);
1329  COMPARE_STRING_FIELD(tableSpace);
1330  COMPARE_NODE_FIELD(indexParams);
1331  COMPARE_NODE_FIELD(indexIncludingParams);
1333  COMPARE_NODE_FIELD(whereClause);
1334  COMPARE_NODE_FIELD(excludeOpNames);
1335  COMPARE_STRING_FIELD(idxcomment);
1336  COMPARE_SCALAR_FIELD(indexOid);
1337  COMPARE_SCALAR_FIELD(oldNode);
1338  COMPARE_SCALAR_FIELD(unique);
1339  COMPARE_SCALAR_FIELD(primary);
1340  COMPARE_SCALAR_FIELD(isconstraint);
1341  COMPARE_SCALAR_FIELD(deferrable);
1342  COMPARE_SCALAR_FIELD(initdeferred);
1343  COMPARE_SCALAR_FIELD(transformed);
1344  COMPARE_SCALAR_FIELD(concurrent);
1345  COMPARE_SCALAR_FIELD(if_not_exists);
1346 
1347  return true;
1348 }
#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

◆ _equalInferClause()

static bool _equalInferClause ( const InferClause a,
const InferClause b 
)
static

Definition at line 2766 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2767 {
2768  COMPARE_NODE_FIELD(indexElems);
2769  COMPARE_NODE_FIELD(whereClause);
2770  COMPARE_STRING_FIELD(conname);
2771  COMPARE_LOCATION_FIELD(location);
2772 
2773  return true;
2774 }
#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

◆ _equalInferenceElem()

static bool _equalInferenceElem ( const InferenceElem a,
const InferenceElem b 
)
static

Definition at line 745 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

746 {
747  COMPARE_NODE_FIELD(expr);
748  COMPARE_SCALAR_FIELD(infercollid);
749  COMPARE_SCALAR_FIELD(inferopclass);
750 
751  return true;
752 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalInsertStmt()

static bool _equalInsertStmt ( const InsertStmt a,
const InsertStmt b 
)
static

Definition at line 997 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_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  COMPARE_SCALAR_FIELD(override);
1006 
1007  return true;
1008 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalIntoClause()

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

◆ _equalJoinExpr()

static bool _equalJoinExpr ( const JoinExpr a,
const JoinExpr b 
)
static

Definition at line 777 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

778 {
779  COMPARE_SCALAR_FIELD(jointype);
780  COMPARE_SCALAR_FIELD(isNatural);
781  COMPARE_NODE_FIELD(larg);
782  COMPARE_NODE_FIELD(rarg);
783  COMPARE_NODE_FIELD(usingClause);
784  COMPARE_NODE_FIELD(quals);
785  COMPARE_NODE_FIELD(alias);
786  COMPARE_SCALAR_FIELD(rtindex);
787 
788  return true;
789 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalList()

static bool _equalList ( const List a,
const List b 
)
static

Definition at line 2897 of file equalfuncs.c.

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

Referenced by equal().

2898 {
2899  const ListCell *item_a;
2900  const ListCell *item_b;
2901 
2902  /*
2903  * Try to reject by simple scalar checks before grovelling through all the
2904  * list elements...
2905  */
2908 
2909  /*
2910  * We place the switch outside the loop for the sake of efficiency; this
2911  * may not be worth doing...
2912  */
2913  switch (a->type)
2914  {
2915  case T_List:
2916  forboth(item_a, a, item_b, b)
2917  {
2918  if (!equal(lfirst(item_a), lfirst(item_b)))
2919  return false;
2920  }
2921  break;
2922  case T_IntList:
2923  forboth(item_a, a, item_b, b)
2924  {
2925  if (lfirst_int(item_a) != lfirst_int(item_b))
2926  return false;
2927  }
2928  break;
2929  case T_OidList:
2930  forboth(item_a, a, item_b, b)
2931  {
2932  if (lfirst_oid(item_a) != lfirst_oid(item_b))
2933  return false;
2934  }
2935  break;
2936  default:
2937  elog(ERROR, "unrecognized list node type: %d",
2938  (int) a->type);
2939  return false; /* keep compiler quiet */
2940  }
2941 
2942  /*
2943  * If we got here, we should have run out of elements of both lists
2944  */
2945  Assert(item_a == NULL);
2946  Assert(item_b == NULL);
2947 
2948  return true;
2949 }
int length(const List *list)
Definition: list.c:1333
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:180
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:2986
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:107
Definition: nodes.h:296
#define Assert(condition)
Definition: c.h:699
#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

◆ _equalListenStmt()

static bool _equalListenStmt ( const ListenStmt a,
const ListenStmt b 
)
static

Definition at line 1487 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1488 {
1489  COMPARE_STRING_FIELD(conditionname);
1490 
1491  return true;
1492 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66

◆ _equalLoadStmt()

static bool _equalLoadStmt ( const LoadStmt a,
const LoadStmt b 
)
static

Definition at line 1567 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1568 {
1570 
1571  return true;
1572 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static char * filename
Definition: pg_dumpall.c:87

◆ _equalLockingClause()

static bool _equalLockingClause ( const LockingClause a,
const LockingClause b 
)
static

Definition at line 2618 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2619 {
2620  COMPARE_NODE_FIELD(lockedRels);
2621  COMPARE_SCALAR_FIELD(strength);
2622  COMPARE_SCALAR_FIELD(waitPolicy);
2623 
2624  return true;
2625 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalLockStmt()

static bool _equalLockStmt ( const LockStmt a,
const LockStmt b 
)
static

Definition at line 2075 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2076 {
2077  COMPARE_NODE_FIELD(relations);
2078  COMPARE_SCALAR_FIELD(mode);
2079  COMPARE_SCALAR_FIELD(nowait);
2080 
2081  return true;
2082 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalMinMaxExpr()

static bool _equalMinMaxExpr ( const MinMaxExpr a,
const MinMaxExpr b 
)
static

Definition at line 630 of file equalfuncs.c.

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

Referenced by equal().

631 {
632  COMPARE_SCALAR_FIELD(minmaxtype);
633  COMPARE_SCALAR_FIELD(minmaxcollid);
634  COMPARE_SCALAR_FIELD(inputcollid);
637  COMPARE_LOCATION_FIELD(location);
638 
639  return true;
640 }
#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

◆ _equalMultiAssignRef()

static bool _equalMultiAssignRef ( const MultiAssignRef a,
const MultiAssignRef b 
)
static

Definition at line 2398 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2399 {
2400  COMPARE_NODE_FIELD(source);
2401  COMPARE_SCALAR_FIELD(colno);
2402  COMPARE_SCALAR_FIELD(ncolumns);
2403 
2404  return true;
2405 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalNamedArgExpr()

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

◆ _equalNextValueExpr()

static bool _equalNextValueExpr ( const NextValueExpr a,
const NextValueExpr b 
)
static

Definition at line 736 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

737 {
738  COMPARE_SCALAR_FIELD(seqid);
739  COMPARE_SCALAR_FIELD(typeId);
740 
741  return true;
742 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalNotifyStmt()

static bool _equalNotifyStmt ( const NotifyStmt a,
const NotifyStmt b 
)
static

Definition at line 1478 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1479 {
1480  COMPARE_STRING_FIELD(conditionname);
1481  COMPARE_STRING_FIELD(payload);
1482 
1483  return true;
1484 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66

◆ _equalNullIfExpr()

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:498
#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

◆ _equalNullTest()

static bool _equalNullTest ( const NullTest a,
const NullTest b 
)
static

Definition at line 670 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

671 {
673  COMPARE_SCALAR_FIELD(nulltesttype);
674  COMPARE_SCALAR_FIELD(argisrow);
675  COMPARE_LOCATION_FIELD(location);
676 
677  return true;
678 }
#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

◆ _equalObjectWithArgs()

static bool _equalObjectWithArgs ( const ObjectWithArgs a,
const ObjectWithArgs b 
)
static

Definition at line 1137 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1138 {
1139  COMPARE_NODE_FIELD(objname);
1140  COMPARE_NODE_FIELD(objargs);
1141  COMPARE_SCALAR_FIELD(args_unspecified);
1142 
1143  return true;
1144 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalOnConflictClause()

static bool _equalOnConflictClause ( const OnConflictClause a,
const OnConflictClause b 
)
static

Definition at line 2777 of file equalfuncs.c.

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

Referenced by equal().

2778 {
2780  COMPARE_NODE_FIELD(infer);
2781  COMPARE_NODE_FIELD(targetList);
2782  COMPARE_NODE_FIELD(whereClause);
2783  COMPARE_LOCATION_FIELD(location);
2784 
2785  return true;
2786 }
#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

◆ _equalOnConflictExpr()

static bool _equalOnConflictExpr ( const OnConflictExpr a,
const OnConflictExpr b 
)
static

Definition at line 801 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

802 {
804  COMPARE_NODE_FIELD(arbiterElems);
805  COMPARE_NODE_FIELD(arbiterWhere);
806  COMPARE_SCALAR_FIELD(constraint);
807  COMPARE_NODE_FIELD(onConflictSet);
808  COMPARE_NODE_FIELD(onConflictWhere);
809  COMPARE_SCALAR_FIELD(exclRelIndex);
810  COMPARE_NODE_FIELD(exclRelTlist);
811 
812  return true;
813 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalOpExpr()

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:498
#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

◆ _equalParam()

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

◆ _equalParamRef()

static bool _equalParamRef ( const ParamRef a,
const ParamRef b 
)
static

Definition at line 2317 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2318 {
2319  COMPARE_SCALAR_FIELD(number);
2320  COMPARE_LOCATION_FIELD(location);
2321 
2322  return true;
2323 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalPartitionBoundSpec()

static bool _equalPartitionBoundSpec ( const PartitionBoundSpec a,
const PartitionBoundSpec b 
)
static

Definition at line 2859 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2860 {
2861  COMPARE_SCALAR_FIELD(strategy);
2862  COMPARE_SCALAR_FIELD(is_default);
2863  COMPARE_SCALAR_FIELD(modulus);
2864  COMPARE_SCALAR_FIELD(remainder);
2865  COMPARE_NODE_FIELD(listdatums);
2866  COMPARE_NODE_FIELD(lowerdatums);
2867  COMPARE_NODE_FIELD(upperdatums);
2868  COMPARE_LOCATION_FIELD(location);
2869 
2870  return true;
2871 }
#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

◆ _equalPartitionCmd()

static bool _equalPartitionCmd ( const PartitionCmd a,
const PartitionCmd b 
)
static

Definition at line 2884 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2885 {
2887  COMPARE_NODE_FIELD(bound);
2888 
2889  return true;
2890 }
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalPartitionElem()

static bool _equalPartitionElem ( const PartitionElem a,
const PartitionElem b 
)
static

Definition at line 2837 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2838 {
2840  COMPARE_NODE_FIELD(expr);
2841  COMPARE_NODE_FIELD(collation);
2842  COMPARE_NODE_FIELD(opclass);
2843  COMPARE_LOCATION_FIELD(location);
2844 
2845  return true;
2846 }
#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

◆ _equalPartitionRangeDatum()

static bool _equalPartitionRangeDatum ( const PartitionRangeDatum a,
const PartitionRangeDatum b 
)
static

Definition at line 2874 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2875 {
2876  COMPARE_SCALAR_FIELD(kind);
2878  COMPARE_LOCATION_FIELD(location);
2879 
2880  return true;
2881 }
static struct @131 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

◆ _equalPartitionSpec()

static bool _equalPartitionSpec ( const PartitionSpec a,
const PartitionSpec b 
)
static

Definition at line 2849 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2850 {
2851  COMPARE_STRING_FIELD(strategy);
2852  COMPARE_NODE_FIELD(partParams);
2853  COMPARE_LOCATION_FIELD(location);
2854 
2855  return true;
2856 }
#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

◆ _equalPathKey()

static bool _equalPathKey ( const PathKey a,
const PathKey b 
)
static

Definition at line 820 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

821 {
822  /* We assume pointer equality is sufficient to compare the eclasses */
823  COMPARE_SCALAR_FIELD(pk_eclass);
824  COMPARE_SCALAR_FIELD(pk_opfamily);
825  COMPARE_SCALAR_FIELD(pk_strategy);
826  COMPARE_SCALAR_FIELD(pk_nulls_first);
827 
828  return true;
829 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalPlaceHolderInfo()

static bool _equalPlaceHolderInfo ( const PlaceHolderInfo a,
const PlaceHolderInfo b 
)
static

Definition at line 907 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

908 {
909  COMPARE_SCALAR_FIELD(phid);
910  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
911  COMPARE_BITMAPSET_FIELD(ph_eval_at);
912  COMPARE_BITMAPSET_FIELD(ph_lateral);
913  COMPARE_BITMAPSET_FIELD(ph_needed);
914  COMPARE_SCALAR_FIELD(ph_width);
915 
916  return true;
917 }
#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

◆ _equalPlaceHolderVar()

static bool _equalPlaceHolderVar ( const PlaceHolderVar a,
const PlaceHolderVar b 
)
static

Definition at line 851 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPrepareStmt()

static bool _equalPrepareStmt ( const PrepareStmt a,
const PrepareStmt b 
)
static

Definition at line 2140 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2141 {
2143  COMPARE_NODE_FIELD(argtypes);
2144  COMPARE_NODE_FIELD(query);
2145 
2146  return true;
2147 }
#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

◆ _equalQuery()

static bool _equalQuery ( const Query a,
const Query b 
)
static

Definition at line 944 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

945 {
946  COMPARE_SCALAR_FIELD(commandType);
947  COMPARE_SCALAR_FIELD(querySource);
948  /* we intentionally ignore queryId, since it might not be set */
949  COMPARE_SCALAR_FIELD(canSetTag);
950  COMPARE_NODE_FIELD(utilityStmt);
951  COMPARE_SCALAR_FIELD(resultRelation);
952  COMPARE_SCALAR_FIELD(hasAggs);
953  COMPARE_SCALAR_FIELD(hasWindowFuncs);
954  COMPARE_SCALAR_FIELD(hasTargetSRFs);
955  COMPARE_SCALAR_FIELD(hasSubLinks);
956  COMPARE_SCALAR_FIELD(hasDistinctOn);
957  COMPARE_SCALAR_FIELD(hasRecursive);
958  COMPARE_SCALAR_FIELD(hasModifyingCTE);
959  COMPARE_SCALAR_FIELD(hasForUpdate);
960  COMPARE_SCALAR_FIELD(hasRowSecurity);
961  COMPARE_NODE_FIELD(cteList);
962  COMPARE_NODE_FIELD(rtable);
963  COMPARE_NODE_FIELD(jointree);
964  COMPARE_NODE_FIELD(targetList);
965  COMPARE_SCALAR_FIELD(override);
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

◆ _equalRangeFunction()

static bool _equalRangeFunction ( const RangeFunction a,
const RangeFunction b 
)
static

Definition at line 2480 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2481 {
2482  COMPARE_SCALAR_FIELD(lateral);
2483  COMPARE_SCALAR_FIELD(ordinality);
2484  COMPARE_SCALAR_FIELD(is_rowsfrom);
2486  COMPARE_NODE_FIELD(alias);
2487  COMPARE_NODE_FIELD(coldeflist);
2488 
2489  return true;
2490 }
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

◆ _equalRangeSubselect()

static bool _equalRangeSubselect ( const RangeSubselect a,
const RangeSubselect b 
)
static

Definition at line 2470 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2471 {
2472  COMPARE_SCALAR_FIELD(lateral);
2473  COMPARE_NODE_FIELD(subquery);
2474  COMPARE_NODE_FIELD(alias);
2475 
2476  return true;
2477 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalRangeTableFunc()

static bool _equalRangeTableFunc ( const RangeTableFunc a,
const RangeTableFunc b 
)
static

Definition at line 2505 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2506 {
2507  COMPARE_SCALAR_FIELD(lateral);
2508  COMPARE_NODE_FIELD(docexpr);
2509  COMPARE_NODE_FIELD(rowexpr);
2510  COMPARE_NODE_FIELD(namespaces);
2511  COMPARE_NODE_FIELD(columns);
2512  COMPARE_NODE_FIELD(alias);
2513  COMPARE_LOCATION_FIELD(location);
2514 
2515  return true;
2516 }
#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

◆ _equalRangeTableFuncCol()

static bool _equalRangeTableFuncCol ( const RangeTableFuncCol a,
const RangeTableFuncCol b 
)
static

Definition at line 2519 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2520 {
2521  COMPARE_STRING_FIELD(colname);
2522  COMPARE_NODE_FIELD(typeName);
2523  COMPARE_SCALAR_FIELD(for_ordinality);
2524  COMPARE_SCALAR_FIELD(is_not_null);
2525  COMPARE_NODE_FIELD(colexpr);
2526  COMPARE_NODE_FIELD(coldefexpr);
2527  COMPARE_LOCATION_FIELD(location);
2528 
2529  return true;
2530 }
#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

◆ _equalRangeTableSample()

static bool _equalRangeTableSample ( const RangeTableSample a,
const RangeTableSample b 
)
static

Definition at line 2493 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2494 {
2495  COMPARE_NODE_FIELD(relation);
2496  COMPARE_NODE_FIELD(method);
2498  COMPARE_NODE_FIELD(repeatable);
2499  COMPARE_LOCATION_FIELD(location);
2500 
2501  return true;
2502 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalRangeTblEntry()

static bool _equalRangeTblEntry ( const RangeTblEntry a,
const RangeTblEntry b 
)
static

Definition at line 2628 of file equalfuncs.c.

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

Referenced by equal().

2629 {
2630  COMPARE_SCALAR_FIELD(rtekind);
2631  COMPARE_SCALAR_FIELD(relid);
2633  COMPARE_NODE_FIELD(tablesample);
2634  COMPARE_NODE_FIELD(subquery);
2635  COMPARE_SCALAR_FIELD(security_barrier);
2636  COMPARE_SCALAR_FIELD(jointype);
2637  COMPARE_NODE_FIELD(joinaliasvars);
2639  COMPARE_SCALAR_FIELD(funcordinality);
2640  COMPARE_NODE_FIELD(tablefunc);
2641  COMPARE_NODE_FIELD(values_lists);
2642  COMPARE_STRING_FIELD(ctename);
2643  COMPARE_SCALAR_FIELD(ctelevelsup);
2644  COMPARE_SCALAR_FIELD(self_reference);
2645  COMPARE_NODE_FIELD(coltypes);
2646  COMPARE_NODE_FIELD(coltypmods);
2647  COMPARE_NODE_FIELD(colcollations);
2648  COMPARE_STRING_FIELD(enrname);
2649  COMPARE_SCALAR_FIELD(enrtuples);
2650  COMPARE_NODE_FIELD(alias);
2651  COMPARE_NODE_FIELD(eref);
2652  COMPARE_SCALAR_FIELD(lateral);
2653  COMPARE_SCALAR_FIELD(inh);
2654  COMPARE_SCALAR_FIELD(inFromCl);
2655  COMPARE_SCALAR_FIELD(requiredPerms);
2656  COMPARE_SCALAR_FIELD(checkAsUser);
2657  COMPARE_BITMAPSET_FIELD(selectedCols);
2658  COMPARE_BITMAPSET_FIELD(insertedCols);
2659  COMPARE_BITMAPSET_FIELD(updatedCols);
2660  COMPARE_NODE_FIELD(securityQuals);
2661 
2662  return true;
2663 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:59
char relkind
Definition: pg_class.h:51
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

◆ _equalRangeTblFunction()

static bool _equalRangeTblFunction ( const RangeTblFunction a,
const RangeTblFunction b 
)
static

Definition at line 2666 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2667 {
2668  COMPARE_NODE_FIELD(funcexpr);
2669  COMPARE_SCALAR_FIELD(funccolcount);
2670  COMPARE_NODE_FIELD(funccolnames);
2671  COMPARE_NODE_FIELD(funccoltypes);
2672  COMPARE_NODE_FIELD(funccoltypmods);
2673  COMPARE_NODE_FIELD(funccolcollations);
2674  COMPARE_BITMAPSET_FIELD(funcparams);
2675 
2676  return true;
2677 }
#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

◆ _equalRangeTblRef()

static bool _equalRangeTblRef ( const RangeTblRef a,
const RangeTblRef b 
)
static

Definition at line 769 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

770 {
771  COMPARE_SCALAR_FIELD(rtindex);
772 
773  return true;
774 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalRangeVar()

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, COMPARE_STRING_FIELD, and relpersistence.

Referenced by equal().

107 {
108  COMPARE_STRING_FIELD(catalogname);
109  COMPARE_STRING_FIELD(schemaname);
110  COMPARE_STRING_FIELD(relname);
113  COMPARE_NODE_FIELD(alias);
114  COMPARE_LOCATION_FIELD(location);
115 
116  return true;
117 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
char relpersistence
Definition: pg_class.h:50
#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

◆ _equalRawStmt()

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

◆ _equalReassignOwnedStmt()

static bool _equalReassignOwnedStmt ( const ReassignOwnedStmt a,
const ReassignOwnedStmt b 
)
static

Definition at line 2176 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2177 {
2178  COMPARE_NODE_FIELD(roles);
2179  COMPARE_NODE_FIELD(newrole);
2180 
2181  return true;
2182 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52

◆ _equalRefreshMatViewStmt()

static bool _equalRefreshMatViewStmt ( const RefreshMatViewStmt a,
const RefreshMatViewStmt b 
)
static

Definition at line 1708 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1709 {
1710  COMPARE_SCALAR_FIELD(concurrent);
1711  COMPARE_SCALAR_FIELD(skipData);
1712  COMPARE_NODE_FIELD(relation);
1713 
1714  return true;
1715 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalReindexStmt()

static bool _equalReindexStmt ( const ReindexStmt a,
const ReindexStmt b 
)
static

Definition at line 2094 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2095 {
2096  COMPARE_SCALAR_FIELD(kind);
2097  COMPARE_NODE_FIELD(relation);
2100 
2101  return true;
2102 }
#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

◆ _equalRelabelType()

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

◆ _equalRenameStmt()

static bool _equalRenameStmt ( const RenameStmt a,
const RenameStmt b 
)
static

Definition at line 1406 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1407 {
1408  COMPARE_SCALAR_FIELD(renameType);
1409  COMPARE_SCALAR_FIELD(relationType);
1410  COMPARE_NODE_FIELD(relation);
1411  COMPARE_NODE_FIELD(object);
1413  COMPARE_STRING_FIELD(newname);
1414  COMPARE_SCALAR_FIELD(behavior);
1415  COMPARE_SCALAR_FIELD(missing_ok);
1416 
1417  return true;
1418 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalReplicaIdentityStmt()

static bool _equalReplicaIdentityStmt ( const ReplicaIdentityStmt a,
const ReplicaIdentityStmt b 
)
static

Definition at line 1718 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1719 {
1720  COMPARE_SCALAR_FIELD(identity_type);
1722 
1723  return true;
1724 }
#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

◆ _equalResTarget()

static bool _equalResTarget ( const ResTarget a,
const ResTarget b 
)
static

Definition at line 2387 of file equalfuncs.c.

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

Referenced by equal().

2388 {
2390  COMPARE_NODE_FIELD(indirection);
2392  COMPARE_LOCATION_FIELD(location);
2393 
2394  return true;
2395 }
#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

◆ _equalRestrictInfo()

static bool _equalRestrictInfo ( const RestrictInfo a,
const RestrictInfo b 
)
static

Definition at line 832 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

833 {
834  COMPARE_NODE_FIELD(clause);
835  COMPARE_SCALAR_FIELD(is_pushed_down);
836  COMPARE_SCALAR_FIELD(outerjoin_delayed);
837  COMPARE_SCALAR_FIELD(security_level);
838  COMPARE_BITMAPSET_FIELD(required_relids);
839  COMPARE_BITMAPSET_FIELD(outer_relids);
840  COMPARE_BITMAPSET_FIELD(nullable_relids);
841 
842  /*
843  * We ignore all the remaining fields, since they may not be set yet, and
844  * should be derivable from the clause anyway.
845  */
846 
847  return true;
848 }
#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

◆ _equalRoleSpec()

static bool _equalRoleSpec ( const RoleSpec a,
const RoleSpec b 
)
static

Definition at line 2817 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2818 {
2819  COMPARE_SCALAR_FIELD(roletype);
2820  COMPARE_STRING_FIELD(rolename);
2821  COMPARE_LOCATION_FIELD(location);
2822 
2823  return true;
2824 }
#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

◆ _equalRowCompareExpr()

static bool _equalRowCompareExpr ( const RowCompareExpr a,
const RowCompareExpr b 
)
static

Definition at line 606 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

607 {
608  COMPARE_SCALAR_FIELD(rctype);
609  COMPARE_NODE_FIELD(opnos);
610  COMPARE_NODE_FIELD(opfamilies);
611  COMPARE_NODE_FIELD(inputcollids);
612  COMPARE_NODE_FIELD(largs);
613  COMPARE_NODE_FIELD(rargs);
614 
615  return true;
616 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalRowExpr()

static bool _equalRowExpr ( const RowExpr a,
const RowExpr b 
)
static

Definition at line 594 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().

595 {
597  COMPARE_SCALAR_FIELD(row_typeid);
598  COMPARE_COERCIONFORM_FIELD(row_format);
599  COMPARE_NODE_FIELD(colnames);
600  COMPARE_LOCATION_FIELD(location);
601 
602  return true;
603 }
#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

◆ _equalRowMarkClause()

static bool _equalRowMarkClause ( const RowMarkClause a,
const RowMarkClause b 
)
static

Definition at line 2745 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2746 {
2747  COMPARE_SCALAR_FIELD(rti);
2748  COMPARE_SCALAR_FIELD(strength);
2749  COMPARE_SCALAR_FIELD(waitPolicy);
2750  COMPARE_SCALAR_FIELD(pushedDown);
2751 
2752  return true;
2753 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalRuleStmt()

static bool _equalRuleStmt ( const RuleStmt a,
const RuleStmt b 
)
static

Definition at line 1464 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1465 {
1466  COMPARE_NODE_FIELD(relation);
1467  COMPARE_STRING_FIELD(rulename);
1468  COMPARE_NODE_FIELD(whereClause);
1469  COMPARE_SCALAR_FIELD(event);
1470  COMPARE_SCALAR_FIELD(instead);
1471  COMPARE_NODE_FIELD(actions);
1472  COMPARE_SCALAR_FIELD(replace);
1473 
1474  return true;
1475 }
#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

◆ _equalScalarArrayOpExpr()

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

◆ _equalSecLabelStmt()

static bool _equalSecLabelStmt ( const SecLabelStmt a,
const SecLabelStmt b 
)
static

Definition at line 1301 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, label, and provider.

Referenced by equal().

1302 {
1303  COMPARE_SCALAR_FIELD(objtype);
1304  COMPARE_NODE_FIELD(object);
1307 
1308  return true;
1309 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:66
static JitProviderCallbacks provider
Definition: jit.c:46
static char * label
Definition: pg_basebackup.c:84
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:52
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:45

◆ _equalSelectStmt()

static bool _equalSelectStmt ( const SelectStmt a,
const SelectStmt b 
)
static

Definition at line 1036 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1037 {
1038  COMPARE_NODE_FIELD(distinctClause);
1039  COMPARE_NODE_FIELD(intoClause);
1040  COMPARE_NODE_FIELD(targetList);
1041  COMPARE_NODE_FIELD(fromClause);
1042  COMPARE_NODE_FIELD(whereClause);
1043  COMPARE_NODE_FIELD(groupClause);