PostgreSQL Source Code  git master
equalfuncs.c File Reference
#include "postgres.h"
#include "miscadmin.h"
#include "nodes/extensible.h"
#include "nodes/pathnodes.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 _equalSubscriptingRef (const SubscriptingRef *a, const SubscriptingRef *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 _equalPLAssignStmt (const PLAssignStmt *a, const PLAssignStmt *b)
 
static bool _equalAlterTableStmt (const AlterTableStmt *a, const AlterTableStmt *b)
 
static bool _equalAlterTableCmd (const AlterTableCmd *a, const AlterTableCmd *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 _equalAlterStatsStmt (const AlterStatsStmt *a, const AlterStatsStmt *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 _equalAlterTypeStmt (const AlterTypeStmt *a, const AlterTypeStmt *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 _equalCTESearchClause (const CTESearchClause *a, const CTESearchClause *b)
 
static bool _equalCTECycleClause (const CTECycleClause *a, const CTECycleClause *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:94

Definition at line 60 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

#define COMPARE_LOCATION_FIELD (   fldname)    ((void) 0)

◆ 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:3073

Definition at line 53 of file equalfuncs.c.

Referenced by _equalA_ArrayExpr(), _equalA_Indirection(), _equalAccessPriv(), _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOperatorStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterStatsStmt(), _equalAlterSubscriptionStmt(), _equalAlterSystemStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _equalAlterTypeStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _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(), _equalCTECycleClause(), _equalCTESearchClause(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropdbStmt(), _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(), _equalPLAssignStmt(), _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(), _equalSubscriptingRef(), _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 78 of file equalfuncs.c.

Referenced by _equalAppendRelInfo().

◆ COMPARE_SCALAR_FIELD

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

Definition at line 46 of file equalfuncs.c.

Referenced by _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPublicationStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterStatsStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseTestExpr(), _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(), _equalCTECycleClause(), _equalCTESearchClause(), _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(), _equalPLAssignStmt(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeTblRef(), _equalRangeVar(), _equalRawStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalRestrictInfo(), _equalRoleSpec(), _equalRowCompareExpr(), _equalRowExpr(), _equalRowMarkClause(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSetToDefault(), _equalSortBy(), _equalSortGroupClause(), _equalSpecialJoinInfo(), _equalSQLValueFunction(), _equalSubLink(), _equalSubPlan(), _equalSubscriptingRef(), _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:74

Definition at line 67 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(), _equalCTECycleClause(), _equalCTESearchClause(), _equalCurrentOfExpr(), _equalDeallocateStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDropdbStmt(), _equalDropSubscriptionStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExtensibleNode(), _equalFetchStmt(), _equalFunctionParameter(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalIntoClause(), _equalListenStmt(), _equalLoadStmt(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalPartitionElem(), _equalPartitionSpec(), _equalPLAssignStmt(), _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 74 of file equalfuncs.c.

Function Documentation

◆ _equalA_ArrayExpr()

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

Definition at line 2427 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2428 {
2429  COMPARE_NODE_FIELD(elements);
2430  COMPARE_LOCATION_FIELD(location);
2431 
2432  return true;
2433 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalA_Indirection()

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

Definition at line 2418 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2419 {
2421  COMPARE_NODE_FIELD(indirection);
2422 
2423  return true;
2424 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalAccessPriv()

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

Definition at line 1165 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1166 {
1167  COMPARE_STRING_FIELD(priv_name);
1168  COMPARE_NODE_FIELD(cols);
1169 
1170  return true;
1171 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAConst()

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

Definition at line 2374 of file equalfuncs.c.

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

Referenced by equal().

2375 {
2376  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2377  return false;
2378  COMPARE_LOCATION_FIELD(location);
2379 
2380  return true;
2381 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3073
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
Value val
Definition: parsenodes.h:287

◆ _equalAExpr()

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

Definition at line 2344 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2345 {
2346  COMPARE_SCALAR_FIELD(kind);
2348  COMPARE_NODE_FIELD(lexpr);
2349  COMPARE_NODE_FIELD(rexpr);
2350  COMPARE_LOCATION_FIELD(location);
2351 
2352  return true;
2353 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAggref()

static bool _equalAggref ( const Aggref a,
const Aggref b 
)
static

Definition at line 217 of file equalfuncs.c.

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

Referenced by equal().

218 {
219  COMPARE_SCALAR_FIELD(aggfnoid);
220  COMPARE_SCALAR_FIELD(aggtype);
221  COMPARE_SCALAR_FIELD(aggcollid);
222  COMPARE_SCALAR_FIELD(inputcollid);
223  /* ignore aggtranstype since it might not be set yet */
224  COMPARE_NODE_FIELD(aggargtypes);
225  COMPARE_NODE_FIELD(aggdirectargs);
227  COMPARE_NODE_FIELD(aggorder);
228  COMPARE_NODE_FIELD(aggdistinct);
229  COMPARE_NODE_FIELD(aggfilter);
230  COMPARE_SCALAR_FIELD(aggstar);
231  COMPARE_SCALAR_FIELD(aggvariadic);
232  COMPARE_SCALAR_FIELD(aggkind);
233  COMPARE_SCALAR_FIELD(agglevelsup);
234  COMPARE_SCALAR_FIELD(aggsplit);
235  COMPARE_SCALAR_FIELD(aggno);
236  COMPARE_SCALAR_FIELD(aggtransno);
237  COMPARE_LOCATION_FIELD(location);
238 
239  return true;
240 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAIndices()

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

Definition at line 2408 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2409 {
2410  COMPARE_SCALAR_FIELD(is_slice);
2411  COMPARE_NODE_FIELD(lidx);
2412  COMPARE_NODE_FIELD(uidx);
2413 
2414  return true;
2415 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlias()

static bool _equalAlias ( const Alias a,
const Alias b 
)
static

Definition at line 98 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

99 {
100  COMPARE_STRING_FIELD(aliasname);
101  COMPARE_NODE_FIELD(colnames);
102 
103  return true;
104 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1695 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1696 {
1698  COMPARE_NODE_FIELD(setstmt);
1699 
1700  return true;
1701 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseStmt()

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

Definition at line 1686 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1687 {
1690 
1691  return true;
1692 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDefaultPrivilegesStmt()

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

Definition at line 1187 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1188 {
1191 
1192  return true;
1193 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1126 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1127 {
1128  COMPARE_SCALAR_FIELD(subtype);
1129  COMPARE_NODE_FIELD(typeName);
1131  COMPARE_NODE_FIELD(def);
1132  COMPARE_SCALAR_FIELD(behavior);
1133  COMPARE_SCALAR_FIELD(missing_ok);
1134 
1135  return true;
1136 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterEnumStmt()

static bool _equalAlterEnumStmt ( const AlterEnumStmt a,
const AlterEnumStmt 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(typeName);
1589  COMPARE_STRING_FIELD(oldVal);
1590  COMPARE_STRING_FIELD(newVal);
1591  COMPARE_STRING_FIELD(newValNeighbor);
1592  COMPARE_SCALAR_FIELD(newValIsAfter);
1593  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1594 
1595  return true;
1596 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterEventTrigStmt()

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

Definition at line 2062 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2063 {
2064  COMPARE_STRING_FIELD(trigname);
2065  COMPARE_SCALAR_FIELD(tgenabled);
2066 
2067  return true;
2068 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterExtensionContentsStmt()

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

Definition at line 1896 of file equalfuncs.c.

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

Referenced by equal().

1897 {
1898  COMPARE_STRING_FIELD(extname);
1900  COMPARE_SCALAR_FIELD(objtype);
1901  COMPARE_NODE_FIELD(object);
1902 
1903  return true;
1904 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterExtensionStmt()

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

Definition at line 1887 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1888 {
1889  COMPARE_STRING_FIELD(extname);
1891 
1892  return true;
1893 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterFdwStmt()

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

Definition at line 1917 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1918 {
1919  COMPARE_STRING_FIELD(fdwname);
1920  COMPARE_NODE_FIELD(func_options);
1922 
1923  return true;
1924 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterForeignServerStmt()

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

Definition at line 1940 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1941 {
1942  COMPARE_STRING_FIELD(servername);
1943  COMPARE_STRING_FIELD(version);
1945  COMPARE_SCALAR_FIELD(has_version);
1946 
1947  return true;
1948 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterFunctionStmt()

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

Definition at line 1422 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1423 {
1424  COMPARE_SCALAR_FIELD(objtype);
1425  COMPARE_NODE_FIELD(func);
1426  COMPARE_NODE_FIELD(actions);
1427 
1428  return true;
1429 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlternativeSubPlan()

static bool _equalAlternativeSubPlan ( const AlternativeSubPlan a,
const AlternativeSubPlan b 
)
static

Definition at line 466 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

467 {
468  COMPARE_NODE_FIELD(subplans);
469 
470  return true;
471 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1455 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1456 {
1457  COMPARE_SCALAR_FIELD(objectType);
1458  COMPARE_NODE_FIELD(relation);
1459  COMPARE_NODE_FIELD(object);
1460  COMPARE_NODE_FIELD(extname);
1461  COMPARE_SCALAR_FIELD(remove);
1462 
1463  return true;
1464 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterObjectSchemaStmt()

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

Definition at line 1467 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1468 {
1469  COMPARE_SCALAR_FIELD(objectType);
1470  COMPARE_NODE_FIELD(relation);
1471  COMPARE_NODE_FIELD(object);
1472  COMPARE_STRING_FIELD(newschema);
1473  COMPARE_SCALAR_FIELD(missing_ok);
1474 
1475  return true;
1476 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterOperatorStmt()

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

Definition at line 1490 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1491 {
1492  COMPARE_NODE_FIELD(opername);
1494 
1495  return true;
1496 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1666 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1667 {
1668  COMPARE_NODE_FIELD(opfamilyname);
1669  COMPARE_STRING_FIELD(amname);
1670  COMPARE_SCALAR_FIELD(isDrop);
1671  COMPARE_NODE_FIELD(items);
1672 
1673  return true;
1674 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterOwnerStmt()

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

Definition at line 1479 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1480 {
1481  COMPARE_SCALAR_FIELD(objectType);
1482  COMPARE_NODE_FIELD(relation);
1483  COMPARE_NODE_FIELD(object);
1484  COMPARE_NODE_FIELD(newowner);
1485 
1486  return true;
1487 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterPolicyStmt()

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

Definition at line 2332 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2333 {
2334  COMPARE_STRING_FIELD(policy_name);
2335  COMPARE_NODE_FIELD(table);
2336  COMPARE_NODE_FIELD(roles);
2337  COMPARE_NODE_FIELD(qual);
2338  COMPARE_NODE_FIELD(with_check);
2339 
2340  return true;
2341 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterPublicationStmt()

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

Definition at line 2269 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2271 {
2272  COMPARE_STRING_FIELD(pubname);
2274  COMPARE_NODE_FIELD(tables);
2275  COMPARE_SCALAR_FIELD(for_all_tables);
2276  COMPARE_SCALAR_FIELD(tableAction);
2277 
2278  return true;
2279 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterRoleSetStmt()

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

Definition at line 2104 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2105 {
2106  COMPARE_NODE_FIELD(role);
2107  COMPARE_STRING_FIELD(database);
2108  COMPARE_NODE_FIELD(setstmt);
2109 
2110  return true;
2111 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterRoleStmt()

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

Definition at line 2094 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2095 {
2096  COMPARE_NODE_FIELD(role);
2099 
2100  return true;
2101 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterSeqStmt()

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

Definition at line 1795 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1796 {
1797  COMPARE_NODE_FIELD(sequence);
1799  COMPARE_SCALAR_FIELD(for_identity);
1800  COMPARE_SCALAR_FIELD(missing_ok);
1801 
1802  return true;
1803 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterStatsStmt()

static bool _equalAlterStatsStmt ( const AlterStatsStmt a,
const AlterStatsStmt b 
)
static

Definition at line 1388 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1389 {
1390  COMPARE_NODE_FIELD(defnames);
1391  COMPARE_SCALAR_FIELD(stxstattarget);
1392  COMPARE_SCALAR_FIELD(missing_ok);
1393 
1394  return true;
1395 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterSubscriptionStmt()

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

Definition at line 2294 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2296 {
2297  COMPARE_SCALAR_FIELD(kind);
2299  COMPARE_STRING_FIELD(conninfo);
2300  COMPARE_NODE_FIELD(publication);
2302 
2303  return true;
2304 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterSystemStmt()

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

Definition at line 1774 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1775 {
1776  COMPARE_NODE_FIELD(setstmt);
1777 
1778  return true;
1779 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1112 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1113 {
1114  COMPARE_SCALAR_FIELD(subtype);
1116  COMPARE_SCALAR_FIELD(num);
1117  COMPARE_NODE_FIELD(newowner);
1118  COMPARE_NODE_FIELD(def);
1119  COMPARE_SCALAR_FIELD(behavior);
1120  COMPARE_SCALAR_FIELD(missing_ok);
1121 
1122  return true;
1123 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableMoveAllStmt()

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

Definition at line 1864 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1866 {
1867  COMPARE_STRING_FIELD(orig_tablespacename);
1868  COMPARE_SCALAR_FIELD(objtype);
1869  COMPARE_NODE_FIELD(roles);
1870  COMPARE_STRING_FIELD(new_tablespacename);
1871  COMPARE_SCALAR_FIELD(nowait);
1872 
1873  return true;
1874 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableSpaceOptionsStmt()

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

Definition at line 1853 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1855 {
1856  COMPARE_STRING_FIELD(tablespacename);
1858  COMPARE_SCALAR_FIELD(isReset);
1859 
1860  return true;
1861 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableStmt()

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

Definition at line 1101 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1102 {
1103  COMPARE_NODE_FIELD(relation);
1104  COMPARE_NODE_FIELD(cmds);
1105  COMPARE_SCALAR_FIELD(objtype);
1106  COMPARE_SCALAR_FIELD(missing_ok);
1107 
1108  return true;
1109 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTSConfigurationStmt()

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

Definition at line 2242 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2244 {
2245  COMPARE_SCALAR_FIELD(kind);
2246  COMPARE_NODE_FIELD(cfgname);
2247  COMPARE_NODE_FIELD(tokentype);
2248  COMPARE_NODE_FIELD(dicts);
2249  COMPARE_SCALAR_FIELD(override);
2250  COMPARE_SCALAR_FIELD(replace);
2251  COMPARE_SCALAR_FIELD(missing_ok);
2252 
2253  return true;
2254 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTSDictionaryStmt()

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

Definition at line 2233 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2234 {
2235  COMPARE_NODE_FIELD(dictname);
2237 
2238  return true;
2239 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTypeStmt()

static bool _equalAlterTypeStmt ( const AlterTypeStmt a,
const AlterTypeStmt b 
)
static

Definition at line 1499 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1500 {
1501  COMPARE_NODE_FIELD(typeName);
1503 
1504  return true;
1505 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 1962 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1963 {
1965  COMPARE_STRING_FIELD(servername);
1967 
1968  return true;
1969 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95

◆ _equalAppendRelInfo()

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

Definition at line 903 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_POINTER_FIELD, COMPARE_SCALAR_FIELD, and AppendRelInfo::num_child_cols.

Referenced by equal().

904 {
905  COMPARE_SCALAR_FIELD(parent_relid);
906  COMPARE_SCALAR_FIELD(child_relid);
907  COMPARE_SCALAR_FIELD(parent_reltype);
908  COMPARE_SCALAR_FIELD(child_reltype);
909  COMPARE_NODE_FIELD(translated_vars);
910  COMPARE_SCALAR_FIELD(num_child_cols);
911  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
912  COMPARE_SCALAR_FIELD(parent_reloid);
913 
914  return true;
915 }
int num_child_cols
Definition: pathnodes.h:2268
#define COMPARE_POINTER_FIELD(fldname, sz)
Definition: equalfuncs.c:78
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
int16 AttrNumber
Definition: attnum.h:21
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalArrayCoerceExpr()

static bool _equalArrayCoerceExpr ( const ArrayCoerceExpr a,
const ArrayCoerceExpr b 
)
static

Definition at line 522 of file equalfuncs.c.

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

Referenced by equal().

523 {
525  COMPARE_NODE_FIELD(elemexpr);
526  COMPARE_SCALAR_FIELD(resulttype);
527  COMPARE_SCALAR_FIELD(resulttypmod);
528  COMPARE_SCALAR_FIELD(resultcollid);
529  COMPARE_COERCIONFORM_FIELD(coerceformat);
530  COMPARE_LOCATION_FIELD(location);
531 
532  return true;
533 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalArrayExpr()

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

Definition at line 590 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

591 {
592  COMPARE_SCALAR_FIELD(array_typeid);
593  COMPARE_SCALAR_FIELD(array_collid);
594  COMPARE_SCALAR_FIELD(element_typeid);
595  COMPARE_NODE_FIELD(elements);
596  COMPARE_SCALAR_FIELD(multidims);
597  COMPARE_LOCATION_FIELD(location);
598 
599  return true;
600 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAStar()

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

Definition at line 2402 of file equalfuncs.c.

Referenced by equal().

2403 {
2404  return true;
2405 }

◆ _equalBooleanTest()

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

Definition at line 690 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

691 {
693  COMPARE_SCALAR_FIELD(booltesttype);
694  COMPARE_LOCATION_FIELD(location);
695 
696  return true;
697 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalBoolExpr()

static bool _equalBoolExpr ( const BoolExpr a,
const BoolExpr b 
)
static

Definition at line 420 of file equalfuncs.c.

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

Referenced by equal().

421 {
424  COMPARE_LOCATION_FIELD(location);
425 
426  return true;
427 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:419
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCallStmt()

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

Definition at line 1214 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1215 {
1216  COMPARE_NODE_FIELD(funccall);
1217  COMPARE_NODE_FIELD(funcexpr);
1218 
1219  return true;
1220 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 557 of file equalfuncs.c.

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

Referenced by equal().

558 {
559  COMPARE_SCALAR_FIELD(casetype);
560  COMPARE_SCALAR_FIELD(casecollid);
563  COMPARE_NODE_FIELD(defresult);
564  COMPARE_LOCATION_FIELD(location);
565 
566  return true;
567 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseTestExpr()

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

Definition at line 580 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

581 {
582  COMPARE_SCALAR_FIELD(typeId);
583  COMPARE_SCALAR_FIELD(typeMod);
584  COMPARE_SCALAR_FIELD(collation);
585 
586  return true;
587 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseWhen()

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

Definition at line 570 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

571 {
572  COMPARE_NODE_FIELD(expr);
573  COMPARE_NODE_FIELD(result);
574  COMPARE_LOCATION_FIELD(location);
575 
576  return true;
577 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalClosePortalStmt()

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

Definition at line 1206 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1207 {
1208  COMPARE_STRING_FIELD(portalname);
1209 
1210  return true;
1211 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1223 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1224 {
1225  COMPARE_NODE_FIELD(relation);
1226  COMPARE_STRING_FIELD(indexname);
1227  COMPARE_NODE_FIELD(params);
1228 
1229  return true;
1230 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCoalesceExpr()

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

Definition at line 628 of file equalfuncs.c.

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

Referenced by equal().

629 {
630  COMPARE_SCALAR_FIELD(coalescetype);
631  COMPARE_SCALAR_FIELD(coalescecollid);
633  COMPARE_LOCATION_FIELD(location);
634 
635  return true;
636 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceToDomain()

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

Definition at line 700 of file equalfuncs.c.

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

Referenced by equal().

701 {
703  COMPARE_SCALAR_FIELD(resulttype);
704  COMPARE_SCALAR_FIELD(resulttypmod);
705  COMPARE_SCALAR_FIELD(resultcollid);
706  COMPARE_COERCIONFORM_FIELD(coercionformat);
707  COMPARE_LOCATION_FIELD(location);
708 
709  return true;
710 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceToDomainValue()

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

Definition at line 713 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

714 {
715  COMPARE_SCALAR_FIELD(typeId);
716  COMPARE_SCALAR_FIELD(typeMod);
717  COMPARE_SCALAR_FIELD(collation);
718  COMPARE_LOCATION_FIELD(location);
719 
720  return true;
721 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceViaIO()

static bool _equalCoerceViaIO ( const CoerceViaIO a,
const CoerceViaIO b 
)
static

Definition at line 510 of file equalfuncs.c.

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

Referenced by equal().

511 {
513  COMPARE_SCALAR_FIELD(resulttype);
514  COMPARE_SCALAR_FIELD(resultcollid);
515  COMPARE_COERCIONFORM_FIELD(coerceformat);
516  COMPARE_LOCATION_FIELD(location);
517 
518  return true;
519 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCollateClause()

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

Definition at line 2482 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2483 {
2485  COMPARE_NODE_FIELD(collname);
2486  COMPARE_LOCATION_FIELD(location);
2487 
2488  return true;
2489 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalCollateExpr()

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

Definition at line 547 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

548 {
550  COMPARE_SCALAR_FIELD(collOid);
551  COMPARE_LOCATION_FIELD(location);
552 
553  return true;
554 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalColumnDef()

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

Definition at line 2598 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2599 {
2600  COMPARE_STRING_FIELD(colname);
2601  COMPARE_NODE_FIELD(typeName);
2602  COMPARE_SCALAR_FIELD(inhcount);
2603  COMPARE_SCALAR_FIELD(is_local);
2604  COMPARE_SCALAR_FIELD(is_not_null);
2605  COMPARE_SCALAR_FIELD(is_from_type);
2606  COMPARE_SCALAR_FIELD(storage);
2607  COMPARE_NODE_FIELD(raw_default);
2608  COMPARE_NODE_FIELD(cooked_default);
2609  COMPARE_SCALAR_FIELD(identity);
2610  COMPARE_NODE_FIELD(identitySequence);
2611  COMPARE_SCALAR_FIELD(generated);
2612  COMPARE_NODE_FIELD(collClause);
2613  COMPARE_SCALAR_FIELD(collOid);
2614  COMPARE_NODE_FIELD(constraints);
2615  COMPARE_NODE_FIELD(fdwoptions);
2616  COMPARE_LOCATION_FIELD(location);
2617 
2618  return true;
2619 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalColumnRef()

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

Definition at line 2356 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2357 {
2358  COMPARE_NODE_FIELD(fields);
2359  COMPARE_LOCATION_FIELD(location);
2360 
2361  return true;
2362 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCommentStmt()

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

Definition at line 1313 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1314 {
1315  COMPARE_SCALAR_FIELD(objtype);
1316  COMPARE_NODE_FIELD(object);
1317  COMPARE_STRING_FIELD(comment);
1318 
1319  return true;
1320 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCommonTableExpr()

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

Definition at line 2873 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2874 {
2875  COMPARE_STRING_FIELD(ctename);
2876  COMPARE_NODE_FIELD(aliascolnames);
2877  COMPARE_SCALAR_FIELD(ctematerialized);
2878  COMPARE_NODE_FIELD(ctequery);
2879  COMPARE_NODE_FIELD(search_clause);
2880  COMPARE_NODE_FIELD(cycle_clause);
2881  COMPARE_LOCATION_FIELD(location);
2882  COMPARE_SCALAR_FIELD(cterecursive);
2883  COMPARE_SCALAR_FIELD(cterefcount);
2884  COMPARE_NODE_FIELD(ctecolnames);
2885  COMPARE_NODE_FIELD(ctecoltypes);
2886  COMPARE_NODE_FIELD(ctecoltypmods);
2887  COMPARE_NODE_FIELD(ctecolcollations);
2888 
2889  return true;
2890 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCompositeTypeStmt()

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

Definition at line 1559 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1560 {
1561  COMPARE_NODE_FIELD(typevar);
1562  COMPARE_NODE_FIELD(coldeflist);
1563 
1564  return true;
1565 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalConst()

static bool _equalConst ( const Const a,
const Const b 
)
static

Definition at line 183 of file equalfuncs.c.

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

Referenced by equal().

184 {
185  COMPARE_SCALAR_FIELD(consttype);
186  COMPARE_SCALAR_FIELD(consttypmod);
187  COMPARE_SCALAR_FIELD(constcollid);
188  COMPARE_SCALAR_FIELD(constlen);
189  COMPARE_SCALAR_FIELD(constisnull);
190  COMPARE_SCALAR_FIELD(constbyval);
191  COMPARE_LOCATION_FIELD(location);
192 
193  /*
194  * We treat all NULL constants of the same type as equal. Someday this
195  * might need to change? But datumIsEqual doesn't work on nulls, so...
196  */
197  if (a->constisnull)
198  return true;
199  return datumIsEqual(a->constvalue, b->constvalue,
200  a->constbyval, a->constlen);
201 }
Datum constvalue
Definition: primnodes.h:214
bool constbyval
Definition: primnodes.h:217
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:222
int constlen
Definition: primnodes.h:213
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
bool constisnull
Definition: primnodes.h:215
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConstraint()

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

Definition at line 2622 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2623 {
2624  COMPARE_SCALAR_FIELD(contype);
2625  COMPARE_STRING_FIELD(conname);
2626  COMPARE_SCALAR_FIELD(deferrable);
2627  COMPARE_SCALAR_FIELD(initdeferred);
2628  COMPARE_LOCATION_FIELD(location);
2629  COMPARE_SCALAR_FIELD(is_no_inherit);
2630  COMPARE_NODE_FIELD(raw_expr);
2631  COMPARE_STRING_FIELD(cooked_expr);
2632  COMPARE_SCALAR_FIELD(generated_when);
2633  COMPARE_NODE_FIELD(keys);
2634  COMPARE_NODE_FIELD(including);
2635  COMPARE_NODE_FIELD(exclusions);
2637  COMPARE_STRING_FIELD(indexname);
2638  COMPARE_STRING_FIELD(indexspace);
2639  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2640  COMPARE_STRING_FIELD(access_method);
2641  COMPARE_NODE_FIELD(where_clause);
2642  COMPARE_NODE_FIELD(pktable);
2643  COMPARE_NODE_FIELD(fk_attrs);
2644  COMPARE_NODE_FIELD(pk_attrs);
2645  COMPARE_SCALAR_FIELD(fk_matchtype);
2646  COMPARE_SCALAR_FIELD(fk_upd_action);
2647  COMPARE_SCALAR_FIELD(fk_del_action);
2648  COMPARE_NODE_FIELD(old_conpfeqop);
2649  COMPARE_SCALAR_FIELD(old_pktable_oid);
2650  COMPARE_SCALAR_FIELD(skip_validation);
2651  COMPARE_SCALAR_FIELD(initially_valid);
2652 
2653  return true;
2654 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConstraintsSetStmt()

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

Definition at line 2133 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2134 {
2135  COMPARE_NODE_FIELD(constraints);
2136  COMPARE_SCALAR_FIELD(deferred);
2137 
2138  return true;
2139 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConvertRowtypeExpr()

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

Definition at line 536 of file equalfuncs.c.

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

Referenced by equal().

537 {
539  COMPARE_SCALAR_FIELD(resulttype);
540  COMPARE_COERCIONFORM_FIELD(convertformat);
541  COMPARE_LOCATION_FIELD(location);
542 
543  return true;
544 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCopyStmt()

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

Definition at line 1233 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1234 {
1235  COMPARE_NODE_FIELD(relation);
1236  COMPARE_NODE_FIELD(query);
1237  COMPARE_NODE_FIELD(attlist);
1238  COMPARE_SCALAR_FIELD(is_from);
1239  COMPARE_SCALAR_FIELD(is_program);
1242  COMPARE_NODE_FIELD(whereClause);
1243 
1244  return true;
1245 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * filename
Definition: pg_dumpall.c:91
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateAmStmt()

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

Definition at line 2019 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2020 {
2021  COMPARE_STRING_FIELD(amname);
2022  COMPARE_NODE_FIELD(handler_name);
2023  COMPARE_SCALAR_FIELD(amtype);
2024 
2025  return true;
2026 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateCastStmt()

static bool _equalCreateCastStmt ( const CreateCastStmt a,
const CreateCastStmt b 
)
static

Definition at line 2176 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2177 {
2178  COMPARE_NODE_FIELD(sourcetype);
2179  COMPARE_NODE_FIELD(targettype);
2180  COMPARE_NODE_FIELD(func);
2181  COMPARE_SCALAR_FIELD(context);
2182  COMPARE_SCALAR_FIELD(inout);
2183 
2184  return true;
2185 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateConversionStmt()

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

Definition at line 2164 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2165 {
2166  COMPARE_NODE_FIELD(conversion_name);
2167  COMPARE_STRING_FIELD(for_encoding_name);
2168  COMPARE_STRING_FIELD(to_encoding_name);
2169  COMPARE_NODE_FIELD(func_name);
2170  COMPARE_SCALAR_FIELD(def);
2171 
2172  return true;
2173 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreatedbStmt()

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

Definition at line 1677 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1678 {
1681 
1682  return true;
1683 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateDomainStmt()

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

Definition at line 1620 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1621 {
1622  COMPARE_NODE_FIELD(domainname);
1623  COMPARE_NODE_FIELD(typeName);
1624  COMPARE_NODE_FIELD(collClause);
1625  COMPARE_NODE_FIELD(constraints);
1626 
1627  return true;
1628 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

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

Definition at line 1568 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1569 {
1570  COMPARE_NODE_FIELD(typeName);
1571  COMPARE_NODE_FIELD(vals);
1572 
1573  return true;
1574 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEventTrigStmt()

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

Definition at line 2051 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2052 {
2053  COMPARE_STRING_FIELD(trigname);
2054  COMPARE_STRING_FIELD(eventname);
2055  COMPARE_NODE_FIELD(whenclause);
2056  COMPARE_NODE_FIELD(funcname);
2057 
2058  return true;
2059 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateExtensionStmt()

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

Definition at line 1877 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1878 {
1879  COMPARE_STRING_FIELD(extname);
1880  COMPARE_SCALAR_FIELD(if_not_exists);
1882 
1883  return true;
1884 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateFdwStmt()

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

Definition at line 1907 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1908 {
1909  COMPARE_STRING_FIELD(fdwname);
1910  COMPARE_NODE_FIELD(func_options);
1912 
1913  return true;
1914 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateForeignServerStmt()

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

Definition at line 1927 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1928 {
1929  COMPARE_STRING_FIELD(servername);
1930  COMPARE_STRING_FIELD(servertype);
1931  COMPARE_STRING_FIELD(version);
1932  COMPARE_STRING_FIELD(fdwname);
1933  COMPARE_SCALAR_FIELD(if_not_exists);
1935 
1936  return true;
1937 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateForeignTableStmt()

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

Definition at line 1982 of file equalfuncs.c.

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

Referenced by equal().

1983 {
1984  if (!_equalCreateStmt(&a->base, &b->base))
1985  return false;
1986 
1987  COMPARE_STRING_FIELD(servername);
1989 
1990  return true;
1991 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static bool _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
Definition: equalfuncs.c:1248

◆ _equalCreateFunctionStmt()

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

Definition at line 1398 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1399 {
1400  COMPARE_SCALAR_FIELD(is_procedure);
1401  COMPARE_SCALAR_FIELD(replace);
1402  COMPARE_NODE_FIELD(funcname);
1403  COMPARE_NODE_FIELD(parameters);
1404  COMPARE_NODE_FIELD(returnType);
1406 
1407  return true;
1408 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateOpClassItem()

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

Definition at line 1644 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1645 {
1646  COMPARE_SCALAR_FIELD(itemtype);
1648  COMPARE_SCALAR_FIELD(number);
1649  COMPARE_NODE_FIELD(order_family);
1650  COMPARE_NODE_FIELD(class_args);
1651  COMPARE_NODE_FIELD(storedtype);
1652 
1653  return true;
1654 }
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateOpClassStmt()

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

Definition at line 1631 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1632 {
1633  COMPARE_NODE_FIELD(opclassname);
1634  COMPARE_NODE_FIELD(opfamilyname);
1635  COMPARE_STRING_FIELD(amname);
1636  COMPARE_NODE_FIELD(datatype);
1637  COMPARE_NODE_FIELD(items);
1638  COMPARE_SCALAR_FIELD(isDefault);
1639 
1640  return true;
1641 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateOpFamilyStmt()

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

Definition at line 1657 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1658 {
1659  COMPARE_NODE_FIELD(opfamilyname);
1660  COMPARE_STRING_FIELD(amname);
1661 
1662  return true;
1663 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreatePLangStmt()

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

Definition at line 2071 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2072 {
2073  COMPARE_SCALAR_FIELD(replace);
2074  COMPARE_STRING_FIELD(plname);
2075  COMPARE_NODE_FIELD(plhandler);
2076  COMPARE_NODE_FIELD(plinline);
2077  COMPARE_NODE_FIELD(plvalidator);
2078  COMPARE_SCALAR_FIELD(pltrusted);
2079 
2080  return true;
2081 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreatePolicyStmt()

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

Definition at line 2318 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2319 {
2320  COMPARE_STRING_FIELD(policy_name);
2321  COMPARE_NODE_FIELD(table);
2322  COMPARE_STRING_FIELD(cmd_name);
2323  COMPARE_SCALAR_FIELD(permissive);
2324  COMPARE_NODE_FIELD(roles);
2325  COMPARE_NODE_FIELD(qual);
2326  COMPARE_NODE_FIELD(with_check);
2327 
2328  return true;
2329 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreatePublicationStmt()

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

Definition at line 2257 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2259 {
2260  COMPARE_STRING_FIELD(pubname);
2262  COMPARE_NODE_FIELD(tables);
2263  COMPARE_SCALAR_FIELD(for_all_tables);
2264 
2265  return true;
2266 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateRangeStmt()

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

Definition at line 1577 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1578 {
1579  COMPARE_NODE_FIELD(typeName);
1580  COMPARE_NODE_FIELD(params);
1581 
1582  return true;
1583 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateRoleStmt()

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

Definition at line 2084 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2085 {
2086  COMPARE_SCALAR_FIELD(stmt_type);
2087  COMPARE_STRING_FIELD(role);
2089 
2090  return true;
2091 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateSchemaStmt()

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

Definition at line 2153 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2154 {
2155  COMPARE_STRING_FIELD(schemaname);
2156  COMPARE_NODE_FIELD(authrole);
2157  COMPARE_NODE_FIELD(schemaElts);
2158  COMPARE_SCALAR_FIELD(if_not_exists);
2159 
2160  return true;
2161 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateSeqStmt()

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

Definition at line 1783 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1784 {
1785  COMPARE_NODE_FIELD(sequence);
1787  COMPARE_SCALAR_FIELD(ownerId);
1788  COMPARE_SCALAR_FIELD(for_identity);
1789  COMPARE_SCALAR_FIELD(if_not_exists);
1790 
1791  return true;
1792 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateStatsStmt()

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

Definition at line 1375 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1376 {
1377  COMPARE_NODE_FIELD(defnames);
1378  COMPARE_NODE_FIELD(stat_types);
1379  COMPARE_NODE_FIELD(exprs);
1380  COMPARE_NODE_FIELD(relations);
1381  COMPARE_STRING_FIELD(stxcomment);
1382  COMPARE_SCALAR_FIELD(if_not_exists);
1383 
1384  return true;
1385 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateStmt()

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

Definition at line 1248 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1249 {
1250  COMPARE_NODE_FIELD(relation);
1251  COMPARE_NODE_FIELD(tableElts);
1252  COMPARE_NODE_FIELD(inhRelations);
1253  COMPARE_NODE_FIELD(partbound);
1254  COMPARE_NODE_FIELD(partspec);
1255  COMPARE_NODE_FIELD(ofTypename);
1256  COMPARE_NODE_FIELD(constraints);
1258  COMPARE_SCALAR_FIELD(oncommit);
1259  COMPARE_STRING_FIELD(tablespacename);
1260  COMPARE_STRING_FIELD(accessMethod);
1261  COMPARE_SCALAR_FIELD(if_not_exists);
1262 
1263  return true;
1264 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateSubscriptionStmt()

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

Definition at line 2282 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2284 {
2286  COMPARE_STRING_FIELD(conninfo);
2287  COMPARE_NODE_FIELD(publication);
2289 
2290  return true;
2291 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateTableAsStmt()

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

Definition at line 1743 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1744 {
1745  COMPARE_NODE_FIELD(query);
1746  COMPARE_NODE_FIELD(into);
1747  COMPARE_SCALAR_FIELD(objtype);
1748  COMPARE_SCALAR_FIELD(is_select_into);
1749  COMPARE_SCALAR_FIELD(if_not_exists);
1750 
1751  return true;
1752 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateTableSpaceStmt()

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

Definition at line 1833 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1834 {
1835  COMPARE_STRING_FIELD(tablespacename);
1836  COMPARE_NODE_FIELD(owner);
1837  COMPARE_STRING_FIELD(location);
1839 
1840  return true;
1841 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateTransformStmt()

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

Definition at line 2007 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2008 {
2009  COMPARE_SCALAR_FIELD(replace);
2010  COMPARE_NODE_FIELD(type_name);
2011  COMPARE_STRING_FIELD(lang);
2012  COMPARE_NODE_FIELD(fromsql);
2013  COMPARE_NODE_FIELD(tosql);
2014 
2015  return true;
2016 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateTrigStmt()

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

Definition at line 2029 of file equalfuncs.c.

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

Referenced by equal().

2030 {
2031  COMPARE_SCALAR_FIELD(replace);
2032  COMPARE_SCALAR_FIELD(isconstraint);
2033  COMPARE_STRING_FIELD(trigname);
2034  COMPARE_NODE_FIELD(relation);
2035  COMPARE_NODE_FIELD(funcname);
2037  COMPARE_SCALAR_FIELD(row);
2038  COMPARE_SCALAR_FIELD(timing);
2039  COMPARE_SCALAR_FIELD(events);
2040  COMPARE_NODE_FIELD(columns);
2041  COMPARE_NODE_FIELD(whenClause);
2042  COMPARE_NODE_FIELD(transitionRels);
2043  COMPARE_SCALAR_FIELD(deferrable);
2044  COMPARE_SCALAR_FIELD(initdeferred);
2045  COMPARE_NODE_FIELD(constrrel);
2046 
2047  return true;
2048 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateUserMappingStmt()

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

Definition at line 1951 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1952 {
1954  COMPARE_STRING_FIELD(servername);
1955  COMPARE_SCALAR_FIELD(if_not_exists);
1957 
1958  return true;
1959 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCTECycleClause()

static bool _equalCTECycleClause ( const CTECycleClause a,
const CTECycleClause b 
)
static

Definition at line 2856 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2857 {
2858  COMPARE_NODE_FIELD(cycle_col_list);
2859  COMPARE_STRING_FIELD(cycle_mark_column);
2860  COMPARE_NODE_FIELD(cycle_mark_value);
2861  COMPARE_NODE_FIELD(cycle_mark_default);
2862  COMPARE_STRING_FIELD(cycle_path_column);
2863  COMPARE_LOCATION_FIELD(location);
2864  COMPARE_SCALAR_FIELD(cycle_mark_type);
2865  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
2866  COMPARE_SCALAR_FIELD(cycle_mark_collation);
2867  COMPARE_SCALAR_FIELD(cycle_mark_neop);
2868 
2869  return true;
2870 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCTESearchClause()

static bool _equalCTESearchClause ( const CTESearchClause a,
const CTESearchClause b 
)
static

Definition at line 2845 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2846 {
2847  COMPARE_NODE_FIELD(search_col_list);
2848  COMPARE_SCALAR_FIELD(search_breadth_first);
2849  COMPARE_STRING_FIELD(search_seq_column);
2850  COMPARE_LOCATION_FIELD(location);
2851 
2852  return true;
2853 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCurrentOfExpr()

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

Definition at line 735 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

736 {
737  COMPARE_SCALAR_FIELD(cvarno);
738  COMPARE_STRING_FIELD(cursor_name);
739  COMPARE_SCALAR_FIELD(cursor_param);
740 
741  return true;
742 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDeallocateStmt()

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

Definition at line 2207 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2208 {
2210 
2211  return true;
2212 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515

◆ _equalDeclareCursorStmt()

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

Definition at line 1196 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1197 {
1198  COMPARE_STRING_FIELD(portalname);
1200  COMPARE_NODE_FIELD(query);
1201 
1202  return true;
1203 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDefElem()

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

Definition at line 2657 of file equalfuncs.c.

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

Referenced by equal().

2658 {
2659  COMPARE_STRING_FIELD(defnamespace);
2660  COMPARE_STRING_FIELD(defname);
2662  COMPARE_SCALAR_FIELD(defaction);
2663  COMPARE_LOCATION_FIELD(location);
2664 
2665  return true;
2666 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDefineStmt()

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

Definition at line 1277 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1278 {
1279  COMPARE_SCALAR_FIELD(kind);
1280  COMPARE_SCALAR_FIELD(oldstyle);
1281  COMPARE_NODE_FIELD(defnames);
1283  COMPARE_NODE_FIELD(definition);
1284  COMPARE_SCALAR_FIELD(if_not_exists);
1285  COMPARE_SCALAR_FIELD(replace);
1286 
1287  return true;
1288 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDeleteStmt()

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

Definition at line 1023 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1024 {
1025  COMPARE_NODE_FIELD(relation);
1026  COMPARE_NODE_FIELD(usingClause);
1027  COMPARE_NODE_FIELD(whereClause);
1028  COMPARE_NODE_FIELD(returningList);
1029  COMPARE_NODE_FIELD(withClause);
1030 
1031  return true;
1032 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1825 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1826 {
1827  COMPARE_SCALAR_FIELD(target);
1828 
1829  return true;
1830 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

static bool _equalDistinctExpr ( const DistinctExpr a,
const DistinctExpr b 
)
static

Definition at line 344 of file equalfuncs.c.

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

Referenced by equal().

345 {
346  COMPARE_SCALAR_FIELD(opno);
347 
348  /*
349  * Special-case opfuncid: it is allowable for it to differ if one node
350  * contains zero and the other doesn't. This just means that the one node
351  * isn't as far along in the parse/plan pipeline and hasn't had the
352  * opfuncid cache filled yet.
353  */
354  if (a->opfuncid != b->opfuncid &&
355  a->opfuncid != 0 &&
356  b->opfuncid != 0)
357  return false;
358 
359  COMPARE_SCALAR_FIELD(opresulttype);
360  COMPARE_SCALAR_FIELD(opretset);
361  COMPARE_SCALAR_FIELD(opcollid);
362  COMPARE_SCALAR_FIELD(inputcollid);
364  COMPARE_LOCATION_FIELD(location);
365 
366  return true;
367 }
Oid opfuncid
Definition: primnodes.h:538
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDoStmt()

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

Definition at line 1432 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1433 {
1435 
1436  return true;
1437 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1704 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1705 {
1707  COMPARE_SCALAR_FIELD(missing_ok);
1709 
1710  return true;
1711 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropOwnedStmt()

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

Definition at line 2215 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2216 {
2217  COMPARE_NODE_FIELD(roles);
2218  COMPARE_SCALAR_FIELD(behavior);
2219 
2220  return true;
2221 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropRoleStmt()

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

Definition at line 2114 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2115 {
2116  COMPARE_NODE_FIELD(roles);
2117  COMPARE_SCALAR_FIELD(missing_ok);
2118 
2119  return true;
2120 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropStmt()

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

Definition at line 1291 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1292 {
1293  COMPARE_NODE_FIELD(objects);
1294  COMPARE_SCALAR_FIELD(removeType);
1295  COMPARE_SCALAR_FIELD(behavior);
1296  COMPARE_SCALAR_FIELD(missing_ok);
1297  COMPARE_SCALAR_FIELD(concurrent);
1298 
1299  return true;
1300 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropSubscriptionStmt()

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

Definition at line 2307 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2309 {
2311  COMPARE_SCALAR_FIELD(missing_ok);
2312  COMPARE_SCALAR_FIELD(behavior);
2313 
2314  return true;
2315 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropTableSpaceStmt()

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

Definition at line 1844 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1845 {
1846  COMPARE_STRING_FIELD(tablespacename);
1847  COMPARE_SCALAR_FIELD(missing_ok);
1848 
1849  return true;
1850 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDropUserMappingStmt()

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

Definition at line 1972 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1973 {
1975  COMPARE_STRING_FIELD(servername);
1976  COMPARE_SCALAR_FIELD(missing_ok);
1977 
1978  return true;
1979 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalExecuteStmt()

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

Definition at line 2198 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2199 {
2201  COMPARE_NODE_FIELD(params);
2202 
2203  return true;
2204 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExplainStmt()

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

Definition at line 1734 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1735 {
1736  COMPARE_NODE_FIELD(query);
1738 
1739  return true;
1740 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 934 of file equalfuncs.c.

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

Referenced by equal().

935 {
936  const ExtensibleNodeMethods *methods;
937 
938  COMPARE_STRING_FIELD(extnodename);
939 
940  /* At this point, we know extnodename is the same for both nodes. */
941  methods = GetExtensibleNodeMethods(a->extnodename, false);
942 
943  /* compare the private fields */
944  if (!methods->nodeEqual(a, b))
945  return false;
946 
947  return true;
948 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
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 1334 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1335 {
1336  COMPARE_SCALAR_FIELD(direction);
1337  COMPARE_SCALAR_FIELD(howMany);
1338  COMPARE_STRING_FIELD(portalname);
1339  COMPARE_SCALAR_FIELD(ismove);
1340 
1341  return true;
1342 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFieldSelect()

static bool _equalFieldSelect ( const FieldSelect a,
const FieldSelect b 
)
static

Definition at line 474 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

475 {
477  COMPARE_SCALAR_FIELD(fieldnum);
478  COMPARE_SCALAR_FIELD(resulttype);
479  COMPARE_SCALAR_FIELD(resulttypmod);
480  COMPARE_SCALAR_FIELD(resultcollid);
481 
482  return true;
483 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFieldStore()

static bool _equalFieldStore ( const FieldStore a,
const FieldStore b 
)
static

Definition at line 486 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

487 {
489  COMPARE_NODE_FIELD(newvals);
490  COMPARE_NODE_FIELD(fieldnums);
491  COMPARE_SCALAR_FIELD(resulttype);
492 
493  return true;
494 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFromExpr()

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

Definition at line 801 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

802 {
803  COMPARE_NODE_FIELD(fromlist);
804  COMPARE_NODE_FIELD(quals);
805 
806  return true;
807 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

Definition at line 2384 of file equalfuncs.c.

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

Referenced by equal().

2385 {
2386  COMPARE_NODE_FIELD(funcname);
2388  COMPARE_NODE_FIELD(agg_order);
2389  COMPARE_NODE_FIELD(agg_filter);
2390  COMPARE_NODE_FIELD(over);
2391  COMPARE_SCALAR_FIELD(agg_within_group);
2392  COMPARE_SCALAR_FIELD(agg_star);
2393  COMPARE_SCALAR_FIELD(agg_distinct);
2394  COMPARE_SCALAR_FIELD(func_variadic);
2395  COMPARE_SCALAR_FIELD(funcformat);
2396  COMPARE_LOCATION_FIELD(location);
2397 
2398  return true;
2399 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFuncExpr()

static bool _equalFuncExpr ( const FuncExpr a,
const FuncExpr b 
)
static

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

292 {
293  COMPARE_SCALAR_FIELD(funcid);
294  COMPARE_SCALAR_FIELD(funcresulttype);
295  COMPARE_SCALAR_FIELD(funcretset);
296  COMPARE_SCALAR_FIELD(funcvariadic);
297  COMPARE_COERCIONFORM_FIELD(funcformat);
298  COMPARE_SCALAR_FIELD(funccollid);
299  COMPARE_SCALAR_FIELD(inputcollid);
301  COMPARE_LOCATION_FIELD(location);
302 
303  return true;
304 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFunctionParameter()

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

Definition at line 1411 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, mode, and name.

Referenced by equal().

1412 {
1414  COMPARE_NODE_FIELD(argType);
1416  COMPARE_NODE_FIELD(defexpr);
1417 
1418  return true;
1419 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGrantRoleStmt()

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

Definition at line 1174 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1175 {
1176  COMPARE_NODE_FIELD(granted_roles);
1177  COMPARE_NODE_FIELD(grantee_roles);
1178  COMPARE_SCALAR_FIELD(is_grant);
1179  COMPARE_SCALAR_FIELD(admin_opt);
1180  COMPARE_NODE_FIELD(grantor);
1181  COMPARE_SCALAR_FIELD(behavior);
1182 
1183  return true;
1184 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGrantStmt()

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

Definition at line 1139 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1140 {
1141  COMPARE_SCALAR_FIELD(is_grant);
1142  COMPARE_SCALAR_FIELD(targtype);
1143  COMPARE_SCALAR_FIELD(objtype);
1144  COMPARE_NODE_FIELD(objects);
1145  COMPARE_NODE_FIELD(privileges);
1146  COMPARE_NODE_FIELD(grantees);
1147  COMPARE_SCALAR_FIELD(grant_option);
1148  COMPARE_NODE_FIELD(grantor);
1149  COMPARE_SCALAR_FIELD(behavior);
1150 
1151  return true;
1152 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGroupingFunc()

static bool _equalGroupingFunc ( const GroupingFunc a,
const GroupingFunc b 
)
static

Definition at line 243 of file equalfuncs.c.

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

Referenced by equal().

244 {
246 
247  /*
248  * We must not compare the refs or cols field
249  */
250 
251  COMPARE_SCALAR_FIELD(agglevelsup);
252  COMPARE_LOCATION_FIELD(location);
253 
254  return true;
255 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGroupingSet()

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

Definition at line 2770 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2771 {
2772  COMPARE_SCALAR_FIELD(kind);
2773  COMPARE_NODE_FIELD(content);
2774  COMPARE_LOCATION_FIELD(location);
2775 
2776  return true;
2777 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalImportForeignSchemaStmt()

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

Definition at line 1994 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1995 {
1996  COMPARE_STRING_FIELD(server_name);
1997  COMPARE_STRING_FIELD(remote_schema);
1998  COMPARE_STRING_FIELD(local_schema);
1999  COMPARE_SCALAR_FIELD(list_type);
2000  COMPARE_NODE_FIELD(table_list);
2002 
2003  return true;
2004 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIndexElem()

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

Definition at line 2583 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2584 {
2586  COMPARE_NODE_FIELD(expr);
2587  COMPARE_STRING_FIELD(indexcolname);
2588  COMPARE_NODE_FIELD(collation);
2589  COMPARE_NODE_FIELD(opclass);
2590  COMPARE_NODE_FIELD(opclassopts);
2591  COMPARE_SCALAR_FIELD(ordering);
2592  COMPARE_SCALAR_FIELD(nulls_ordering);
2593 
2594  return true;
2595 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIndexStmt()

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

Definition at line 1345 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1346 {
1347  COMPARE_STRING_FIELD(idxname);
1348  COMPARE_NODE_FIELD(relation);
1349  COMPARE_STRING_FIELD(accessMethod);
1350  COMPARE_STRING_FIELD(tableSpace);
1351  COMPARE_NODE_FIELD(indexParams);
1352  COMPARE_NODE_FIELD(indexIncludingParams);
1354  COMPARE_NODE_FIELD(whereClause);
1355  COMPARE_NODE_FIELD(excludeOpNames);
1356  COMPARE_STRING_FIELD(idxcomment);
1357  COMPARE_SCALAR_FIELD(indexOid);
1358  COMPARE_SCALAR_FIELD(oldNode);
1359  COMPARE_SCALAR_FIELD(oldCreateSubid);
1360  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1361  COMPARE_SCALAR_FIELD(unique);
1362  COMPARE_SCALAR_FIELD(primary);
1363  COMPARE_SCALAR_FIELD(isconstraint);
1364  COMPARE_SCALAR_FIELD(deferrable);
1365  COMPARE_SCALAR_FIELD(initdeferred);
1366  COMPARE_SCALAR_FIELD(transformed);
1367  COMPARE_SCALAR_FIELD(concurrent);
1368  COMPARE_SCALAR_FIELD(if_not_exists);
1369  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1370 
1371  return true;
1372 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalInferClause()

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

Definition at line 2822 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2823 {
2824  COMPARE_NODE_FIELD(indexElems);
2825  COMPARE_NODE_FIELD(whereClause);
2826  COMPARE_STRING_FIELD(conname);
2827  COMPARE_LOCATION_FIELD(location);
2828 
2829  return true;
2830 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalInferenceElem()

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

Definition at line 754 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

755 {
756  COMPARE_NODE_FIELD(expr);
757  COMPARE_SCALAR_FIELD(infercollid);
758  COMPARE_SCALAR_FIELD(inferopclass);
759 
760  return true;
761 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalInsertStmt()

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

Definition at line 1009 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1010 {
1011  COMPARE_NODE_FIELD(relation);
1012  COMPARE_NODE_FIELD(cols);
1013  COMPARE_NODE_FIELD(selectStmt);
1014  COMPARE_NODE_FIELD(onConflictClause);
1015  COMPARE_NODE_FIELD(returningList);
1016  COMPARE_NODE_FIELD(withClause);
1017  COMPARE_SCALAR_FIELD(override);
1018 
1019  return true;
1020 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIntoClause()

static bool _equalIntoClause ( const IntoClause a,
const IntoClause b 
)
static

Definition at line 141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

142 {
143  COMPARE_NODE_FIELD(rel);
144  COMPARE_NODE_FIELD(colNames);
145  COMPARE_STRING_FIELD(accessMethod);
147  COMPARE_SCALAR_FIELD(onCommit);
148  COMPARE_STRING_FIELD(tableSpaceName);
149  COMPARE_NODE_FIELD(viewQuery);
150  COMPARE_SCALAR_FIELD(skipData);
151 
152  return true;
153 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalJoinExpr()

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

Definition at line 786 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

787 {
788  COMPARE_SCALAR_FIELD(jointype);
789  COMPARE_SCALAR_FIELD(isNatural);
790  COMPARE_NODE_FIELD(larg);
791  COMPARE_NODE_FIELD(rarg);
792  COMPARE_NODE_FIELD(usingClause);
793  COMPARE_NODE_FIELD(quals);
794  COMPARE_NODE_FIELD(alias);
795  COMPARE_SCALAR_FIELD(rtindex);
796 
797  return true;
798 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalList()

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

Definition at line 2984 of file equalfuncs.c.

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

Referenced by equal().

2985 {
2986  const ListCell *item_a;
2987  const ListCell *item_b;
2988 
2989  /*
2990  * Try to reject by simple scalar checks before grovelling through all the
2991  * list elements...
2992  */
2994  COMPARE_SCALAR_FIELD(length);
2995 
2996  /*
2997  * We place the switch outside the loop for the sake of efficiency; this
2998  * may not be worth doing...
2999  */
3000  switch (a->type)
3001  {
3002  case T_List:
3003  forboth(item_a, a, item_b, b)
3004  {
3005  if (!equal(lfirst(item_a), lfirst(item_b)))
3006  return false;
3007  }
3008  break;
3009  case T_IntList:
3010  forboth(item_a, a, item_b, b)
3011  {
3012  if (lfirst_int(item_a) != lfirst_int(item_b))
3013  return false;
3014  }
3015  break;
3016  case T_OidList:
3017  forboth(item_a, a, item_b, b)
3018  {
3019  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3020  return false;
3021  }
3022  break;
3023  default:
3024  elog(ERROR, "unrecognized list node type: %d",
3025  (int) a->type);
3026  return false; /* keep compiler quiet */
3027  }
3028 
3029  /*
3030  * If we got here, we should have run out of elements of both lists
3031  */
3032  Assert(item_a == NULL);
3033  Assert(item_b == NULL);
3034 
3035  return true;
3036 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:446
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3073
#define ERROR
Definition: elog.h:45
#define lfirst_int(lc)
Definition: pg_list.h:170
Definition: nodes.h:298
#define Assert(condition)
Definition: c.h:804
#define lfirst(lc)
Definition: pg_list.h:169
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:228
#define lfirst_oid(lc)
Definition: pg_list.h:171
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalListenStmt()

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

Definition at line 1531 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1532 {
1533  COMPARE_STRING_FIELD(conditionname);
1534 
1535  return true;
1536 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalLoadStmt()

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

Definition at line 1612 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1613 {
1615 
1616  return true;
1617 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
static char * filename
Definition: pg_dumpall.c:91

◆ _equalLockingClause()

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

Definition at line 2669 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2670 {
2671  COMPARE_NODE_FIELD(lockedRels);
2672  COMPARE_SCALAR_FIELD(strength);
2673  COMPARE_SCALAR_FIELD(waitPolicy);
2674 
2675  return true;
2676 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalLockStmt()

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

Definition at line 2123 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2124 {
2125  COMPARE_NODE_FIELD(relations);
2127  COMPARE_SCALAR_FIELD(nowait);
2128 
2129  return true;
2130 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMinMaxExpr()

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

Definition at line 639 of file equalfuncs.c.

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

Referenced by equal().

640 {
641  COMPARE_SCALAR_FIELD(minmaxtype);
642  COMPARE_SCALAR_FIELD(minmaxcollid);
643  COMPARE_SCALAR_FIELD(inputcollid);
646  COMPARE_LOCATION_FIELD(location);
647 
648  return true;
649 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMultiAssignRef()

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

Definition at line 2447 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and source.

Referenced by equal().

2448 {
2450  COMPARE_SCALAR_FIELD(colno);
2451  COMPARE_SCALAR_FIELD(ncolumns);
2452 
2453  return true;
2454 }
static rewind_source * source
Definition: pg_rewind.c:79
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNamedArgExpr()

static bool _equalNamedArgExpr ( const NamedArgExpr a,
const NamedArgExpr b 
)
static

Definition at line 307 of file equalfuncs.c.

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

Referenced by equal().

308 {
311  COMPARE_SCALAR_FIELD(argnumber);
312  COMPARE_LOCATION_FIELD(location);
313 
314  return true;
315 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNextValueExpr()

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

Definition at line 745 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

746 {
747  COMPARE_SCALAR_FIELD(seqid);
748  COMPARE_SCALAR_FIELD(typeId);
749 
750  return true;
751 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1522 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1523 {
1524  COMPARE_STRING_FIELD(conditionname);
1525  COMPARE_STRING_FIELD(payload);
1526 
1527  return true;
1528 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

static bool _equalNullIfExpr ( const NullIfExpr a,
const NullIfExpr b 
)
static

Definition at line 370 of file equalfuncs.c.

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

Referenced by equal().

371 {
372  COMPARE_SCALAR_FIELD(opno);
373 
374  /*
375  * Special-case opfuncid: it is allowable for it to differ if one node
376  * contains zero and the other doesn't. This just means that the one node
377  * isn't as far along in the parse/plan pipeline and hasn't had the
378  * opfuncid cache filled yet.
379  */
380  if (a->opfuncid != b->opfuncid &&
381  a->opfuncid != 0 &&
382  b->opfuncid != 0)
383  return false;
384 
385  COMPARE_SCALAR_FIELD(opresulttype);
386  COMPARE_SCALAR_FIELD(opretset);
387  COMPARE_SCALAR_FIELD(opcollid);
388  COMPARE_SCALAR_FIELD(inputcollid);
390  COMPARE_LOCATION_FIELD(location);
391 
392  return true;
393 }
Oid opfuncid
Definition: primnodes.h:538
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNullTest()

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

Definition at line 679 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

680 {
682  COMPARE_SCALAR_FIELD(nulltesttype);
683  COMPARE_SCALAR_FIELD(argisrow);
684  COMPARE_LOCATION_FIELD(location);
685 
686  return true;
687 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalObjectWithArgs()

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

Definition at line 1155 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1156 {
1157  COMPARE_NODE_FIELD(objname);
1158  COMPARE_NODE_FIELD(objargs);
1159  COMPARE_SCALAR_FIELD(args_unspecified);
1160 
1161  return true;
1162 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOnConflictClause()

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

Definition at line 2833 of file equalfuncs.c.

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

Referenced by equal().

2834 {
2836  COMPARE_NODE_FIELD(infer);
2837  COMPARE_NODE_FIELD(targetList);
2838  COMPARE_NODE_FIELD(whereClause);
2839  COMPARE_LOCATION_FIELD(location);
2840 
2841  return true;
2842 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOnConflictExpr()

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

Definition at line 810 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

811 {
813  COMPARE_NODE_FIELD(arbiterElems);
814  COMPARE_NODE_FIELD(arbiterWhere);
815  COMPARE_SCALAR_FIELD(constraint);
816  COMPARE_NODE_FIELD(onConflictSet);
817  COMPARE_NODE_FIELD(onConflictWhere);
818  COMPARE_SCALAR_FIELD(exclRelIndex);
819  COMPARE_NODE_FIELD(exclRelTlist);
820 
821  return true;
822 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOpExpr()

static bool _equalOpExpr ( const OpExpr a,
const OpExpr b 
)
static

Definition at line 318 of file equalfuncs.c.

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

Referenced by equal().

319 {
320  COMPARE_SCALAR_FIELD(opno);
321 
322  /*
323  * Special-case opfuncid: it is allowable for it to differ if one node
324  * contains zero and the other doesn't. This just means that the one node
325  * isn't as far along in the parse/plan pipeline and hasn't had the
326  * opfuncid cache filled yet.
327  */
328  if (a->opfuncid != b->opfuncid &&
329  a->opfuncid != 0 &&
330  b->opfuncid != 0)
331  return false;
332 
333  COMPARE_SCALAR_FIELD(opresulttype);
334  COMPARE_SCALAR_FIELD(opretset);
335  COMPARE_SCALAR_FIELD(opcollid);
336  COMPARE_SCALAR_FIELD(inputcollid);
338  COMPARE_LOCATION_FIELD(location);
339 
340  return true;
341 }
Oid opfuncid
Definition: primnodes.h:538
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalParam()

static bool _equalParam ( const Param a,
const Param b 
)
static

Definition at line 204 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

205 {
206  COMPARE_SCALAR_FIELD(paramkind);
207  COMPARE_SCALAR_FIELD(paramid);
208  COMPARE_SCALAR_FIELD(paramtype);
209  COMPARE_SCALAR_FIELD(paramtypmod);
210  COMPARE_SCALAR_FIELD(paramcollid);
211  COMPARE_LOCATION_FIELD(location);
212 
213  return true;
214 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalParamRef()

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

Definition at line 2365 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2366 {
2367  COMPARE_SCALAR_FIELD(number);
2368  COMPARE_LOCATION_FIELD(location);
2369 
2370  return true;
2371 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionBoundSpec()

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

Definition at line 2946 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2947 {
2948  COMPARE_SCALAR_FIELD(strategy);
2949  COMPARE_SCALAR_FIELD(is_default);
2950  COMPARE_SCALAR_FIELD(modulus);
2951  COMPARE_SCALAR_FIELD(remainder);
2952  COMPARE_NODE_FIELD(listdatums);
2953  COMPARE_NODE_FIELD(lowerdatums);
2954  COMPARE_NODE_FIELD(upperdatums);
2955  COMPARE_LOCATION_FIELD(location);
2956 
2957  return true;
2958 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionCmd()

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

Definition at line 2971 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2972 {
2974  COMPARE_NODE_FIELD(bound);
2975 
2976  return true;
2977 }
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionElem()

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

Definition at line 2924 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2925 {
2927  COMPARE_NODE_FIELD(expr);
2928  COMPARE_NODE_FIELD(collation);
2929  COMPARE_NODE_FIELD(opclass);
2930  COMPARE_LOCATION_FIELD(location);
2931 
2932  return true;
2933 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionRangeDatum()

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

Definition at line 2961 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2962 {
2963  COMPARE_SCALAR_FIELD(kind);
2965  COMPARE_LOCATION_FIELD(location);
2966 
2967  return true;
2968 }
static struct @141 value
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionSpec()

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

Definition at line 2936 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2937 {
2938  COMPARE_STRING_FIELD(strategy);
2939  COMPARE_NODE_FIELD(partParams);
2940  COMPARE_LOCATION_FIELD(location);
2941 
2942  return true;
2943 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPathKey()

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

Definition at line 829 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

830 {
831  /* We assume pointer equality is sufficient to compare the eclasses */
832  COMPARE_SCALAR_FIELD(pk_eclass);
833  COMPARE_SCALAR_FIELD(pk_opfamily);
834  COMPARE_SCALAR_FIELD(pk_strategy);
835  COMPARE_SCALAR_FIELD(pk_nulls_first);
836 
837  return true;
838 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPlaceHolderInfo()

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

Definition at line 918 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

919 {
920  COMPARE_SCALAR_FIELD(phid);
921  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
922  COMPARE_BITMAPSET_FIELD(ph_eval_at);
923  COMPARE_BITMAPSET_FIELD(ph_lateral);
924  COMPARE_BITMAPSET_FIELD(ph_needed);
925  COMPARE_SCALAR_FIELD(ph_width);
926 
927  return true;
928 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPlaceHolderVar()

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

Definition at line 860 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPLAssignStmt()

static bool _equalPLAssignStmt ( const PLAssignStmt a,
const PLAssignStmt b 
)
static

Definition at line 1089 of file equalfuncs.c.

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

Referenced by equal().

1090 {
1092  COMPARE_NODE_FIELD(indirection);
1093  COMPARE_SCALAR_FIELD(nnames);
1095  COMPARE_LOCATION_FIELD(location);
1096 
1097  return true;
1098 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPrepareStmt()

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

Definition at line 2188 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2189 {
2191  COMPARE_NODE_FIELD(argtypes);
2192  COMPARE_NODE_FIELD(query);
2193 
2194  return true;
2195 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalQuery()

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

Definition at line 955 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

956 {
957  COMPARE_SCALAR_FIELD(commandType);
958  COMPARE_SCALAR_FIELD(querySource);
959  /* we intentionally ignore queryId, since it might not be set */
960  COMPARE_SCALAR_FIELD(canSetTag);
961  COMPARE_NODE_FIELD(utilityStmt);
962  COMPARE_SCALAR_FIELD(resultRelation);
963  COMPARE_SCALAR_FIELD(hasAggs);
964  COMPARE_SCALAR_FIELD(hasWindowFuncs);
965  COMPARE_SCALAR_FIELD(hasTargetSRFs);
966  COMPARE_SCALAR_FIELD(hasSubLinks);
967  COMPARE_SCALAR_FIELD(hasDistinctOn);
968  COMPARE_SCALAR_FIELD(hasRecursive);
969  COMPARE_SCALAR_FIELD(hasModifyingCTE);
970  COMPARE_SCALAR_FIELD(hasForUpdate);
971  COMPARE_SCALAR_FIELD(hasRowSecurity);
972  COMPARE_NODE_FIELD(cteList);
973  COMPARE_NODE_FIELD(rtable);
974  COMPARE_NODE_FIELD(jointree);
975  COMPARE_NODE_FIELD(targetList);
976  COMPARE_SCALAR_FIELD(override);
977  COMPARE_NODE_FIELD(onConflict);
978  COMPARE_NODE_FIELD(returningList);
979  COMPARE_NODE_FIELD(groupClause);
980  COMPARE_NODE_FIELD(groupingSets);
981  COMPARE_NODE_FIELD(havingQual);
982  COMPARE_NODE_FIELD(windowClause);
983  COMPARE_NODE_FIELD(distinctClause);
984  COMPARE_NODE_FIELD(sortClause);
985  COMPARE_NODE_FIELD(limitOffset);
986  COMPARE_NODE_FIELD(limitCount);
987  COMPARE_SCALAR_FIELD(limitOption);
988  COMPARE_NODE_FIELD(rowMarks);
989  COMPARE_NODE_FIELD(setOperations);
990  COMPARE_NODE_FIELD(constraintDeps);
991  COMPARE_NODE_FIELD(withCheckOptions);
992  COMPARE_LOCATION_FIELD(stmt_location);
993  COMPARE_SCALAR_FIELD(stmt_len);
994 
995  return true;
996 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeFunction()

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

Definition at line 2529 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2530 {
2531  COMPARE_SCALAR_FIELD(lateral);
2532  COMPARE_SCALAR_FIELD(ordinality);
2533  COMPARE_SCALAR_FIELD(is_rowsfrom);
2535  COMPARE_NODE_FIELD(alias);
2536  COMPARE_NODE_FIELD(coldeflist);
2537 
2538  return true;
2539 }
static const struct fns functions
Definition: regcomp.c:312
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeSubselect()

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

Definition at line 2519 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2520 {
2521  COMPARE_SCALAR_FIELD(lateral);
2522  COMPARE_NODE_FIELD(subquery);
2523  COMPARE_NODE_FIELD(alias);
2524 
2525  return true;
2526 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTableFunc()

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

Definition at line 2554 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2555 {
2556  COMPARE_SCALAR_FIELD(lateral);
2557  COMPARE_NODE_FIELD(docexpr);
2558  COMPARE_NODE_FIELD(rowexpr);
2559  COMPARE_NODE_FIELD(namespaces);
2560  COMPARE_NODE_FIELD(columns);
2561  COMPARE_NODE_FIELD(alias);
2562  COMPARE_LOCATION_FIELD(location);
2563 
2564  return true;
2565 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTableFuncCol()

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

Definition at line 2568 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2569 {
2570  COMPARE_STRING_FIELD(colname);
2571  COMPARE_NODE_FIELD(typeName);
2572  COMPARE_SCALAR_FIELD(for_ordinality);
2573  COMPARE_SCALAR_FIELD(is_not_null);
2574  COMPARE_NODE_FIELD(colexpr);
2575  COMPARE_NODE_FIELD(coldefexpr);
2576  COMPARE_LOCATION_FIELD(location);
2577 
2578  return true;
2579 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTableSample()

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

Definition at line 2542 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2543 {
2544  COMPARE_NODE_FIELD(relation);
2545  COMPARE_NODE_FIELD(method);
2547  COMPARE_NODE_FIELD(repeatable);
2548  COMPARE_LOCATION_FIELD(location);
2549 
2550  return true;
2551 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRangeTblEntry()

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

Definition at line 2679 of file equalfuncs.c.

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

Referenced by equal().

2680 {
2681  COMPARE_SCALAR_FIELD(rtekind);
2682  COMPARE_SCALAR_FIELD(relid);
2683  COMPARE_SCALAR_FIELD(relkind);
2684  COMPARE_SCALAR_FIELD(rellockmode);
2685  COMPARE_NODE_FIELD(tablesample);
2686  COMPARE_NODE_FIELD(subquery);
2687  COMPARE_SCALAR_FIELD(security_barrier);
2688  COMPARE_SCALAR_FIELD(jointype);
2689  COMPARE_SCALAR_FIELD(joinmergedcols);
2690  COMPARE_NODE_FIELD(joinaliasvars);
2691  COMPARE_NODE_FIELD(joinleftcols);
2692  COMPARE_NODE_FIELD(joinrightcols);
2694  COMPARE_SCALAR_FIELD(funcordinality);
2695  COMPARE_NODE_FIELD(tablefunc);
2696  COMPARE_NODE_FIELD(values_lists);
2697  COMPARE_STRING_FIELD(ctename);
2698  COMPARE_SCALAR_FIELD(ctelevelsup);
2699  COMPARE_SCALAR_FIELD(self_reference);
2700  COMPARE_NODE_FIELD(coltypes);
2701  COMPARE_NODE_FIELD(coltypmods);
2702  COMPARE_NODE_FIELD(colcollations);
2703  COMPARE_STRING_FIELD(enrname);
2704  COMPARE_SCALAR_FIELD(enrtuples);
2705  COMPARE_NODE_FIELD(alias);
2706  COMPARE_NODE_FIELD(eref);
2707  COMPARE_SCALAR_FIELD(lateral);
2708  COMPARE_SCALAR_FIELD(inh);
2709  COMPARE_SCALAR_FIELD(inFromCl);
2710  COMPARE_SCALAR_FIELD(requiredPerms);
2711  COMPARE_SCALAR_FIELD(checkAsUser);
2712  COMPARE_BITMAPSET_FIELD(selectedCols);
2713  COMPARE_BITMAPSET_FIELD(insertedCols);
2714  COMPARE_BITMAPSET_FIELD(updatedCols);
2715  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2716  COMPARE_NODE_FIELD(securityQuals);
2717 
2718  return true;
2719 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
static const struct fns functions
Definition: regcomp.c:312
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTblFunction()

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

Definition at line 2722 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2723 {
2724  COMPARE_NODE_FIELD(funcexpr);
2725  COMPARE_SCALAR_FIELD(funccolcount);
2726  COMPARE_NODE_FIELD(funccolnames);
2727  COMPARE_NODE_FIELD(funccoltypes);
2728  COMPARE_NODE_FIELD(funccoltypmods);
2729  COMPARE_NODE_FIELD(funccolcollations);
2730  COMPARE_BITMAPSET_FIELD(funcparams);
2731 
2732  return true;
2733 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTblRef()

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

Definition at line 778 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

779 {
780  COMPARE_SCALAR_FIELD(rtindex);
781 
782  return true;
783 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeVar()

static bool _equalRangeVar ( const RangeVar a,
const RangeVar b 
)
static

Definition at line 107 of file equalfuncs.c.

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

Referenced by equal().

108 {
109  COMPARE_STRING_FIELD(catalogname);
110  COMPARE_STRING_FIELD(schemaname);
113  COMPARE_SCALAR_FIELD(relpersistence);
114  COMPARE_NODE_FIELD(alias);
115  COMPARE_LOCATION_FIELD(location);
116 
117  return true;
118 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData relname
Definition: pg_class.h:38
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRawStmt()

static bool _equalRawStmt ( const RawStmt a,
const RawStmt b 
)
static

Definition at line 999 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1000 {
1001  COMPARE_NODE_FIELD(stmt);
1002  COMPARE_LOCATION_FIELD(stmt_location);
1003  COMPARE_SCALAR_FIELD(stmt_len);
1004 
1005  return true;
1006 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalReassignOwnedStmt()

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

Definition at line 2224 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2225 {
2226  COMPARE_NODE_FIELD(roles);
2227  COMPARE_NODE_FIELD(newrole);
2228 
2229  return true;
2230 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1755 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1756 {
1757  COMPARE_SCALAR_FIELD(concurrent);
1758  COMPARE_SCALAR_FIELD(skipData);
1759  COMPARE_NODE_FIELD(relation);
1760 
1761  return true;
1762 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalReindexStmt()

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

Definition at line 2142 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2143 {
2144  COMPARE_SCALAR_FIELD(kind);
2145  COMPARE_NODE_FIELD(relation);
2147  COMPARE_NODE_FIELD(params);
2148 
2149  return true;
2150 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRelabelType()

static bool _equalRelabelType ( const RelabelType a,
const RelabelType b 
)
static

Definition at line 497 of file equalfuncs.c.

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

Referenced by equal().

498 {
500  COMPARE_SCALAR_FIELD(resulttype);
501  COMPARE_SCALAR_FIELD(resulttypmod);
502  COMPARE_SCALAR_FIELD(resultcollid);
503  COMPARE_COERCIONFORM_FIELD(relabelformat);
504  COMPARE_LOCATION_FIELD(location);
505 
506  return true;
507 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRenameStmt()

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

Definition at line 1440 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1441 {
1442  COMPARE_SCALAR_FIELD(renameType);
1443  COMPARE_SCALAR_FIELD(relationType);
1444  COMPARE_NODE_FIELD(relation);
1445  COMPARE_NODE_FIELD(object);
1447  COMPARE_STRING_FIELD(newname);
1448  COMPARE_SCALAR_FIELD(behavior);
1449  COMPARE_SCALAR_FIELD(missing_ok);
1450 
1451  return true;
1452 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalReplicaIdentityStmt()

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

Definition at line 1765 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1766 {
1767  COMPARE_SCALAR_FIELD(identity_type);
1769 
1770  return true;
1771 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalResTarget()

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

Definition at line 2436 of file equalfuncs.c.

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

Referenced by equal().

2437 {
2439  COMPARE_NODE_FIELD(indirection);
2441  COMPARE_LOCATION_FIELD(location);
2442 
2443  return true;
2444 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664

◆ _equalRestrictInfo()

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

Definition at line 841 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

842 {
843  COMPARE_NODE_FIELD(clause);
844  COMPARE_SCALAR_FIELD(is_pushed_down);
845  COMPARE_SCALAR_FIELD(outerjoin_delayed);
846  COMPARE_SCALAR_FIELD(security_level);
847  COMPARE_BITMAPSET_FIELD(required_relids);
848  COMPARE_BITMAPSET_FIELD(outer_relids);
849  COMPARE_BITMAPSET_FIELD(nullable_relids);
850 
851  /*
852  * We ignore all the remaining fields, since they may not be set yet, and
853  * should be derivable from the clause anyway.
854  */
855 
856  return true;
857 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRoleSpec()

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

Definition at line 2904 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2905 {
2906  COMPARE_SCALAR_FIELD(roletype);
2907  COMPARE_STRING_FIELD(rolename);
2908  COMPARE_LOCATION_FIELD(location);
2909 
2910  return true;
2911 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRowCompareExpr()

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

Definition at line 615 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

616 {
617  COMPARE_SCALAR_FIELD(rctype);
618  COMPARE_NODE_FIELD(opnos);
619  COMPARE_NODE_FIELD(opfamilies);
620  COMPARE_NODE_FIELD(inputcollids);
621  COMPARE_NODE_FIELD(largs);
622  COMPARE_NODE_FIELD(rargs);
623 
624  return true;
625 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRowExpr()

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

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

604 {
606  COMPARE_SCALAR_FIELD(row_typeid);
607  COMPARE_COERCIONFORM_FIELD(row_format);
608  COMPARE_NODE_FIELD(colnames);
609  COMPARE_LOCATION_FIELD(location);
610 
611  return true;
612 }