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_ARRAY_FIELD(fldname)
 
#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 _equalReturnStmt (const ReturnStmt *a, const ReturnStmt *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 _equalAlterCollationStmt (const AlterCollationStmt *a, const AlterCollationStmt *b)
 
static bool _equalAlterDomainStmt (const AlterDomainStmt *a, const AlterDomainStmt *b)
 
static bool _equalGrantStmt (const GrantStmt *a, const GrantStmt *b)
 
static bool _equalObjectWithArgs (const ObjectWithArgs *a, const ObjectWithArgs *b)
 
static bool _equalAccessPriv (const AccessPriv *a, const AccessPriv *b)
 
static bool _equalGrantRoleStmt (const GrantRoleStmt *a, const GrantRoleStmt *b)
 
static bool _equalAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *a, const AlterDefaultPrivilegesStmt *b)
 
static bool _equalDeclareCursorStmt (const DeclareCursorStmt *a, const DeclareCursorStmt *b)
 
static bool _equalClosePortalStmt (const ClosePortalStmt *a, const ClosePortalStmt *b)
 
static bool _equalCallStmt (const CallStmt *a, const CallStmt *b)
 
static bool _equalClusterStmt (const ClusterStmt *a, const ClusterStmt *b)
 
static bool _equalCopyStmt (const CopyStmt *a, const CopyStmt *b)
 
static bool _equalCreateStmt (const CreateStmt *a, const CreateStmt *b)
 
static bool _equalTableLikeClause (const TableLikeClause *a, const TableLikeClause *b)
 
static bool _equalDefineStmt (const DefineStmt *a, const DefineStmt *b)
 
static bool _equalDropStmt (const DropStmt *a, const DropStmt *b)
 
static bool _equalTruncateStmt (const TruncateStmt *a, const TruncateStmt *b)
 
static bool _equalCommentStmt (const CommentStmt *a, const CommentStmt *b)
 
static bool _equalSecLabelStmt (const SecLabelStmt *a, const SecLabelStmt *b)
 
static bool _equalFetchStmt (const FetchStmt *a, const FetchStmt *b)
 
static bool _equalIndexStmt (const IndexStmt *a, const IndexStmt *b)
 
static bool _equalCreateStatsStmt (const CreateStatsStmt *a, const CreateStatsStmt *b)
 
static bool _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 _equalPublicationTable (const PublicationTable *a, const PublicationTable *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 _equalA_Expr (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 _equalA_Const (const A_Const *a, const A_Const *b)
 
static bool _equalFuncCall (const FuncCall *a, const FuncCall *b)
 
static bool _equalA_Star (const A_Star *a, const A_Star *b)
 
static bool _equalA_Indices (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 _equalStatsElem (const StatsElem *a, const StatsElem *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 _equalInteger (const Integer *a, const Integer *b)
 
static bool _equalFloat (const Float *a, const Float *b)
 
static bool _equalString (const String *a, const String *b)
 
static bool _equalBitString (const BitString *a, const BitString *b)
 
bool equal (const void *a, const void *b)
 

Macro Definition Documentation

◆ COMPARE_ARRAY_FIELD

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

Definition at line 78 of file equalfuncs.c.

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

Definition at line 53 of file equalfuncs.c.

Referenced by _equalA_ArrayExpr(), _equalA_Expr(), _equalA_Indices(), _equalA_Indirection(), _equalAccessPriv(), _equalAggref(), _equalAlias(), _equalAlterCollationStmt(), _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(), _equalPublicationTable(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTableSample(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeVar(), _equalRawStmt(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalReturnStmt(), _equalRowCompareExpr(), _equalRowExpr(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSortBy(), _equalSpecialJoinInfo(), _equalStatsElem(), _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 85 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 _equalA_Const(), _equalA_Expr(), _equalA_Indices(), _equalAggref(), _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(), _equalInteger(), _equalIntoClause(), _equalJoinExpr(), _equalList(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNextValueExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalPartitionBoundSpec(), _equalPartitionCmd(), _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(), _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(), _equalBitString(), _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(), _equalFloat(), _equalFunctionParameter(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalIntoClause(), _equalListenStmt(), _equalLoadStmt(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalPartitionElem(), _equalPartitionSpec(), _equalPLAssignStmt(), _equalPrepareStmt(), _equalRangeTableFuncCol(), _equalRangeTblEntry(), _equalRangeVar(), _equalReindexStmt(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalResTarget(), _equalRoleSpec(), _equalRuleStmt(), _equalSecLabelStmt(), _equalStatsElem(), _equalString(), _equalSubPlan(), _equalTargetEntry(), _equalTransactionStmt(), _equalTriggerTransition(), _equalUnlistenStmt(), _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 2484 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2485 {
2486  COMPARE_NODE_FIELD(elements);
2487  COMPARE_LOCATION_FIELD(location);
2488 
2489  return true;
2490 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalA_Const()

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

Definition at line 2425 of file equalfuncs.c.

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

Referenced by equal().

2426 {
2427  /*
2428  * Hack for in-line val field. Also val is not valid is isnull is
2429  * true.
2430  */
2431  if (!a->isnull && !b->isnull &&
2432  !equal(&a->val, &b->val))
2433  return false;
2434  COMPARE_SCALAR_FIELD(isnull);
2435  COMPARE_LOCATION_FIELD(location);
2436 
2437  return true;
2438 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3149
bool isnull
Definition: parsenodes.h:310
union A_Const::ValUnion val
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalA_Expr()

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

Definition at line 2395 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2396 {
2397  COMPARE_SCALAR_FIELD(kind);
2399  COMPARE_NODE_FIELD(lexpr);
2400  COMPARE_NODE_FIELD(rexpr);
2401  COMPARE_LOCATION_FIELD(location);
2402 
2403  return true;
2404 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalA_Indices()

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

Definition at line 2465 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2466 {
2467  COMPARE_SCALAR_FIELD(is_slice);
2468  COMPARE_NODE_FIELD(lidx);
2469  COMPARE_NODE_FIELD(uidx);
2470 
2471  return true;
2472 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalA_Indirection()

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

Definition at line 2475 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2476 {
2478  COMPARE_NODE_FIELD(indirection);
2479 
2480  return true;
2481 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalA_Star()

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

Definition at line 2459 of file equalfuncs.c.

Referenced by equal().

2460 {
2461  return true;
2462 }

◆ _equalAccessPriv()

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

Definition at line 1205 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1206 {
1207  COMPARE_STRING_FIELD(priv_name);
1208  COMPARE_NODE_FIELD(cols);
1209 
1210  return true;
1211 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAggref()

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

Definition at line 224 of file equalfuncs.c.

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

Referenced by equal().

225 {
226  COMPARE_SCALAR_FIELD(aggfnoid);
227  COMPARE_SCALAR_FIELD(aggtype);
228  COMPARE_SCALAR_FIELD(aggcollid);
229  COMPARE_SCALAR_FIELD(inputcollid);
230  /* ignore aggtranstype since it might not be set yet */
231  COMPARE_NODE_FIELD(aggargtypes);
232  COMPARE_NODE_FIELD(aggdirectargs);
234  COMPARE_NODE_FIELD(aggorder);
235  COMPARE_NODE_FIELD(aggdistinct);
236  COMPARE_NODE_FIELD(aggfilter);
237  COMPARE_SCALAR_FIELD(aggstar);
238  COMPARE_SCALAR_FIELD(aggvariadic);
239  COMPARE_SCALAR_FIELD(aggkind);
240  COMPARE_SCALAR_FIELD(agglevelsup);
241  COMPARE_SCALAR_FIELD(aggsplit);
242  COMPARE_SCALAR_FIELD(aggno);
243  COMPARE_SCALAR_FIELD(aggtransno);
244  COMPARE_LOCATION_FIELD(location);
245 
246  return true;
247 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 105 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

106 {
107  COMPARE_STRING_FIELD(aliasname);
108  COMPARE_NODE_FIELD(colnames);
109 
110  return true;
111 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterCollationStmt()

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

Definition at line 1157 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1158 {
1159  COMPARE_NODE_FIELD(collname);
1160 
1161  return true;
1162 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1738 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1739 {
1741  COMPARE_NODE_FIELD(setstmt);
1742 
1743  return true;
1744 }
#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 1729 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1730 {
1733 
1734  return true;
1735 }
#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 1227 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1228 {
1231 
1232  return true;
1233 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1165 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1166 {
1167  COMPARE_SCALAR_FIELD(subtype);
1168  COMPARE_NODE_FIELD(typeName);
1170  COMPARE_NODE_FIELD(def);
1171  COMPARE_SCALAR_FIELD(behavior);
1172  COMPARE_SCALAR_FIELD(missing_ok);
1173 
1174  return true;
1175 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#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 1629 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1630 {
1631  COMPARE_NODE_FIELD(typeName);
1632  COMPARE_STRING_FIELD(oldVal);
1633  COMPARE_STRING_FIELD(newVal);
1634  COMPARE_STRING_FIELD(newValNeighbor);
1635  COMPARE_SCALAR_FIELD(newValIsAfter);
1636  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1637 
1638  return true;
1639 }
#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 2105 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2106 {
2107  COMPARE_STRING_FIELD(trigname);
2108  COMPARE_SCALAR_FIELD(tgenabled);
2109 
2110  return true;
2111 }
#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 1939 of file equalfuncs.c.

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

Referenced by equal().

1940 {
1941  COMPARE_STRING_FIELD(extname);
1943  COMPARE_SCALAR_FIELD(objtype);
1944  COMPARE_NODE_FIELD(object);
1945 
1946  return true;
1947 }
#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 1930 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1931 {
1932  COMPARE_STRING_FIELD(extname);
1934 
1935  return true;
1936 }
#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 1960 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1961 {
1962  COMPARE_STRING_FIELD(fdwname);
1963  COMPARE_NODE_FIELD(func_options);
1965 
1966  return true;
1967 }
#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 1983 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1984 {
1985  COMPARE_STRING_FIELD(servername);
1986  COMPARE_STRING_FIELD(version);
1988  COMPARE_SCALAR_FIELD(has_version);
1989 
1990  return true;
1991 }
#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 1465 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1466 {
1467  COMPARE_SCALAR_FIELD(objtype);
1468  COMPARE_NODE_FIELD(func);
1469  COMPARE_NODE_FIELD(actions);
1470 
1471  return true;
1472 }
#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 485 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

486 {
487  COMPARE_NODE_FIELD(subplans);
488 
489  return true;
490 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1498 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1499 {
1500  COMPARE_SCALAR_FIELD(objectType);
1501  COMPARE_NODE_FIELD(relation);
1502  COMPARE_NODE_FIELD(object);
1503  COMPARE_NODE_FIELD(extname);
1504  COMPARE_SCALAR_FIELD(remove);
1505 
1506  return true;
1507 }
#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 1510 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1511 {
1512  COMPARE_SCALAR_FIELD(objectType);
1513  COMPARE_NODE_FIELD(relation);
1514  COMPARE_NODE_FIELD(object);
1515  COMPARE_STRING_FIELD(newschema);
1516  COMPARE_SCALAR_FIELD(missing_ok);
1517 
1518  return true;
1519 }
#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 1533 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1534 {
1535  COMPARE_NODE_FIELD(opername);
1537 
1538  return true;
1539 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1709 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1710 {
1711  COMPARE_NODE_FIELD(opfamilyname);
1712  COMPARE_STRING_FIELD(amname);
1713  COMPARE_SCALAR_FIELD(isDrop);
1714  COMPARE_NODE_FIELD(items);
1715 
1716  return true;
1717 }
#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 1522 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1523 {
1524  COMPARE_SCALAR_FIELD(objectType);
1525  COMPARE_NODE_FIELD(relation);
1526  COMPARE_NODE_FIELD(object);
1527  COMPARE_NODE_FIELD(newowner);
1528 
1529  return true;
1530 }
#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 2383 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2384 {
2385  COMPARE_STRING_FIELD(policy_name);
2386  COMPARE_NODE_FIELD(table);
2387  COMPARE_NODE_FIELD(roles);
2388  COMPARE_NODE_FIELD(qual);
2389  COMPARE_NODE_FIELD(with_check);
2390 
2391  return true;
2392 }
#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 2320 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2322 {
2323  COMPARE_STRING_FIELD(pubname);
2325  COMPARE_NODE_FIELD(tables);
2326  COMPARE_SCALAR_FIELD(for_all_tables);
2327  COMPARE_SCALAR_FIELD(tableAction);
2328 
2329  return true;
2330 }
#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 2147 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2148 {
2149  COMPARE_NODE_FIELD(role);
2150  COMPARE_STRING_FIELD(database);
2151  COMPARE_NODE_FIELD(setstmt);
2152 
2153  return true;
2154 }
#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 2137 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2138 {
2139  COMPARE_NODE_FIELD(role);
2142 
2143  return true;
2144 }
#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 1838 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1839 {
1840  COMPARE_NODE_FIELD(sequence);
1842  COMPARE_SCALAR_FIELD(for_identity);
1843  COMPARE_SCALAR_FIELD(missing_ok);
1844 
1845  return true;
1846 }
#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 1430 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1431 {
1432  COMPARE_NODE_FIELD(defnames);
1433  COMPARE_SCALAR_FIELD(stxstattarget);
1434  COMPARE_SCALAR_FIELD(missing_ok);
1435 
1436  return true;
1437 }
#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 2345 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2347 {
2348  COMPARE_SCALAR_FIELD(kind);
2350  COMPARE_STRING_FIELD(conninfo);
2351  COMPARE_NODE_FIELD(publication);
2353 
2354  return true;
2355 }
#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 1817 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1818 {
1819  COMPARE_NODE_FIELD(setstmt);
1820 
1821  return true;
1822 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1143 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1144 {
1145  COMPARE_SCALAR_FIELD(subtype);
1147  COMPARE_SCALAR_FIELD(num);
1148  COMPARE_NODE_FIELD(newowner);
1149  COMPARE_NODE_FIELD(def);
1150  COMPARE_SCALAR_FIELD(behavior);
1151  COMPARE_SCALAR_FIELD(missing_ok);
1152 
1153  return true;
1154 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#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 1907 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1909 {
1910  COMPARE_STRING_FIELD(orig_tablespacename);
1911  COMPARE_SCALAR_FIELD(objtype);
1912  COMPARE_NODE_FIELD(roles);
1913  COMPARE_STRING_FIELD(new_tablespacename);
1914  COMPARE_SCALAR_FIELD(nowait);
1915 
1916  return true;
1917 }
#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 1896 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1898 {
1899  COMPARE_STRING_FIELD(tablespacename);
1901  COMPARE_SCALAR_FIELD(isReset);
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

◆ _equalAlterTableStmt()

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

Definition at line 1132 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1133 {
1134  COMPARE_NODE_FIELD(relation);
1135  COMPARE_NODE_FIELD(cmds);
1136  COMPARE_SCALAR_FIELD(objtype);
1137  COMPARE_SCALAR_FIELD(missing_ok);
1138 
1139  return true;
1140 }
#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 2285 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2287 {
2288  COMPARE_SCALAR_FIELD(kind);
2289  COMPARE_NODE_FIELD(cfgname);
2290  COMPARE_NODE_FIELD(tokentype);
2291  COMPARE_NODE_FIELD(dicts);
2292  COMPARE_SCALAR_FIELD(override);
2293  COMPARE_SCALAR_FIELD(replace);
2294  COMPARE_SCALAR_FIELD(missing_ok);
2295 
2296  return true;
2297 }
#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 2276 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2277 {
2278  COMPARE_NODE_FIELD(dictname);
2280 
2281  return true;
2282 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTypeStmt()

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

Definition at line 1542 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1543 {
1544  COMPARE_NODE_FIELD(typeName);
1546 
1547  return true;
1548 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 2005 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

2006 {
2008  COMPARE_STRING_FIELD(servername);
2010 
2011  return true;
2012 }
#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 923 of file equalfuncs.c.

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

Referenced by equal().

924 {
925  COMPARE_SCALAR_FIELD(parent_relid);
926  COMPARE_SCALAR_FIELD(child_relid);
927  COMPARE_SCALAR_FIELD(parent_reltype);
928  COMPARE_SCALAR_FIELD(child_reltype);
929  COMPARE_NODE_FIELD(translated_vars);
930  COMPARE_SCALAR_FIELD(num_child_cols);
931  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
932  COMPARE_SCALAR_FIELD(parent_reloid);
933 
934  return true;
935 }
int num_child_cols
Definition: pathnodes.h:2342
#define COMPARE_POINTER_FIELD(fldname, sz)
Definition: equalfuncs.c:85
#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 541 of file equalfuncs.c.

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

Referenced by equal().

542 {
544  COMPARE_NODE_FIELD(elemexpr);
545  COMPARE_SCALAR_FIELD(resulttype);
546  COMPARE_SCALAR_FIELD(resulttypmod);
547  COMPARE_SCALAR_FIELD(resultcollid);
548  COMPARE_COERCIONFORM_FIELD(coerceformat);
549  COMPARE_LOCATION_FIELD(location);
550 
551  return true;
552 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 609 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

610 {
611  COMPARE_SCALAR_FIELD(array_typeid);
612  COMPARE_SCALAR_FIELD(array_collid);
613  COMPARE_SCALAR_FIELD(element_typeid);
614  COMPARE_NODE_FIELD(elements);
615  COMPARE_SCALAR_FIELD(multidims);
616  COMPARE_LOCATION_FIELD(location);
617 
618  return true;
619 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalBitString()

static bool _equalBitString ( const BitString a,
const BitString b 
)
static

Definition at line 3137 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and val.

Referenced by equal().

3138 {
3140 
3141  return true;
3142 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
long val
Definition: informix.c:664

◆ _equalBooleanTest()

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

Definition at line 709 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

710 {
712  COMPARE_SCALAR_FIELD(booltesttype);
713  COMPARE_LOCATION_FIELD(location);
714 
715  return true;
716 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 439 of file equalfuncs.c.

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

Referenced by equal().

440 {
443  COMPARE_LOCATION_FIELD(location);
444 
445  return true;
446 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:419
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1254 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1255 {
1256  COMPARE_NODE_FIELD(funccall);
1257  COMPARE_NODE_FIELD(funcexpr);
1258  COMPARE_NODE_FIELD(outargs);
1259 
1260  return true;
1261 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 576 of file equalfuncs.c.

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

Referenced by equal().

577 {
578  COMPARE_SCALAR_FIELD(casetype);
579  COMPARE_SCALAR_FIELD(casecollid);
582  COMPARE_NODE_FIELD(defresult);
583  COMPARE_LOCATION_FIELD(location);
584 
585  return true;
586 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 599 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

600 {
601  COMPARE_SCALAR_FIELD(typeId);
602  COMPARE_SCALAR_FIELD(typeMod);
603  COMPARE_SCALAR_FIELD(collation);
604 
605  return true;
606 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseWhen()

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

Definition at line 589 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

590 {
591  COMPARE_NODE_FIELD(expr);
592  COMPARE_NODE_FIELD(result);
593  COMPARE_LOCATION_FIELD(location);
594 
595  return true;
596 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalClosePortalStmt()

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

Definition at line 1246 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1247 {
1248  COMPARE_STRING_FIELD(portalname);
1249 
1250  return true;
1251 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1264 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1265 {
1266  COMPARE_NODE_FIELD(relation);
1267  COMPARE_STRING_FIELD(indexname);
1268  COMPARE_NODE_FIELD(params);
1269 
1270  return true;
1271 }
#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 647 of file equalfuncs.c.

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

Referenced by equal().

648 {
649  COMPARE_SCALAR_FIELD(coalescetype);
650  COMPARE_SCALAR_FIELD(coalescecollid);
652  COMPARE_LOCATION_FIELD(location);
653 
654  return true;
655 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 719 of file equalfuncs.c.

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

Referenced by equal().

720 {
722  COMPARE_SCALAR_FIELD(resulttype);
723  COMPARE_SCALAR_FIELD(resulttypmod);
724  COMPARE_SCALAR_FIELD(resultcollid);
725  COMPARE_COERCIONFORM_FIELD(coercionformat);
726  COMPARE_LOCATION_FIELD(location);
727 
728  return true;
729 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 732 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

733 {
734  COMPARE_SCALAR_FIELD(typeId);
735  COMPARE_SCALAR_FIELD(typeMod);
736  COMPARE_SCALAR_FIELD(collation);
737  COMPARE_LOCATION_FIELD(location);
738 
739  return true;
740 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceViaIO()

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

Definition at line 529 of file equalfuncs.c.

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

Referenced by equal().

530 {
532  COMPARE_SCALAR_FIELD(resulttype);
533  COMPARE_SCALAR_FIELD(resultcollid);
534  COMPARE_COERCIONFORM_FIELD(coerceformat);
535  COMPARE_LOCATION_FIELD(location);
536 
537  return true;
538 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2539 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2540 {
2542  COMPARE_NODE_FIELD(collname);
2543  COMPARE_LOCATION_FIELD(location);
2544 
2545  return true;
2546 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 566 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

567 {
569  COMPARE_SCALAR_FIELD(collOid);
570  COMPARE_LOCATION_FIELD(location);
571 
572  return true;
573 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2665 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2666 {
2667  COMPARE_STRING_FIELD(colname);
2668  COMPARE_NODE_FIELD(typeName);
2669  COMPARE_STRING_FIELD(compression);
2670  COMPARE_SCALAR_FIELD(inhcount);
2671  COMPARE_SCALAR_FIELD(is_local);
2672  COMPARE_SCALAR_FIELD(is_not_null);
2673  COMPARE_SCALAR_FIELD(is_from_type);
2674  COMPARE_SCALAR_FIELD(storage);
2675  COMPARE_NODE_FIELD(raw_default);
2676  COMPARE_NODE_FIELD(cooked_default);
2677  COMPARE_SCALAR_FIELD(identity);
2678  COMPARE_NODE_FIELD(identitySequence);
2679  COMPARE_SCALAR_FIELD(generated);
2680  COMPARE_NODE_FIELD(collClause);
2681  COMPARE_SCALAR_FIELD(collOid);
2682  COMPARE_NODE_FIELD(constraints);
2683  COMPARE_NODE_FIELD(fdwoptions);
2684  COMPARE_LOCATION_FIELD(location);
2685 
2686  return true;
2687 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2407 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2408 {
2409  COMPARE_NODE_FIELD(fields);
2410  COMPARE_LOCATION_FIELD(location);
2411 
2412  return true;
2413 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCommentStmt()

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

Definition at line 1354 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1355 {
1356  COMPARE_SCALAR_FIELD(objtype);
1357  COMPARE_NODE_FIELD(object);
1358  COMPARE_STRING_FIELD(comment);
1359 
1360  return true;
1361 }
#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 2942 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2943 {
2944  COMPARE_STRING_FIELD(ctename);
2945  COMPARE_NODE_FIELD(aliascolnames);
2946  COMPARE_SCALAR_FIELD(ctematerialized);
2947  COMPARE_NODE_FIELD(ctequery);
2948  COMPARE_NODE_FIELD(search_clause);
2949  COMPARE_NODE_FIELD(cycle_clause);
2950  COMPARE_LOCATION_FIELD(location);
2951  COMPARE_SCALAR_FIELD(cterecursive);
2952  COMPARE_SCALAR_FIELD(cterefcount);
2953  COMPARE_NODE_FIELD(ctecolnames);
2954  COMPARE_NODE_FIELD(ctecoltypes);
2955  COMPARE_NODE_FIELD(ctecoltypmods);
2956  COMPARE_NODE_FIELD(ctecolcollations);
2957 
2958  return true;
2959 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1602 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1603 {
1604  COMPARE_NODE_FIELD(typevar);
1605  COMPARE_NODE_FIELD(coldeflist);
1606 
1607  return true;
1608 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalConst()

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

Definition at line 190 of file equalfuncs.c.

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

Referenced by equal().

191 {
192  COMPARE_SCALAR_FIELD(consttype);
193  COMPARE_SCALAR_FIELD(consttypmod);
194  COMPARE_SCALAR_FIELD(constcollid);
195  COMPARE_SCALAR_FIELD(constlen);
196  COMPARE_SCALAR_FIELD(constisnull);
197  COMPARE_SCALAR_FIELD(constbyval);
198  COMPARE_LOCATION_FIELD(location);
199 
200  /*
201  * We treat all NULL constants of the same type as equal. Someday this
202  * might need to change? But datumIsEqual doesn't work on nulls, so...
203  */
204  if (a->constisnull)
205  return true;
206  return datumIsEqual(a->constvalue, b->constvalue,
207  a->constbyval, a->constlen);
208 }
Datum constvalue
Definition: primnodes.h:219
bool constbyval
Definition: primnodes.h:222
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:222
int constlen
Definition: primnodes.h:218
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
bool constisnull
Definition: primnodes.h:220
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConstraint()

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

Definition at line 2690 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2691 {
2692  COMPARE_SCALAR_FIELD(contype);
2693  COMPARE_STRING_FIELD(conname);
2694  COMPARE_SCALAR_FIELD(deferrable);
2695  COMPARE_SCALAR_FIELD(initdeferred);
2696  COMPARE_LOCATION_FIELD(location);
2697  COMPARE_SCALAR_FIELD(is_no_inherit);
2698  COMPARE_NODE_FIELD(raw_expr);
2699  COMPARE_STRING_FIELD(cooked_expr);
2700  COMPARE_SCALAR_FIELD(generated_when);
2701  COMPARE_NODE_FIELD(keys);
2702  COMPARE_NODE_FIELD(including);
2703  COMPARE_NODE_FIELD(exclusions);
2705  COMPARE_STRING_FIELD(indexname);
2706  COMPARE_STRING_FIELD(indexspace);
2707  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2708  COMPARE_STRING_FIELD(access_method);
2709  COMPARE_NODE_FIELD(where_clause);
2710  COMPARE_NODE_FIELD(pktable);
2711  COMPARE_NODE_FIELD(fk_attrs);
2712  COMPARE_NODE_FIELD(pk_attrs);
2713  COMPARE_SCALAR_FIELD(fk_matchtype);
2714  COMPARE_SCALAR_FIELD(fk_upd_action);
2715  COMPARE_SCALAR_FIELD(fk_del_action);
2716  COMPARE_NODE_FIELD(old_conpfeqop);
2717  COMPARE_SCALAR_FIELD(old_pktable_oid);
2718  COMPARE_SCALAR_FIELD(skip_validation);
2719  COMPARE_SCALAR_FIELD(initially_valid);
2720 
2721  return true;
2722 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2176 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2177 {
2178  COMPARE_NODE_FIELD(constraints);
2179  COMPARE_SCALAR_FIELD(deferred);
2180 
2181  return true;
2182 }
#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 555 of file equalfuncs.c.

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

Referenced by equal().

556 {
558  COMPARE_SCALAR_FIELD(resulttype);
559  COMPARE_COERCIONFORM_FIELD(convertformat);
560  COMPARE_LOCATION_FIELD(location);
561 
562  return true;
563 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1274 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1275 {
1276  COMPARE_NODE_FIELD(relation);
1277  COMPARE_NODE_FIELD(query);
1278  COMPARE_NODE_FIELD(attlist);
1279  COMPARE_SCALAR_FIELD(is_from);
1280  COMPARE_SCALAR_FIELD(is_program);
1283  COMPARE_NODE_FIELD(whereClause);
1284 
1285  return true;
1286 }
#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:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateAmStmt()

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

Definition at line 2062 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2063 {
2064  COMPARE_STRING_FIELD(amname);
2065  COMPARE_NODE_FIELD(handler_name);
2066  COMPARE_SCALAR_FIELD(amtype);
2067 
2068  return true;
2069 }
#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 2219 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2220 {
2221  COMPARE_NODE_FIELD(sourcetype);
2222  COMPARE_NODE_FIELD(targettype);
2223  COMPARE_NODE_FIELD(func);
2224  COMPARE_SCALAR_FIELD(context);
2225  COMPARE_SCALAR_FIELD(inout);
2226 
2227  return true;
2228 }
#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 2207 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2208 {
2209  COMPARE_NODE_FIELD(conversion_name);
2210  COMPARE_STRING_FIELD(for_encoding_name);
2211  COMPARE_STRING_FIELD(to_encoding_name);
2212  COMPARE_NODE_FIELD(func_name);
2213  COMPARE_SCALAR_FIELD(def);
2214 
2215  return true;
2216 }
#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 1720 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1721 {
1724 
1725  return true;
1726 }
#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 1663 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1664 {
1665  COMPARE_NODE_FIELD(domainname);
1666  COMPARE_NODE_FIELD(typeName);
1667  COMPARE_NODE_FIELD(collClause);
1668  COMPARE_NODE_FIELD(constraints);
1669 
1670  return true;
1671 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

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

Definition at line 1611 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1612 {
1613  COMPARE_NODE_FIELD(typeName);
1614  COMPARE_NODE_FIELD(vals);
1615 
1616  return true;
1617 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEventTrigStmt()

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

Definition at line 2094 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2095 {
2096  COMPARE_STRING_FIELD(trigname);
2097  COMPARE_STRING_FIELD(eventname);
2098  COMPARE_NODE_FIELD(whenclause);
2099  COMPARE_NODE_FIELD(funcname);
2100 
2101  return true;
2102 }
#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 1920 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1921 {
1922  COMPARE_STRING_FIELD(extname);
1923  COMPARE_SCALAR_FIELD(if_not_exists);
1925 
1926  return true;
1927 }
#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 1950 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1951 {
1952  COMPARE_STRING_FIELD(fdwname);
1953  COMPARE_NODE_FIELD(func_options);
1955 
1956  return true;
1957 }
#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 1970 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1971 {
1972  COMPARE_STRING_FIELD(servername);
1973  COMPARE_STRING_FIELD(servertype);
1974  COMPARE_STRING_FIELD(version);
1975  COMPARE_STRING_FIELD(fdwname);
1976  COMPARE_SCALAR_FIELD(if_not_exists);
1978 
1979  return true;
1980 }
#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 2025 of file equalfuncs.c.

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

Referenced by equal().

2026 {
2027  if (!_equalCreateStmt(&a->base, &b->base))
2028  return false;
2029 
2030  COMPARE_STRING_FIELD(servername);
2032 
2033  return true;
2034 }
#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:1289

◆ _equalCreateFunctionStmt()

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

Definition at line 1440 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1441 {
1442  COMPARE_SCALAR_FIELD(is_procedure);
1443  COMPARE_SCALAR_FIELD(replace);
1444  COMPARE_NODE_FIELD(funcname);
1445  COMPARE_NODE_FIELD(parameters);
1446  COMPARE_NODE_FIELD(returnType);
1448  COMPARE_NODE_FIELD(sql_body);
1449 
1450  return true;
1451 }
#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 1687 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1688 {
1689  COMPARE_SCALAR_FIELD(itemtype);
1691  COMPARE_SCALAR_FIELD(number);
1692  COMPARE_NODE_FIELD(order_family);
1693  COMPARE_NODE_FIELD(class_args);
1694  COMPARE_NODE_FIELD(storedtype);
1695 
1696  return true;
1697 }
const char * name
Definition: encode.c:561
#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 1674 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1675 {
1676  COMPARE_NODE_FIELD(opclassname);
1677  COMPARE_NODE_FIELD(opfamilyname);
1678  COMPARE_STRING_FIELD(amname);
1679  COMPARE_NODE_FIELD(datatype);
1680  COMPARE_NODE_FIELD(items);
1681  COMPARE_SCALAR_FIELD(isDefault);
1682 
1683  return true;
1684 }
#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 1700 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1701 {
1702  COMPARE_NODE_FIELD(opfamilyname);
1703  COMPARE_STRING_FIELD(amname);
1704 
1705  return true;
1706 }
#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 2114 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2115 {
2116  COMPARE_SCALAR_FIELD(replace);
2117  COMPARE_STRING_FIELD(plname);
2118  COMPARE_NODE_FIELD(plhandler);
2119  COMPARE_NODE_FIELD(plinline);
2120  COMPARE_NODE_FIELD(plvalidator);
2121  COMPARE_SCALAR_FIELD(pltrusted);
2122 
2123  return true;
2124 }
#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 2369 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2370 {
2371  COMPARE_STRING_FIELD(policy_name);
2372  COMPARE_NODE_FIELD(table);
2373  COMPARE_STRING_FIELD(cmd_name);
2374  COMPARE_SCALAR_FIELD(permissive);
2375  COMPARE_NODE_FIELD(roles);
2376  COMPARE_NODE_FIELD(qual);
2377  COMPARE_NODE_FIELD(with_check);
2378 
2379  return true;
2380 }
#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 2308 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2310 {
2311  COMPARE_STRING_FIELD(pubname);
2313  COMPARE_NODE_FIELD(tables);
2314  COMPARE_SCALAR_FIELD(for_all_tables);
2315 
2316  return true;
2317 }
#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 1620 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateRoleStmt()

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

Definition at line 2127 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2128 {
2129  COMPARE_SCALAR_FIELD(stmt_type);
2130  COMPARE_STRING_FIELD(role);
2132 
2133  return true;
2134 }
#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 2196 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2197 {
2198  COMPARE_STRING_FIELD(schemaname);
2199  COMPARE_NODE_FIELD(authrole);
2200  COMPARE_NODE_FIELD(schemaElts);
2201  COMPARE_SCALAR_FIELD(if_not_exists);
2202 
2203  return true;
2204 }
#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 1826 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1827 {
1828  COMPARE_NODE_FIELD(sequence);
1830  COMPARE_SCALAR_FIELD(ownerId);
1831  COMPARE_SCALAR_FIELD(for_identity);
1832  COMPARE_SCALAR_FIELD(if_not_exists);
1833 
1834  return true;
1835 }
#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 1416 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1417 {
1418  COMPARE_NODE_FIELD(defnames);
1419  COMPARE_NODE_FIELD(stat_types);
1420  COMPARE_NODE_FIELD(exprs);
1421  COMPARE_NODE_FIELD(relations);
1422  COMPARE_STRING_FIELD(stxcomment);
1423  COMPARE_SCALAR_FIELD(transformed);
1424  COMPARE_SCALAR_FIELD(if_not_exists);
1425 
1426  return true;
1427 }
#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 1289 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1290 {
1291  COMPARE_NODE_FIELD(relation);
1292  COMPARE_NODE_FIELD(tableElts);
1293  COMPARE_NODE_FIELD(inhRelations);
1294  COMPARE_NODE_FIELD(partbound);
1295  COMPARE_NODE_FIELD(partspec);
1296  COMPARE_NODE_FIELD(ofTypename);
1297  COMPARE_NODE_FIELD(constraints);
1299  COMPARE_SCALAR_FIELD(oncommit);
1300  COMPARE_STRING_FIELD(tablespacename);
1301  COMPARE_STRING_FIELD(accessMethod);
1302  COMPARE_SCALAR_FIELD(if_not_exists);
1303 
1304  return true;
1305 }
#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 2333 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2335 {
2337  COMPARE_STRING_FIELD(conninfo);
2338  COMPARE_NODE_FIELD(publication);
2340 
2341  return true;
2342 }
#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 1786 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1787 {
1788  COMPARE_NODE_FIELD(query);
1789  COMPARE_NODE_FIELD(into);
1790  COMPARE_SCALAR_FIELD(objtype);
1791  COMPARE_SCALAR_FIELD(is_select_into);
1792  COMPARE_SCALAR_FIELD(if_not_exists);
1793 
1794  return true;
1795 }
#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 1876 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1877 {
1878  COMPARE_STRING_FIELD(tablespacename);
1879  COMPARE_NODE_FIELD(owner);
1880  COMPARE_STRING_FIELD(location);
1882 
1883  return true;
1884 }
#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 2050 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2051 {
2052  COMPARE_SCALAR_FIELD(replace);
2053  COMPARE_NODE_FIELD(type_name);
2054  COMPARE_STRING_FIELD(lang);
2055  COMPARE_NODE_FIELD(fromsql);
2056  COMPARE_NODE_FIELD(tosql);
2057 
2058  return true;
2059 }
#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 2072 of file equalfuncs.c.

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

Referenced by equal().

2073 {
2074  COMPARE_SCALAR_FIELD(replace);
2075  COMPARE_SCALAR_FIELD(isconstraint);
2076  COMPARE_STRING_FIELD(trigname);
2077  COMPARE_NODE_FIELD(relation);
2078  COMPARE_NODE_FIELD(funcname);
2080  COMPARE_SCALAR_FIELD(row);
2081  COMPARE_SCALAR_FIELD(timing);
2082  COMPARE_SCALAR_FIELD(events);
2083  COMPARE_NODE_FIELD(columns);
2084  COMPARE_NODE_FIELD(whenClause);
2085  COMPARE_NODE_FIELD(transitionRels);
2086  COMPARE_SCALAR_FIELD(deferrable);
2087  COMPARE_SCALAR_FIELD(initdeferred);
2088  COMPARE_NODE_FIELD(constrrel);
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

◆ _equalCreateUserMappingStmt()

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

Definition at line 1994 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1995 {
1997  COMPARE_STRING_FIELD(servername);
1998  COMPARE_SCALAR_FIELD(if_not_exists);
2000 
2001  return true;
2002 }
#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 2925 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2926 {
2927  COMPARE_NODE_FIELD(cycle_col_list);
2928  COMPARE_STRING_FIELD(cycle_mark_column);
2929  COMPARE_NODE_FIELD(cycle_mark_value);
2930  COMPARE_NODE_FIELD(cycle_mark_default);
2931  COMPARE_STRING_FIELD(cycle_path_column);
2932  COMPARE_LOCATION_FIELD(location);
2933  COMPARE_SCALAR_FIELD(cycle_mark_type);
2934  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
2935  COMPARE_SCALAR_FIELD(cycle_mark_collation);
2936  COMPARE_SCALAR_FIELD(cycle_mark_neop);
2937 
2938  return true;
2939 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2914 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2915 {
2916  COMPARE_NODE_FIELD(search_col_list);
2917  COMPARE_SCALAR_FIELD(search_breadth_first);
2918  COMPARE_STRING_FIELD(search_seq_column);
2919  COMPARE_LOCATION_FIELD(location);
2920 
2921  return true;
2922 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 754 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

755 {
756  COMPARE_SCALAR_FIELD(cvarno);
757  COMPARE_STRING_FIELD(cursor_name);
758  COMPARE_SCALAR_FIELD(cursor_param);
759 
760  return true;
761 }
#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 2250 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2251 {
2253 
2254  return true;
2255 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561

◆ _equalDeclareCursorStmt()

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

Definition at line 1236 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1237 {
1238  COMPARE_STRING_FIELD(portalname);
1240  COMPARE_NODE_FIELD(query);
1241 
1242  return true;
1243 }
#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 2725 of file equalfuncs.c.

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

Referenced by equal().

2726 {
2727  COMPARE_STRING_FIELD(defnamespace);
2728  COMPARE_STRING_FIELD(defname);
2730  COMPARE_SCALAR_FIELD(defaction);
2731  COMPARE_LOCATION_FIELD(location);
2732 
2733  return true;
2734 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1318 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1319 {
1320  COMPARE_SCALAR_FIELD(kind);
1321  COMPARE_SCALAR_FIELD(oldstyle);
1322  COMPARE_NODE_FIELD(defnames);
1324  COMPARE_NODE_FIELD(definition);
1325  COMPARE_SCALAR_FIELD(if_not_exists);
1326  COMPARE_SCALAR_FIELD(replace);
1327 
1328  return true;
1329 }
#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 1045 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1046 {
1047  COMPARE_NODE_FIELD(relation);
1048  COMPARE_NODE_FIELD(usingClause);
1049  COMPARE_NODE_FIELD(whereClause);
1050  COMPARE_NODE_FIELD(returningList);
1051  COMPARE_NODE_FIELD(withClause);
1052 
1053  return true;
1054 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1868 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1869 {
1870  COMPARE_SCALAR_FIELD(target);
1871 
1872  return true;
1873 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

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

Definition at line 351 of file equalfuncs.c.

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

Referenced by equal().

352 {
353  COMPARE_SCALAR_FIELD(opno);
354 
355  /*
356  * Special-case opfuncid: it is allowable for it to differ if one node
357  * contains zero and the other doesn't. This just means that the one node
358  * isn't as far along in the parse/plan pipeline and hasn't had the
359  * opfuncid cache filled yet.
360  */
361  if (a->opfuncid != b->opfuncid &&
362  a->opfuncid != 0 &&
363  b->opfuncid != 0)
364  return false;
365 
366  COMPARE_SCALAR_FIELD(opresulttype);
367  COMPARE_SCALAR_FIELD(opretset);
368  COMPARE_SCALAR_FIELD(opcollid);
369  COMPARE_SCALAR_FIELD(inputcollid);
371  COMPARE_LOCATION_FIELD(location);
372 
373  return true;
374 }
Oid opfuncid
Definition: primnodes.h:543
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1475 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1476 {
1478 
1479  return true;
1480 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1747 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1748 {
1750  COMPARE_SCALAR_FIELD(missing_ok);
1752 
1753  return true;
1754 }
#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 2258 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2259 {
2260  COMPARE_NODE_FIELD(roles);
2261  COMPARE_SCALAR_FIELD(behavior);
2262 
2263  return true;
2264 }
#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 2157 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2158 {
2159  COMPARE_NODE_FIELD(roles);
2160  COMPARE_SCALAR_FIELD(missing_ok);
2161 
2162  return true;
2163 }
#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 1332 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1333 {
1334  COMPARE_NODE_FIELD(objects);
1335  COMPARE_SCALAR_FIELD(removeType);
1336  COMPARE_SCALAR_FIELD(behavior);
1337  COMPARE_SCALAR_FIELD(missing_ok);
1338  COMPARE_SCALAR_FIELD(concurrent);
1339 
1340  return true;
1341 }
#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 2358 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2360 {
2362  COMPARE_SCALAR_FIELD(missing_ok);
2363  COMPARE_SCALAR_FIELD(behavior);
2364 
2365  return true;
2366 }
#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 1887 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1888 {
1889  COMPARE_STRING_FIELD(tablespacename);
1890  COMPARE_SCALAR_FIELD(missing_ok);
1891 
1892  return true;
1893 }
#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 2015 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

2016 {
2018  COMPARE_STRING_FIELD(servername);
2019  COMPARE_SCALAR_FIELD(missing_ok);
2020 
2021  return true;
2022 }
#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 2241 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2242 {
2244  COMPARE_NODE_FIELD(params);
2245 
2246  return true;
2247 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExplainStmt()

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

Definition at line 1777 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1778 {
1779  COMPARE_NODE_FIELD(query);
1781 
1782  return true;
1783 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 954 of file equalfuncs.c.

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

Referenced by equal().

955 {
956  const ExtensibleNodeMethods *methods;
957 
958  COMPARE_STRING_FIELD(extnodename);
959 
960  /* At this point, we know extnodename is the same for both nodes. */
961  methods = GetExtensibleNodeMethods(a->extnodename, false);
962 
963  /* compare the private fields */
964  if (!methods->nodeEqual(a, b))
965  return false;
966 
967  return true;
968 }
#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 1375 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1376 {
1377  COMPARE_SCALAR_FIELD(direction);
1378  COMPARE_SCALAR_FIELD(howMany);
1379  COMPARE_STRING_FIELD(portalname);
1380  COMPARE_SCALAR_FIELD(ismove);
1381 
1382  return true;
1383 }
#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 493 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

494 {
496  COMPARE_SCALAR_FIELD(fieldnum);
497  COMPARE_SCALAR_FIELD(resulttype);
498  COMPARE_SCALAR_FIELD(resulttypmod);
499  COMPARE_SCALAR_FIELD(resultcollid);
500 
501  return true;
502 }
#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 505 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

506 {
508  COMPARE_NODE_FIELD(newvals);
509  COMPARE_NODE_FIELD(fieldnums);
510  COMPARE_SCALAR_FIELD(resulttype);
511 
512  return true;
513 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFloat()

static bool _equalFloat ( const Float a,
const Float b 
)
static

Definition at line 3121 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and val.

Referenced by equal().

3122 {
3124 
3125  return true;
3126 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
long val
Definition: informix.c:664

◆ _equalFromExpr()

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

Definition at line 821 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

822 {
823  COMPARE_NODE_FIELD(fromlist);
824  COMPARE_NODE_FIELD(quals);
825 
826  return true;
827 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

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

2442 {
2443  COMPARE_NODE_FIELD(funcname);
2445  COMPARE_NODE_FIELD(agg_order);
2446  COMPARE_NODE_FIELD(agg_filter);
2447  COMPARE_NODE_FIELD(over);
2448  COMPARE_SCALAR_FIELD(agg_within_group);
2449  COMPARE_SCALAR_FIELD(agg_star);
2450  COMPARE_SCALAR_FIELD(agg_distinct);
2451  COMPARE_SCALAR_FIELD(func_variadic);
2452  COMPARE_COERCIONFORM_FIELD(funcformat);
2453  COMPARE_LOCATION_FIELD(location);
2454 
2455  return true;
2456 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 298 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().

299 {
300  COMPARE_SCALAR_FIELD(funcid);
301  COMPARE_SCALAR_FIELD(funcresulttype);
302  COMPARE_SCALAR_FIELD(funcretset);
303  COMPARE_SCALAR_FIELD(funcvariadic);
304  COMPARE_COERCIONFORM_FIELD(funcformat);
305  COMPARE_SCALAR_FIELD(funccollid);
306  COMPARE_SCALAR_FIELD(inputcollid);
308  COMPARE_LOCATION_FIELD(location);
309 
310  return true;
311 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1454 of file equalfuncs.c.

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

Referenced by equal().

1455 {
1457  COMPARE_NODE_FIELD(argType);
1459  COMPARE_NODE_FIELD(defexpr);
1460 
1461  return true;
1462 }
static PgChecksumMode mode
Definition: pg_checksums.c:65
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#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 1214 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1215 {
1216  COMPARE_NODE_FIELD(granted_roles);
1217  COMPARE_NODE_FIELD(grantee_roles);
1218  COMPARE_SCALAR_FIELD(is_grant);
1219  COMPARE_SCALAR_FIELD(admin_opt);
1220  COMPARE_NODE_FIELD(grantor);
1221  COMPARE_SCALAR_FIELD(behavior);
1222 
1223  return true;
1224 }
#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 1178 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1179 {
1180  COMPARE_SCALAR_FIELD(is_grant);
1181  COMPARE_SCALAR_FIELD(targtype);
1182  COMPARE_SCALAR_FIELD(objtype);
1183  COMPARE_NODE_FIELD(objects);
1184  COMPARE_NODE_FIELD(privileges);
1185  COMPARE_NODE_FIELD(grantees);
1186  COMPARE_SCALAR_FIELD(grant_option);
1187  COMPARE_NODE_FIELD(grantor);
1188  COMPARE_SCALAR_FIELD(behavior);
1189 
1190  return true;
1191 }
#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 250 of file equalfuncs.c.

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

Referenced by equal().

251 {
253 
254  /*
255  * We must not compare the refs or cols field
256  */
257 
258  COMPARE_SCALAR_FIELD(agglevelsup);
259  COMPARE_LOCATION_FIELD(location);
260 
261  return true;
262 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2839 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2840 {
2841  COMPARE_SCALAR_FIELD(kind);
2842  COMPARE_NODE_FIELD(content);
2843  COMPARE_LOCATION_FIELD(location);
2844 
2845  return true;
2846 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2037 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2038 {
2039  COMPARE_STRING_FIELD(server_name);
2040  COMPARE_STRING_FIELD(remote_schema);
2041  COMPARE_STRING_FIELD(local_schema);
2042  COMPARE_SCALAR_FIELD(list_type);
2043  COMPARE_NODE_FIELD(table_list);
2045 
2046  return true;
2047 }
#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 2640 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2641 {
2643  COMPARE_NODE_FIELD(expr);
2644  COMPARE_STRING_FIELD(indexcolname);
2645  COMPARE_NODE_FIELD(collation);
2646  COMPARE_NODE_FIELD(opclass);
2647  COMPARE_NODE_FIELD(opclassopts);
2648  COMPARE_SCALAR_FIELD(ordering);
2649  COMPARE_SCALAR_FIELD(nulls_ordering);
2650 
2651  return true;
2652 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#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 1386 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1387 {
1388  COMPARE_STRING_FIELD(idxname);
1389  COMPARE_NODE_FIELD(relation);
1390  COMPARE_STRING_FIELD(accessMethod);
1391  COMPARE_STRING_FIELD(tableSpace);
1392  COMPARE_NODE_FIELD(indexParams);
1393  COMPARE_NODE_FIELD(indexIncludingParams);
1395  COMPARE_NODE_FIELD(whereClause);
1396  COMPARE_NODE_FIELD(excludeOpNames);
1397  COMPARE_STRING_FIELD(idxcomment);
1398  COMPARE_SCALAR_FIELD(indexOid);
1399  COMPARE_SCALAR_FIELD(oldNode);
1400  COMPARE_SCALAR_FIELD(oldCreateSubid);
1401  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1402  COMPARE_SCALAR_FIELD(unique);
1403  COMPARE_SCALAR_FIELD(primary);
1404  COMPARE_SCALAR_FIELD(isconstraint);
1405  COMPARE_SCALAR_FIELD(deferrable);
1406  COMPARE_SCALAR_FIELD(initdeferred);
1407  COMPARE_SCALAR_FIELD(transformed);
1408  COMPARE_SCALAR_FIELD(concurrent);
1409  COMPARE_SCALAR_FIELD(if_not_exists);
1410  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1411 
1412  return true;
1413 }
#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 2891 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2892 {
2893  COMPARE_NODE_FIELD(indexElems);
2894  COMPARE_NODE_FIELD(whereClause);
2895  COMPARE_STRING_FIELD(conname);
2896  COMPARE_LOCATION_FIELD(location);
2897 
2898  return true;
2899 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalInferenceElem()

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

Definition at line 773 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

774 {
775  COMPARE_NODE_FIELD(expr);
776  COMPARE_SCALAR_FIELD(infercollid);
777  COMPARE_SCALAR_FIELD(inferopclass);
778 
779  return true;
780 }
#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 1031 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1032 {
1033  COMPARE_NODE_FIELD(relation);
1034  COMPARE_NODE_FIELD(cols);
1035  COMPARE_NODE_FIELD(selectStmt);
1036  COMPARE_NODE_FIELD(onConflictClause);
1037  COMPARE_NODE_FIELD(returningList);
1038  COMPARE_NODE_FIELD(withClause);
1039  COMPARE_SCALAR_FIELD(override);
1040 
1041  return true;
1042 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalInteger()

static bool _equalInteger ( const Integer a,
const Integer b 
)
static

Definition at line 3113 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and val.

Referenced by equal().

3114 {
3116 
3117  return true;
3118 }
long val
Definition: informix.c:664
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIntoClause()

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

Definition at line 148 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

149 {
150  COMPARE_NODE_FIELD(rel);
151  COMPARE_NODE_FIELD(colNames);
152  COMPARE_STRING_FIELD(accessMethod);
154  COMPARE_SCALAR_FIELD(onCommit);
155  COMPARE_STRING_FIELD(tableSpaceName);
156  COMPARE_NODE_FIELD(viewQuery);
157  COMPARE_SCALAR_FIELD(skipData);
158 
159  return true;
160 }
#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 805 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

806 {
807  COMPARE_SCALAR_FIELD(jointype);
808  COMPARE_SCALAR_FIELD(isNatural);
809  COMPARE_NODE_FIELD(larg);
810  COMPARE_NODE_FIELD(rarg);
811  COMPARE_NODE_FIELD(usingClause);
812  COMPARE_NODE_FIELD(join_using_alias);
813  COMPARE_NODE_FIELD(quals);
814  COMPARE_NODE_FIELD(alias);
815  COMPARE_SCALAR_FIELD(rtindex);
816 
817  return true;
818 }
#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 3054 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().

3055 {
3056  const ListCell *item_a;
3057  const ListCell *item_b;
3058 
3059  /*
3060  * Try to reject by simple scalar checks before grovelling through all the
3061  * list elements...
3062  */
3064  COMPARE_SCALAR_FIELD(length);
3065 
3066  /*
3067  * We place the switch outside the loop for the sake of efficiency; this
3068  * may not be worth doing...
3069  */
3070  switch (a->type)
3071  {
3072  case T_List:
3073  forboth(item_a, a, item_b, b)
3074  {
3075  if (!equal(lfirst(item_a), lfirst(item_b)))
3076  return false;
3077  }
3078  break;
3079  case T_IntList:
3080  forboth(item_a, a, item_b, b)
3081  {
3082  if (lfirst_int(item_a) != lfirst_int(item_b))
3083  return false;
3084  }
3085  break;
3086  case T_OidList:
3087  forboth(item_a, a, item_b, b)
3088  {
3089  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3090  return false;
3091  }
3092  break;
3093  default:
3094  elog(ERROR, "unrecognized list node type: %d",
3095  (int) a->type);
3096  return false; /* keep compiler quiet */
3097  }
3098 
3099  /*
3100  * If we got here, we should have run out of elements of both lists
3101  */
3102  Assert(item_a == NULL);
3103  Assert(item_b == NULL);
3104 
3105  return true;
3106 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:446
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3149
#define ERROR
Definition: elog.h:46
#define lfirst_int(lc)
Definition: pg_list.h:170
Definition: nodes.h:301
#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:232
#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 1574 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1575 {
1576  COMPARE_STRING_FIELD(conditionname);
1577 
1578  return true;
1579 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalLoadStmt()

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

Definition at line 1655 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1656 {
1658 
1659  return true;
1660 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
static char * filename
Definition: pg_dumpall.c:92

◆ _equalLockingClause()

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

Definition at line 2737 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2738 {
2739  COMPARE_NODE_FIELD(lockedRels);
2740  COMPARE_SCALAR_FIELD(strength);
2741  COMPARE_SCALAR_FIELD(waitPolicy);
2742 
2743  return true;
2744 }
#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 2166 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2167 {
2168  COMPARE_NODE_FIELD(relations);
2170  COMPARE_SCALAR_FIELD(nowait);
2171 
2172  return true;
2173 }
static PgChecksumMode mode
Definition: pg_checksums.c:65
#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 658 of file equalfuncs.c.

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

Referenced by equal().

659 {
660  COMPARE_SCALAR_FIELD(minmaxtype);
661  COMPARE_SCALAR_FIELD(minmaxcollid);
662  COMPARE_SCALAR_FIELD(inputcollid);
665  COMPARE_LOCATION_FIELD(location);
666 
667  return true;
668 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2504 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and source.

Referenced by equal().

2505 {
2507  COMPARE_SCALAR_FIELD(colno);
2508  COMPARE_SCALAR_FIELD(ncolumns);
2509 
2510  return true;
2511 }
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 314 of file equalfuncs.c.

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

Referenced by equal().

315 {
318  COMPARE_SCALAR_FIELD(argnumber);
319  COMPARE_LOCATION_FIELD(location);
320 
321  return true;
322 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
const char * name
Definition: encode.c:561
#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 764 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

765 {
766  COMPARE_SCALAR_FIELD(seqid);
767  COMPARE_SCALAR_FIELD(typeId);
768 
769  return true;
770 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1565 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1566 {
1567  COMPARE_STRING_FIELD(conditionname);
1568  COMPARE_STRING_FIELD(payload);
1569 
1570  return true;
1571 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

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

Definition at line 377 of file equalfuncs.c.

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

Referenced by equal().

378 {
379  COMPARE_SCALAR_FIELD(opno);
380 
381  /*
382  * Special-case opfuncid: it is allowable for it to differ if one node
383  * contains zero and the other doesn't. This just means that the one node
384  * isn't as far along in the parse/plan pipeline and hasn't had the
385  * opfuncid cache filled yet.
386  */
387  if (a->opfuncid != b->opfuncid &&
388  a->opfuncid != 0 &&
389  b->opfuncid != 0)
390  return false;
391 
392  COMPARE_SCALAR_FIELD(opresulttype);
393  COMPARE_SCALAR_FIELD(opretset);
394  COMPARE_SCALAR_FIELD(opcollid);
395  COMPARE_SCALAR_FIELD(inputcollid);
397  COMPARE_LOCATION_FIELD(location);
398 
399  return true;
400 }
Oid opfuncid
Definition: primnodes.h:543
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 698 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

699 {
701  COMPARE_SCALAR_FIELD(nulltesttype);
702  COMPARE_SCALAR_FIELD(argisrow);
703  COMPARE_LOCATION_FIELD(location);
704 
705  return true;
706 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1194 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1195 {
1196  COMPARE_NODE_FIELD(objname);
1197  COMPARE_NODE_FIELD(objargs);
1198  COMPARE_NODE_FIELD(objfuncargs);
1199  COMPARE_SCALAR_FIELD(args_unspecified);
1200 
1201  return true;
1202 }
#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 2902 of file equalfuncs.c.

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

Referenced by equal().

2903 {
2905  COMPARE_NODE_FIELD(infer);
2906  COMPARE_NODE_FIELD(targetList);
2907  COMPARE_NODE_FIELD(whereClause);
2908  COMPARE_LOCATION_FIELD(location);
2909 
2910  return true;
2911 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 830 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

831 {
833  COMPARE_NODE_FIELD(arbiterElems);
834  COMPARE_NODE_FIELD(arbiterWhere);
835  COMPARE_SCALAR_FIELD(constraint);
836  COMPARE_NODE_FIELD(onConflictSet);
837  COMPARE_NODE_FIELD(onConflictWhere);
838  COMPARE_SCALAR_FIELD(exclRelIndex);
839  COMPARE_NODE_FIELD(exclRelTlist);
840 
841  return true;
842 }
#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 325 of file equalfuncs.c.

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

Referenced by equal().

326 {
327  COMPARE_SCALAR_FIELD(opno);
328 
329  /*
330  * Special-case opfuncid: it is allowable for it to differ if one node
331  * contains zero and the other doesn't. This just means that the one node
332  * isn't as far along in the parse/plan pipeline and hasn't had the
333  * opfuncid cache filled yet.
334  */
335  if (a->opfuncid != b->opfuncid &&
336  a->opfuncid != 0 &&
337  b->opfuncid != 0)
338  return false;
339 
340  COMPARE_SCALAR_FIELD(opresulttype);
341  COMPARE_SCALAR_FIELD(opretset);
342  COMPARE_SCALAR_FIELD(opcollid);
343  COMPARE_SCALAR_FIELD(inputcollid);
345  COMPARE_LOCATION_FIELD(location);
346 
347  return true;
348 }
Oid opfuncid
Definition: primnodes.h:543
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 211 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

212 {
213  COMPARE_SCALAR_FIELD(paramkind);
214  COMPARE_SCALAR_FIELD(paramid);
215  COMPARE_SCALAR_FIELD(paramtype);
216  COMPARE_SCALAR_FIELD(paramtypmod);
217  COMPARE_SCALAR_FIELD(paramcollid);
218  COMPARE_LOCATION_FIELD(location);
219 
220  return true;
221 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalParamRef()

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

Definition at line 2416 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2417 {
2418  COMPARE_SCALAR_FIELD(number);
2419  COMPARE_LOCATION_FIELD(location);
2420 
2421  return true;
2422 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionBoundSpec()

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

Definition at line 3015 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

3016 {
3017  COMPARE_SCALAR_FIELD(strategy);
3018  COMPARE_SCALAR_FIELD(is_default);
3019  COMPARE_SCALAR_FIELD(modulus);
3020  COMPARE_SCALAR_FIELD(remainder);
3021  COMPARE_NODE_FIELD(listdatums);
3022  COMPARE_NODE_FIELD(lowerdatums);
3023  COMPARE_NODE_FIELD(upperdatums);
3024  COMPARE_LOCATION_FIELD(location);
3025 
3026  return true;
3027 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 3040 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

3041 {
3043  COMPARE_NODE_FIELD(bound);
3044  COMPARE_SCALAR_FIELD(concurrent);
3045 
3046  return true;
3047 }
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionElem()

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

Definition at line 2993 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2994 {
2996  COMPARE_NODE_FIELD(expr);
2997  COMPARE_NODE_FIELD(collation);
2998  COMPARE_NODE_FIELD(opclass);
2999  COMPARE_LOCATION_FIELD(location);
3000 
3001  return true;
3002 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionRangeDatum()

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

Definition at line 3030 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

3031 {
3032  COMPARE_SCALAR_FIELD(kind);
3034  COMPARE_LOCATION_FIELD(location);
3035 
3036  return true;
3037 }
static struct @143 value
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 3005 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

3006 {
3007  COMPARE_STRING_FIELD(strategy);
3008  COMPARE_NODE_FIELD(partParams);
3009  COMPARE_LOCATION_FIELD(location);
3010 
3011  return true;
3012 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPathKey()

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

Definition at line 849 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

850 {
851  /* We assume pointer equality is sufficient to compare the eclasses */
852  COMPARE_SCALAR_FIELD(pk_eclass);
853  COMPARE_SCALAR_FIELD(pk_opfamily);
854  COMPARE_SCALAR_FIELD(pk_strategy);
855  COMPARE_SCALAR_FIELD(pk_nulls_first);
856 
857  return true;
858 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPlaceHolderInfo()

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

Definition at line 938 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

939 {
940  COMPARE_SCALAR_FIELD(phid);
941  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
942  COMPARE_BITMAPSET_FIELD(ph_eval_at);
943  COMPARE_BITMAPSET_FIELD(ph_lateral);
944  COMPARE_BITMAPSET_FIELD(ph_needed);
945  COMPARE_SCALAR_FIELD(ph_width);
946 
947  return true;
948 }
#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 880 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

881 {
882  /*
883  * We intentionally do not compare phexpr. Two PlaceHolderVars with the
884  * same ID and levelsup should be considered equal even if the contained
885  * expressions have managed to mutate to different states. This will
886  * happen during final plan construction when there are nested PHVs, since
887  * the inner PHV will get replaced by a Param in some copies of the outer
888  * PHV. Another way in which it can happen is that initplan sublinks
889  * could get replaced by differently-numbered Params when sublink folding
890  * is done. (The end result of such a situation would be some
891  * unreferenced initplans, which is annoying but not really a problem.) On
892  * the same reasoning, there is no need to examine phrels.
893  *
894  * COMPARE_NODE_FIELD(phexpr);
895  *
896  * COMPARE_BITMAPSET_FIELD(phrels);
897  */
898  COMPARE_SCALAR_FIELD(phid);
899  COMPARE_SCALAR_FIELD(phlevelsup);
900 
901  return true;
902 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPLAssignStmt()

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

Definition at line 1120 of file equalfuncs.c.

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

Referenced by equal().

1121 {
1123  COMPARE_NODE_FIELD(indirection);
1124  COMPARE_SCALAR_FIELD(nnames);
1126  COMPARE_LOCATION_FIELD(location);
1127 
1128  return true;
1129 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
const char * name
Definition: encode.c:561
#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 2231 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2232 {
2234  COMPARE_NODE_FIELD(argtypes);
2235  COMPARE_NODE_FIELD(query);
2236 
2237  return true;
2238 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPublicationTable()

static bool _equalPublicationTable ( const PublicationTable a,
const PublicationTable b 
)
static

Definition at line 2300 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2301 {
2302  COMPARE_NODE_FIELD(relation);
2303 
2304  return true;
2305 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalQuery()

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

Definition at line 975 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

976 {
977  COMPARE_SCALAR_FIELD(commandType);
978  COMPARE_SCALAR_FIELD(querySource);
979  /* we intentionally ignore queryId, since it might not be set */
980  COMPARE_SCALAR_FIELD(canSetTag);
981  COMPARE_NODE_FIELD(utilityStmt);
982  COMPARE_SCALAR_FIELD(resultRelation);
983  COMPARE_SCALAR_FIELD(hasAggs);
984  COMPARE_SCALAR_FIELD(hasWindowFuncs);
985  COMPARE_SCALAR_FIELD(hasTargetSRFs);
986  COMPARE_SCALAR_FIELD(hasSubLinks);
987  COMPARE_SCALAR_FIELD(hasDistinctOn);
988  COMPARE_SCALAR_FIELD(hasRecursive);
989  COMPARE_SCALAR_FIELD(hasModifyingCTE);
990  COMPARE_SCALAR_FIELD(hasForUpdate);
991  COMPARE_SCALAR_FIELD(hasRowSecurity);
992  COMPARE_SCALAR_FIELD(isReturn);
993  COMPARE_NODE_FIELD(cteList);
994  COMPARE_NODE_FIELD(rtable);
995  COMPARE_NODE_FIELD(jointree);
996  COMPARE_NODE_FIELD(targetList);
997  COMPARE_SCALAR_FIELD(override);
998  COMPARE_NODE_FIELD(onConflict);
999  COMPARE_NODE_FIELD(returningList);
1000  COMPARE_NODE_FIELD(groupClause);
1001  COMPARE_SCALAR_FIELD(groupDistinct);
1002  COMPARE_NODE_FIELD(groupingSets);
1003  COMPARE_NODE_FIELD(havingQual);
1004  COMPARE_NODE_FIELD(windowClause);
1005  COMPARE_NODE_FIELD(distinctClause);
1006  COMPARE_NODE_FIELD(sortClause);
1007  COMPARE_NODE_FIELD(limitOffset);
1008  COMPARE_NODE_FIELD(limitCount);
1009  COMPARE_SCALAR_FIELD(limitOption);
1010  COMPARE_NODE_FIELD(rowMarks);
1011  COMPARE_NODE_FIELD(setOperations);
1012  COMPARE_NODE_FIELD(constraintDeps);
1013  COMPARE_NODE_FIELD(withCheckOptions);
1014  COMPARE_LOCATION_FIELD(stmt_location);
1015  COMPARE_SCALAR_FIELD(stmt_len);
1016 
1017  return true;
1018 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2586 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2587 {
2588  COMPARE_SCALAR_FIELD(lateral);
2589  COMPARE_SCALAR_FIELD(ordinality);
2590  COMPARE_SCALAR_FIELD(is_rowsfrom);
2592  COMPARE_NODE_FIELD(alias);
2593  COMPARE_NODE_FIELD(coldeflist);
2594 
2595  return true;
2596 }
static const struct fns functions
Definition: regcomp.c:313
#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 2576 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2577 {
2578  COMPARE_SCALAR_FIELD(lateral);
2579  COMPARE_NODE_FIELD(subquery);
2580  COMPARE_NODE_FIELD(alias);
2581 
2582  return true;
2583 }
#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 2611 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2612 {
2613  COMPARE_SCALAR_FIELD(lateral);
2614  COMPARE_NODE_FIELD(docexpr);
2615  COMPARE_NODE_FIELD(rowexpr);
2616  COMPARE_NODE_FIELD(namespaces);
2617  COMPARE_NODE_FIELD(columns);
2618  COMPARE_NODE_FIELD(alias);
2619  COMPARE_LOCATION_FIELD(location);
2620 
2621  return true;
2622 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2625 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2626 {
2627  COMPARE_STRING_FIELD(colname);
2628  COMPARE_NODE_FIELD(typeName);
2629  COMPARE_SCALAR_FIELD(for_ordinality);
2630  COMPARE_SCALAR_FIELD(is_not_null);
2631  COMPARE_NODE_FIELD(colexpr);
2632  COMPARE_NODE_FIELD(coldefexpr);
2633  COMPARE_LOCATION_FIELD(location);
2634 
2635  return true;
2636 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2599 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2600 {
2601  COMPARE_NODE_FIELD(relation);
2602  COMPARE_NODE_FIELD(method);
2604  COMPARE_NODE_FIELD(repeatable);
2605  COMPARE_LOCATION_FIELD(location);
2606 
2607  return true;
2608 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRangeTblEntry()

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

Definition at line 2747 of file equalfuncs.c.

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

Referenced by equal().

2748 {
2749  COMPARE_SCALAR_FIELD(rtekind);
2750  COMPARE_SCALAR_FIELD(relid);
2751  COMPARE_SCALAR_FIELD(relkind);
2752  COMPARE_SCALAR_FIELD(rellockmode);
2753  COMPARE_NODE_FIELD(tablesample);
2754  COMPARE_NODE_FIELD(subquery);
2755  COMPARE_SCALAR_FIELD(security_barrier);
2756  COMPARE_SCALAR_FIELD(jointype);
2757  COMPARE_SCALAR_FIELD(joinmergedcols);
2758  COMPARE_NODE_FIELD(joinaliasvars);
2759  COMPARE_NODE_FIELD(joinleftcols);
2760  COMPARE_NODE_FIELD(joinrightcols);
2761  COMPARE_NODE_FIELD(join_using_alias);
2763  COMPARE_SCALAR_FIELD(funcordinality);
2764  COMPARE_NODE_FIELD(tablefunc);
2765  COMPARE_NODE_FIELD(values_lists);
2766  COMPARE_STRING_FIELD(ctename);
2767  COMPARE_SCALAR_FIELD(ctelevelsup);
2768  COMPARE_SCALAR_FIELD(self_reference);
2769  COMPARE_NODE_FIELD(coltypes);
2770  COMPARE_NODE_FIELD(coltypmods);
2771  COMPARE_NODE_FIELD(colcollations);
2772  COMPARE_STRING_FIELD(enrname);
2773  COMPARE_SCALAR_FIELD(enrtuples);
2774  COMPARE_NODE_FIELD(alias);
2775  COMPARE_NODE_FIELD(eref);
2776  COMPARE_SCALAR_FIELD(lateral);
2777  COMPARE_SCALAR_FIELD(inh);
2778  COMPARE_SCALAR_FIELD(inFromCl);
2779  COMPARE_SCALAR_FIELD(requiredPerms);
2780  COMPARE_SCALAR_FIELD(checkAsUser);
2781  COMPARE_BITMAPSET_FIELD(selectedCols);
2782  COMPARE_BITMAPSET_FIELD(insertedCols);
2783  COMPARE_BITMAPSET_FIELD(updatedCols);
2784  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2785  COMPARE_NODE_FIELD(securityQuals);
2786 
2787  return true;
2788 }
#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:313
#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 2791 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2792 {
2793  COMPARE_NODE_FIELD(funcexpr);
2794  COMPARE_SCALAR_FIELD(funccolcount);
2795  COMPARE_NODE_FIELD(funccolnames);
2796  COMPARE_NODE_FIELD(funccoltypes);
2797  COMPARE_NODE_FIELD(funccoltypmods);
2798  COMPARE_NODE_FIELD(funccolcollations);
2799  COMPARE_BITMAPSET_FIELD(funcparams);
2800 
2801  return true;
2802 }
#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 797 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

798 {
799  COMPARE_SCALAR_FIELD(rtindex);
800 
801  return true;
802 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeVar()

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

Definition at line 114 of file equalfuncs.c.

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

Referenced by equal().

115 {
116  COMPARE_STRING_FIELD(catalogname);
117  COMPARE_STRING_FIELD(schemaname);
120  COMPARE_SCALAR_FIELD(relpersistence);
121  COMPARE_NODE_FIELD(alias);
122  COMPARE_LOCATION_FIELD(location);
123 
124  return true;
125 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData relname
Definition: pg_class.h:38
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1021 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1022 {
1023  COMPARE_NODE_FIELD(stmt);
1024  COMPARE_LOCATION_FIELD(stmt_location);
1025  COMPARE_SCALAR_FIELD(stmt_len);
1026 
1027  return true;
1028 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 2267 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2268 {
2269  COMPARE_NODE_FIELD(roles);
2270  COMPARE_NODE_FIELD(newrole);
2271 
2272  return true;
2273 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1798 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1799 {
1800  COMPARE_SCALAR_FIELD(concurrent);
1801  COMPARE_SCALAR_FIELD(skipData);
1802  COMPARE_NODE_FIELD(relation);
1803 
1804  return true;
1805 }
#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 2185 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2186 {
2187  COMPARE_SCALAR_FIELD(kind);
2188  COMPARE_NODE_FIELD(relation);
2190  COMPARE_NODE_FIELD(params);
2191 
2192  return true;
2193 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#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 516 of file equalfuncs.c.

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

Referenced by equal().

517 {
519  COMPARE_SCALAR_FIELD(resulttype);
520  COMPARE_SCALAR_FIELD(resulttypmod);
521  COMPARE_SCALAR_FIELD(resultcollid);
522  COMPARE_COERCIONFORM_FIELD(relabelformat);
523  COMPARE_LOCATION_FIELD(location);
524 
525  return true;
526 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#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 1483 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1484 {
1485  COMPARE_SCALAR_FIELD(renameType);
1486  COMPARE_SCALAR_FIELD(relationType);
1487  COMPARE_NODE_FIELD(relation);
1488  COMPARE_NODE_FIELD(object);
1490  COMPARE_STRING_FIELD(newname);
1491  COMPARE_SCALAR_FIELD(behavior);
1492  COMPARE_SCALAR_FIELD(missing_ok);
1493 
1494  return true;
1495 }
#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