PostgreSQL Source Code  git master
equalfuncs.c File Reference
#include "postgres.h"
#include "miscadmin.h"
#include "nodes/extensible.h"
#include "nodes/pathnodes.h"
#include "utils/datum.h"
Include dependency graph for equalfuncs.c:

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ COMPARE_BITMAPSET_FIELD

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

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

Definition at line 53 of file equalfuncs.c.

Referenced by _equalA_ArrayExpr(), _equalA_Indirection(), _equalAccessPriv(), _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlias(), _equalAlterCollationStmt(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOperatorStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterStatsStmt(), _equalAlterSubscriptionStmt(), _equalAlterSystemStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _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(), _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(), _equalPrepareStmt(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTableSample(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeVar(), _equalRawStmt(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalRowCompareExpr(), _equalRowExpr(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSortBy(), _equalSpecialJoinInfo(), _equalSubLink(), _equalSubPlan(), _equalSubscriptingRef(), _equalTableFunc(), _equalTableLikeClause(), _equalTableSampleClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeCast(), _equalTypeName(), _equalUpdateStmt(), _equalVacuumRelation(), _equalVacuumStmt(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

◆ COMPARE_POINTER_FIELD

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

Definition at line 78 of file equalfuncs.c.

Referenced by _equalAppendRelInfo().

◆ COMPARE_SCALAR_FIELD

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

Definition at line 46 of file equalfuncs.c.

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

◆ COMPARE_STRING_FIELD

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

Definition at line 67 of file equalfuncs.c.

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

◆ equalstr

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

Definition at line 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 2403 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2404 {
2405  COMPARE_NODE_FIELD(elements);
2406  COMPARE_LOCATION_FIELD(location);
2407 
2408  return true;
2409 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalA_Indirection()

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

Definition at line 2394 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2395 {
2397  COMPARE_NODE_FIELD(indirection);
2398 
2399  return true;
2400 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalAccessPriv()

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

Definition at line 1155 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1156 {
1157  COMPARE_STRING_FIELD(priv_name);
1158  COMPARE_NODE_FIELD(cols);
1159 
1160  return true;
1161 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAConst()

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

Definition at line 2351 of file equalfuncs.c.

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

Referenced by equal().

2352 {
2353  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2354  return false;
2355  COMPARE_LOCATION_FIELD(location);
2356 
2357  return true;
2358 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3018
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
Value val
Definition: parsenodes.h:288

◆ _equalAExpr()

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

Definition at line 2321 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2322 {
2323  COMPARE_SCALAR_FIELD(kind);
2325  COMPARE_NODE_FIELD(lexpr);
2326  COMPARE_NODE_FIELD(rexpr);
2327  COMPARE_LOCATION_FIELD(location);
2328 
2329  return true;
2330 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAggref()

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

Definition at line 217 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalAIndices()

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

Definition at line 2384 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2385 {
2386  COMPARE_SCALAR_FIELD(is_slice);
2387  COMPARE_NODE_FIELD(lidx);
2388  COMPARE_NODE_FIELD(uidx);
2389 
2390  return true;
2391 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlias()

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

Definition at line 98 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalAlterCollationStmt()

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

Definition at line 1109 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1110 {
1111  COMPARE_NODE_FIELD(collname);
1112 
1113  return true;
1114 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1672 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1673 {
1675  COMPARE_NODE_FIELD(setstmt);
1676 
1677  return true;
1678 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:50
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseStmt()

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

Definition at line 1663 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1664 {
1667 
1668  return true;
1669 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:50
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDefaultPrivilegesStmt()

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

Definition at line 1177 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1178 {
1181 
1182  return true;
1183 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1117 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1118 {
1119  COMPARE_SCALAR_FIELD(subtype);
1120  COMPARE_NODE_FIELD(typeName);
1122  COMPARE_NODE_FIELD(def);
1123  COMPARE_SCALAR_FIELD(behavior);
1124  COMPARE_SCALAR_FIELD(missing_ok);
1125 
1126  return true;
1127 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#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 1563 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1564 {
1565  COMPARE_NODE_FIELD(typeName);
1566  COMPARE_STRING_FIELD(oldVal);
1567  COMPARE_STRING_FIELD(newVal);
1568  COMPARE_STRING_FIELD(newValNeighbor);
1569  COMPARE_SCALAR_FIELD(newValIsAfter);
1570  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1571 
1572  return true;
1573 }
#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 2038 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2039 {
2040  COMPARE_STRING_FIELD(trigname);
2041  COMPARE_SCALAR_FIELD(tgenabled);
2042 
2043  return true;
2044 }
#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 1873 of file equalfuncs.c.

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

Referenced by equal().

1874 {
1875  COMPARE_STRING_FIELD(extname);
1877  COMPARE_SCALAR_FIELD(objtype);
1878  COMPARE_NODE_FIELD(object);
1879 
1880  return true;
1881 }
#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 1864 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1865 {
1866  COMPARE_STRING_FIELD(extname);
1868 
1869  return true;
1870 }
#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 1894 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1895 {
1896  COMPARE_STRING_FIELD(fdwname);
1897  COMPARE_NODE_FIELD(func_options);
1899 
1900  return true;
1901 }
#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 1917 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1918 {
1919  COMPARE_STRING_FIELD(servername);
1920  COMPARE_STRING_FIELD(version);
1922  COMPARE_SCALAR_FIELD(has_version);
1923 
1924  return true;
1925 }
#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 1409 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1410 {
1411  COMPARE_SCALAR_FIELD(objtype);
1412  COMPARE_NODE_FIELD(func);
1413  COMPARE_NODE_FIELD(actions);
1414 
1415  return true;
1416 }
#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 463 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

464 {
465  COMPARE_NODE_FIELD(subplans);
466 
467  return true;
468 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1442 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1443 {
1444  COMPARE_SCALAR_FIELD(objectType);
1445  COMPARE_NODE_FIELD(relation);
1446  COMPARE_NODE_FIELD(object);
1447  COMPARE_NODE_FIELD(extname);
1448 
1449  return true;
1450 }
#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 1453 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1454 {
1455  COMPARE_SCALAR_FIELD(objectType);
1456  COMPARE_NODE_FIELD(relation);
1457  COMPARE_NODE_FIELD(object);
1458  COMPARE_STRING_FIELD(newschema);
1459  COMPARE_SCALAR_FIELD(missing_ok);
1460 
1461  return true;
1462 }
#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 1476 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1477 {
1478  COMPARE_NODE_FIELD(opername);
1480 
1481  return true;
1482 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1643 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1644 {
1645  COMPARE_NODE_FIELD(opfamilyname);
1646  COMPARE_STRING_FIELD(amname);
1647  COMPARE_SCALAR_FIELD(isDrop);
1648  COMPARE_NODE_FIELD(items);
1649 
1650  return true;
1651 }
#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 1465 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1466 {
1467  COMPARE_SCALAR_FIELD(objectType);
1468  COMPARE_NODE_FIELD(relation);
1469  COMPARE_NODE_FIELD(object);
1470  COMPARE_NODE_FIELD(newowner);
1471 
1472  return true;
1473 }
#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 2309 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2310 {
2311  COMPARE_STRING_FIELD(policy_name);
2312  COMPARE_NODE_FIELD(table);
2313  COMPARE_NODE_FIELD(roles);
2314  COMPARE_NODE_FIELD(qual);
2315  COMPARE_NODE_FIELD(with_check);
2316 
2317  return true;
2318 }
#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 2246 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2248 {
2249  COMPARE_STRING_FIELD(pubname);
2251  COMPARE_NODE_FIELD(tables);
2252  COMPARE_SCALAR_FIELD(for_all_tables);
2253  COMPARE_SCALAR_FIELD(tableAction);
2254 
2255  return true;
2256 }
#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 2080 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2081 {
2082  COMPARE_NODE_FIELD(role);
2083  COMPARE_STRING_FIELD(database);
2084  COMPARE_NODE_FIELD(setstmt);
2085 
2086  return true;
2087 }
#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 2070 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2071 {
2072  COMPARE_NODE_FIELD(role);
2075 
2076  return true;
2077 }
#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 1772 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1773 {
1774  COMPARE_NODE_FIELD(sequence);
1776  COMPARE_SCALAR_FIELD(for_identity);
1777  COMPARE_SCALAR_FIELD(missing_ok);
1778 
1779  return true;
1780 }
#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 1375 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1376 {
1377  COMPARE_NODE_FIELD(defnames);
1378  COMPARE_SCALAR_FIELD(stxstattarget);
1379  COMPARE_SCALAR_FIELD(missing_ok);
1380 
1381  return true;
1382 }
#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 2271 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2273 {
2274  COMPARE_SCALAR_FIELD(kind);
2276  COMPARE_STRING_FIELD(conninfo);
2277  COMPARE_NODE_FIELD(publication);
2279 
2280  return true;
2281 }
#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 1751 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1752 {
1753  COMPARE_NODE_FIELD(setstmt);
1754 
1755  return true;
1756 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1095 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1096 {
1097  COMPARE_SCALAR_FIELD(subtype);
1099  COMPARE_SCALAR_FIELD(num);
1100  COMPARE_NODE_FIELD(newowner);
1101  COMPARE_NODE_FIELD(def);
1102  COMPARE_SCALAR_FIELD(behavior);
1103  COMPARE_SCALAR_FIELD(missing_ok);
1104 
1105  return true;
1106 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#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 1841 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1843 {
1844  COMPARE_STRING_FIELD(orig_tablespacename);
1845  COMPARE_SCALAR_FIELD(objtype);
1846  COMPARE_NODE_FIELD(roles);
1847  COMPARE_STRING_FIELD(new_tablespacename);
1848  COMPARE_SCALAR_FIELD(nowait);
1849 
1850  return true;
1851 }
#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 1830 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1832 {
1833  COMPARE_STRING_FIELD(tablespacename);
1835  COMPARE_SCALAR_FIELD(isReset);
1836 
1837  return true;
1838 }
#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 1084 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1085 {
1086  COMPARE_NODE_FIELD(relation);
1087  COMPARE_NODE_FIELD(cmds);
1089  COMPARE_SCALAR_FIELD(missing_ok);
1090 
1091  return true;
1092 }
char relkind
Definition: pg_class.h:81
#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 2219 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2221 {
2222  COMPARE_SCALAR_FIELD(kind);
2223  COMPARE_NODE_FIELD(cfgname);
2224  COMPARE_NODE_FIELD(tokentype);
2225  COMPARE_NODE_FIELD(dicts);
2226  COMPARE_SCALAR_FIELD(override);
2227  COMPARE_SCALAR_FIELD(replace);
2228  COMPARE_SCALAR_FIELD(missing_ok);
2229 
2230  return true;
2231 }
#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 2210 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2211 {
2212  COMPARE_NODE_FIELD(dictname);
2214 
2215  return true;
2216 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 1939 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1940 {
1942  COMPARE_STRING_FIELD(servername);
1944 
1945  return true;
1946 }
#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:94

◆ _equalAppendRelInfo()

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

Definition at line 900 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalArrayCoerceExpr()

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

Definition at line 519 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalArrayExpr()

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

Definition at line 587 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalAStar()

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

Definition at line 2378 of file equalfuncs.c.

Referenced by equal().

2379 {
2380  return true;
2381 }

◆ _equalBooleanTest()

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

Definition at line 687 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalBoolExpr()

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

Definition at line 417 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCallStmt()

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

Definition at line 1204 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1205 {
1206  COMPARE_NODE_FIELD(funccall);
1207  COMPARE_NODE_FIELD(funcexpr);
1208 
1209  return true;
1210 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 554 of file equalfuncs.c.

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

Referenced by equal().

555 {
556  COMPARE_SCALAR_FIELD(casetype);
557  COMPARE_SCALAR_FIELD(casecollid);
560  COMPARE_NODE_FIELD(defresult);
561  COMPARE_LOCATION_FIELD(location);
562 
563  return true;
564 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseTestExpr()

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

Definition at line 577 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalCaseWhen()

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

Definition at line 567 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalClosePortalStmt()

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

Definition at line 1196 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1197 {
1198  COMPARE_STRING_FIELD(portalname);
1199 
1200  return true;
1201 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1213 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1214 {
1215  COMPARE_NODE_FIELD(relation);
1216  COMPARE_STRING_FIELD(indexname);
1218 
1219  return true;
1220 }
#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

◆ _equalCoalesceExpr()

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

Definition at line 625 of file equalfuncs.c.

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

Referenced by equal().

626 {
627  COMPARE_SCALAR_FIELD(coalescetype);
628  COMPARE_SCALAR_FIELD(coalescecollid);
630  COMPARE_LOCATION_FIELD(location);
631 
632  return true;
633 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceToDomain()

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

Definition at line 697 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCoerceToDomainValue()

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

Definition at line 710 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalCoerceViaIO()

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

Definition at line 507 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCollateClause()

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

Definition at line 2458 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2459 {
2461  COMPARE_NODE_FIELD(collname);
2462  COMPARE_LOCATION_FIELD(location);
2463 
2464  return true;
2465 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalCollateExpr()

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

Definition at line 544 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalColumnDef()

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

Definition at line 2573 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2574 {
2575  COMPARE_STRING_FIELD(colname);
2576  COMPARE_NODE_FIELD(typeName);
2577  COMPARE_SCALAR_FIELD(inhcount);
2578  COMPARE_SCALAR_FIELD(is_local);
2579  COMPARE_SCALAR_FIELD(is_not_null);
2580  COMPARE_SCALAR_FIELD(is_from_type);
2581  COMPARE_SCALAR_FIELD(storage);
2582  COMPARE_NODE_FIELD(raw_default);
2583  COMPARE_NODE_FIELD(cooked_default);
2584  COMPARE_SCALAR_FIELD(identity);
2585  COMPARE_NODE_FIELD(identitySequence);
2586  COMPARE_SCALAR_FIELD(generated);
2587  COMPARE_NODE_FIELD(collClause);
2588  COMPARE_SCALAR_FIELD(collOid);
2589  COMPARE_NODE_FIELD(constraints);
2590  COMPARE_NODE_FIELD(fdwoptions);
2591  COMPARE_LOCATION_FIELD(location);
2592 
2593  return true;
2594 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalColumnRef()

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

Definition at line 2333 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2334 {
2335  COMPARE_NODE_FIELD(fields);
2336  COMPARE_LOCATION_FIELD(location);
2337 
2338  return true;
2339 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCommentStmt()

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

Definition at line 1302 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1303 {
1304  COMPARE_SCALAR_FIELD(objtype);
1305  COMPARE_NODE_FIELD(object);
1306  COMPARE_STRING_FIELD(comment);
1307 
1308  return true;
1309 }
#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 2820 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2821 {
2822  COMPARE_STRING_FIELD(ctename);
2823  COMPARE_NODE_FIELD(aliascolnames);
2824  COMPARE_SCALAR_FIELD(ctematerialized);
2825  COMPARE_NODE_FIELD(ctequery);
2826  COMPARE_LOCATION_FIELD(location);
2827  COMPARE_SCALAR_FIELD(cterecursive);
2828  COMPARE_SCALAR_FIELD(cterefcount);
2829  COMPARE_NODE_FIELD(ctecolnames);
2830  COMPARE_NODE_FIELD(ctecoltypes);
2831  COMPARE_NODE_FIELD(ctecoltypmods);
2832  COMPARE_NODE_FIELD(ctecolcollations);
2833 
2834  return true;
2835 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCompositeTypeStmt()

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

Definition at line 1536 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1537 {
1538  COMPARE_NODE_FIELD(typevar);
1539  COMPARE_NODE_FIELD(coldeflist);
1540 
1541  return true;
1542 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalConst()

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

Definition at line 183 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalConstraint()

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

Definition at line 2597 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2598 {
2599  COMPARE_SCALAR_FIELD(contype);
2600  COMPARE_STRING_FIELD(conname);
2601  COMPARE_SCALAR_FIELD(deferrable);
2602  COMPARE_SCALAR_FIELD(initdeferred);
2603  COMPARE_LOCATION_FIELD(location);
2604  COMPARE_SCALAR_FIELD(is_no_inherit);
2605  COMPARE_NODE_FIELD(raw_expr);
2606  COMPARE_STRING_FIELD(cooked_expr);
2607  COMPARE_SCALAR_FIELD(generated_when);
2608  COMPARE_NODE_FIELD(keys);
2609  COMPARE_NODE_FIELD(including);
2610  COMPARE_NODE_FIELD(exclusions);
2612  COMPARE_STRING_FIELD(indexname);
2613  COMPARE_STRING_FIELD(indexspace);
2614  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2615  COMPARE_STRING_FIELD(access_method);
2616  COMPARE_NODE_FIELD(where_clause);
2617  COMPARE_NODE_FIELD(pktable);
2618  COMPARE_NODE_FIELD(fk_attrs);
2619  COMPARE_NODE_FIELD(pk_attrs);
2620  COMPARE_SCALAR_FIELD(fk_matchtype);
2621  COMPARE_SCALAR_FIELD(fk_upd_action);
2622  COMPARE_SCALAR_FIELD(fk_del_action);
2623  COMPARE_NODE_FIELD(old_conpfeqop);
2624  COMPARE_SCALAR_FIELD(old_pktable_oid);
2625  COMPARE_SCALAR_FIELD(skip_validation);
2626  COMPARE_SCALAR_FIELD(initially_valid);
2627 
2628  return true;
2629 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConstraintsSetStmt()

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

Definition at line 2109 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2110 {
2111  COMPARE_NODE_FIELD(constraints);
2112  COMPARE_SCALAR_FIELD(deferred);
2113 
2114  return true;
2115 }
#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 533 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCopyStmt()

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

Definition at line 1223 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1224 {
1225  COMPARE_NODE_FIELD(relation);
1226  COMPARE_NODE_FIELD(query);
1227  COMPARE_NODE_FIELD(attlist);
1228  COMPARE_SCALAR_FIELD(is_from);
1229  COMPARE_SCALAR_FIELD(is_program);
1232  COMPARE_NODE_FIELD(whereClause);
1233 
1234  return true;
1235 }
#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:90
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateAmStmt()

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

Definition at line 1996 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1997 {
1998  COMPARE_STRING_FIELD(amname);
1999  COMPARE_NODE_FIELD(handler_name);
2000  COMPARE_SCALAR_FIELD(amtype);
2001 
2002  return true;
2003 }
#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 2153 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2154 {
2155  COMPARE_NODE_FIELD(sourcetype);
2156  COMPARE_NODE_FIELD(targettype);
2157  COMPARE_NODE_FIELD(func);
2158  COMPARE_SCALAR_FIELD(context);
2159  COMPARE_SCALAR_FIELD(inout);
2160 
2161  return true;
2162 }
#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 2141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2142 {
2143  COMPARE_NODE_FIELD(conversion_name);
2144  COMPARE_STRING_FIELD(for_encoding_name);
2145  COMPARE_STRING_FIELD(to_encoding_name);
2146  COMPARE_NODE_FIELD(func_name);
2147  COMPARE_SCALAR_FIELD(def);
2148 
2149  return true;
2150 }
#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 1654 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1655 {
1658 
1659  return true;
1660 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:50
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateDomainStmt()

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

Definition at line 1597 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1598 {
1599  COMPARE_NODE_FIELD(domainname);
1600  COMPARE_NODE_FIELD(typeName);
1601  COMPARE_NODE_FIELD(collClause);
1602  COMPARE_NODE_FIELD(constraints);
1603 
1604  return true;
1605 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

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

Definition at line 1545 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1546 {
1547  COMPARE_NODE_FIELD(typeName);
1548  COMPARE_NODE_FIELD(vals);
1549 
1550  return true;
1551 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEventTrigStmt()

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

Definition at line 2027 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2028 {
2029  COMPARE_STRING_FIELD(trigname);
2030  COMPARE_STRING_FIELD(eventname);
2031  COMPARE_NODE_FIELD(whenclause);
2032  COMPARE_NODE_FIELD(funcname);
2033 
2034  return true;
2035 }
#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 1854 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalCreateFdwStmt()

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

Definition at line 1884 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1885 {
1886  COMPARE_STRING_FIELD(fdwname);
1887  COMPARE_NODE_FIELD(func_options);
1889 
1890  return true;
1891 }
#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 1904 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1905 {
1906  COMPARE_STRING_FIELD(servername);
1907  COMPARE_STRING_FIELD(servertype);
1908  COMPARE_STRING_FIELD(version);
1909  COMPARE_STRING_FIELD(fdwname);
1910  COMPARE_SCALAR_FIELD(if_not_exists);
1912 
1913  return true;
1914 }
#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 1959 of file equalfuncs.c.

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

Referenced by equal().

1960 {
1961  if (!_equalCreateStmt(&a->base, &b->base))
1962  return false;
1963 
1964  COMPARE_STRING_FIELD(servername);
1966 
1967  return true;
1968 }
#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:1238

◆ _equalCreateFunctionStmt()

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

Definition at line 1385 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1386 {
1387  COMPARE_SCALAR_FIELD(is_procedure);
1388  COMPARE_SCALAR_FIELD(replace);
1389  COMPARE_NODE_FIELD(funcname);
1390  COMPARE_NODE_FIELD(parameters);
1391  COMPARE_NODE_FIELD(returnType);
1393 
1394  return true;
1395 }
#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 1621 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1622 {
1623  COMPARE_SCALAR_FIELD(itemtype);
1625  COMPARE_SCALAR_FIELD(number);
1626  COMPARE_NODE_FIELD(order_family);
1627  COMPARE_NODE_FIELD(class_args);
1628  COMPARE_NODE_FIELD(storedtype);
1629 
1630  return true;
1631 }
const char * name
Definition: encode.c:521
#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 1608 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1609 {
1610  COMPARE_NODE_FIELD(opclassname);
1611  COMPARE_NODE_FIELD(opfamilyname);
1612  COMPARE_STRING_FIELD(amname);
1613  COMPARE_NODE_FIELD(datatype);
1614  COMPARE_NODE_FIELD(items);
1615  COMPARE_SCALAR_FIELD(isDefault);
1616 
1617  return true;
1618 }
#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 1634 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1635 {
1636  COMPARE_NODE_FIELD(opfamilyname);
1637  COMPARE_STRING_FIELD(amname);
1638 
1639  return true;
1640 }
#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 2047 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2048 {
2049  COMPARE_SCALAR_FIELD(replace);
2050  COMPARE_STRING_FIELD(plname);
2051  COMPARE_NODE_FIELD(plhandler);
2052  COMPARE_NODE_FIELD(plinline);
2053  COMPARE_NODE_FIELD(plvalidator);
2054  COMPARE_SCALAR_FIELD(pltrusted);
2055 
2056  return true;
2057 }
#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 2295 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2296 {
2297  COMPARE_STRING_FIELD(policy_name);
2298  COMPARE_NODE_FIELD(table);
2299  COMPARE_STRING_FIELD(cmd_name);
2300  COMPARE_SCALAR_FIELD(permissive);
2301  COMPARE_NODE_FIELD(roles);
2302  COMPARE_NODE_FIELD(qual);
2303  COMPARE_NODE_FIELD(with_check);
2304 
2305  return true;
2306 }
#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 2234 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2236 {
2237  COMPARE_STRING_FIELD(pubname);
2239  COMPARE_NODE_FIELD(tables);
2240  COMPARE_SCALAR_FIELD(for_all_tables);
2241 
2242  return true;
2243 }
#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 1554 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1555 {
1556  COMPARE_NODE_FIELD(typeName);
1557  COMPARE_NODE_FIELD(params);
1558 
1559  return true;
1560 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateRoleStmt()

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

Definition at line 2060 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2061 {
2062  COMPARE_SCALAR_FIELD(stmt_type);
2063  COMPARE_STRING_FIELD(role);
2065 
2066  return true;
2067 }
#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 2130 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2131 {
2132  COMPARE_STRING_FIELD(schemaname);
2133  COMPARE_NODE_FIELD(authrole);
2134  COMPARE_NODE_FIELD(schemaElts);
2135  COMPARE_SCALAR_FIELD(if_not_exists);
2136 
2137  return true;
2138 }
#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 1760 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1761 {
1762  COMPARE_NODE_FIELD(sequence);
1764  COMPARE_SCALAR_FIELD(ownerId);
1765  COMPARE_SCALAR_FIELD(for_identity);
1766  COMPARE_SCALAR_FIELD(if_not_exists);
1767 
1768  return true;
1769 }
#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 1362 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1363 {
1364  COMPARE_NODE_FIELD(defnames);
1365  COMPARE_NODE_FIELD(stat_types);
1366  COMPARE_NODE_FIELD(exprs);
1367  COMPARE_NODE_FIELD(relations);
1368  COMPARE_STRING_FIELD(stxcomment);
1369  COMPARE_SCALAR_FIELD(if_not_exists);
1370 
1371  return true;
1372 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateStmt()

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

Definition at line 1238 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1239 {
1240  COMPARE_NODE_FIELD(relation);
1241  COMPARE_NODE_FIELD(tableElts);
1242  COMPARE_NODE_FIELD(inhRelations);
1243  COMPARE_NODE_FIELD(partbound);
1244  COMPARE_NODE_FIELD(partspec);
1245  COMPARE_NODE_FIELD(ofTypename);
1246  COMPARE_NODE_FIELD(constraints);
1248  COMPARE_SCALAR_FIELD(oncommit);
1249  COMPARE_STRING_FIELD(tablespacename);
1250  COMPARE_STRING_FIELD(accessMethod);
1251  COMPARE_SCALAR_FIELD(if_not_exists);
1252 
1253  return true;
1254 }
#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 2259 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2261 {
2263  COMPARE_STRING_FIELD(conninfo);
2264  COMPARE_NODE_FIELD(publication);
2266 
2267  return true;
2268 }
#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 1720 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1721 {
1722  COMPARE_NODE_FIELD(query);
1723  COMPARE_NODE_FIELD(into);
1725  COMPARE_SCALAR_FIELD(is_select_into);
1726  COMPARE_SCALAR_FIELD(if_not_exists);
1727 
1728  return true;
1729 }
char relkind
Definition: pg_class.h:81
#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 1810 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1811 {
1812  COMPARE_STRING_FIELD(tablespacename);
1813  COMPARE_NODE_FIELD(owner);
1814  COMPARE_STRING_FIELD(location);
1816 
1817  return true;
1818 }
#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 1984 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1985 {
1986  COMPARE_SCALAR_FIELD(replace);
1987  COMPARE_NODE_FIELD(type_name);
1988  COMPARE_STRING_FIELD(lang);
1989  COMPARE_NODE_FIELD(fromsql);
1990  COMPARE_NODE_FIELD(tosql);
1991 
1992  return true;
1993 }
#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 2006 of file equalfuncs.c.

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

Referenced by equal().

2007 {
2008  COMPARE_STRING_FIELD(trigname);
2009  COMPARE_NODE_FIELD(relation);
2010  COMPARE_NODE_FIELD(funcname);
2012  COMPARE_SCALAR_FIELD(row);
2013  COMPARE_SCALAR_FIELD(timing);
2014  COMPARE_SCALAR_FIELD(events);
2015  COMPARE_NODE_FIELD(columns);
2016  COMPARE_NODE_FIELD(whenClause);
2017  COMPARE_SCALAR_FIELD(isconstraint);
2018  COMPARE_NODE_FIELD(transitionRels);
2019  COMPARE_SCALAR_FIELD(deferrable);
2020  COMPARE_SCALAR_FIELD(initdeferred);
2021  COMPARE_NODE_FIELD(constrrel);
2022 
2023  return true;
2024 }
#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 1928 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1929 {
1931  COMPARE_STRING_FIELD(servername);
1932  COMPARE_SCALAR_FIELD(if_not_exists);
1934 
1935  return true;
1936 }
#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:94
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCurrentOfExpr()

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

Definition at line 732 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

733 {
734  COMPARE_SCALAR_FIELD(cvarno);
735  COMPARE_STRING_FIELD(cursor_name);
736  COMPARE_SCALAR_FIELD(cursor_param);
737 
738  return true;
739 }
#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 2184 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2185 {
2187 
2188  return true;
2189 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521

◆ _equalDeclareCursorStmt()

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

Definition at line 1186 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1187 {
1188  COMPARE_STRING_FIELD(portalname);
1190  COMPARE_NODE_FIELD(query);
1191 
1192  return true;
1193 }
#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 2632 of file equalfuncs.c.

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

Referenced by equal().

2633 {
2634  COMPARE_STRING_FIELD(defnamespace);
2635  COMPARE_STRING_FIELD(defname);
2637  COMPARE_SCALAR_FIELD(defaction);
2638  COMPARE_LOCATION_FIELD(location);
2639 
2640  return true;
2641 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDefineStmt()

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

Definition at line 1266 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1267 {
1268  COMPARE_SCALAR_FIELD(kind);
1269  COMPARE_SCALAR_FIELD(oldstyle);
1270  COMPARE_NODE_FIELD(defnames);
1272  COMPARE_NODE_FIELD(definition);
1273  COMPARE_SCALAR_FIELD(if_not_exists);
1274  COMPARE_SCALAR_FIELD(replace);
1275 
1276  return true;
1277 }
#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 1019 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1020 {
1021  COMPARE_NODE_FIELD(relation);
1022  COMPARE_NODE_FIELD(usingClause);
1023  COMPARE_NODE_FIELD(whereClause);
1024  COMPARE_NODE_FIELD(returningList);
1025  COMPARE_NODE_FIELD(withClause);
1026 
1027  return true;
1028 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1802 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1803 {
1804  COMPARE_SCALAR_FIELD(target);
1805 
1806  return true;
1807 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

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

Definition at line 341 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalDoStmt()

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

Definition at line 1419 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1420 {
1422 
1423  return true;
1424 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1681 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1682 {
1684  COMPARE_SCALAR_FIELD(missing_ok);
1686 
1687  return true;
1688 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:50
#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 2192 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2193 {
2194  COMPARE_NODE_FIELD(roles);
2195  COMPARE_SCALAR_FIELD(behavior);
2196 
2197  return true;
2198 }
#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 2090 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2091 {
2092  COMPARE_NODE_FIELD(roles);
2093  COMPARE_SCALAR_FIELD(missing_ok);
2094 
2095  return true;
2096 }
#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 1280 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1281 {
1282  COMPARE_NODE_FIELD(objects);
1283  COMPARE_SCALAR_FIELD(removeType);
1284  COMPARE_SCALAR_FIELD(behavior);
1285  COMPARE_SCALAR_FIELD(missing_ok);
1286  COMPARE_SCALAR_FIELD(concurrent);
1287 
1288  return true;
1289 }
#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 2284 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2286 {
2288  COMPARE_SCALAR_FIELD(missing_ok);
2289  COMPARE_SCALAR_FIELD(behavior);
2290 
2291  return true;
2292 }
#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 1821 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1822 {
1823  COMPARE_STRING_FIELD(tablespacename);
1824  COMPARE_SCALAR_FIELD(missing_ok);
1825 
1826  return true;
1827 }
#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 1949 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1950 {
1952  COMPARE_STRING_FIELD(servername);
1953  COMPARE_SCALAR_FIELD(missing_ok);
1954 
1955  return true;
1956 }
#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:94
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalExecuteStmt()

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

Definition at line 2175 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2176 {
2178  COMPARE_NODE_FIELD(params);
2179 
2180  return true;
2181 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExplainStmt()

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

Definition at line 1711 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1712 {
1713  COMPARE_NODE_FIELD(query);
1715 
1716  return true;
1717 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 931 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1324 {
1325  COMPARE_SCALAR_FIELD(direction);
1326  COMPARE_SCALAR_FIELD(howMany);
1327  COMPARE_STRING_FIELD(portalname);
1328  COMPARE_SCALAR_FIELD(ismove);
1329 
1330  return true;
1331 }
#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 471 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

472 {
474  COMPARE_SCALAR_FIELD(fieldnum);
475  COMPARE_SCALAR_FIELD(resulttype);
476  COMPARE_SCALAR_FIELD(resulttypmod);
477  COMPARE_SCALAR_FIELD(resultcollid);
478 
479  return true;
480 }
#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 483 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalFromExpr()

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

Definition at line 798 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

799 {
800  COMPARE_NODE_FIELD(fromlist);
801  COMPARE_NODE_FIELD(quals);
802 
803  return true;
804 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

Definition at line 2361 of file equalfuncs.c.

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

Referenced by equal().

2362 {
2363  COMPARE_NODE_FIELD(funcname);
2365  COMPARE_NODE_FIELD(agg_order);
2366  COMPARE_NODE_FIELD(agg_filter);
2367  COMPARE_SCALAR_FIELD(agg_within_group);
2368  COMPARE_SCALAR_FIELD(agg_star);
2369  COMPARE_SCALAR_FIELD(agg_distinct);
2370  COMPARE_SCALAR_FIELD(func_variadic);
2371  COMPARE_NODE_FIELD(over);
2372  COMPARE_LOCATION_FIELD(location);
2373 
2374  return true;
2375 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFuncExpr()

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

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

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

◆ _equalFunctionParameter()

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

Definition at line 1398 of file equalfuncs.c.

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

Referenced by equal().

1399 {
1401  COMPARE_NODE_FIELD(argType);
1403  COMPARE_NODE_FIELD(defexpr);
1404 
1405  return true;
1406 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#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 1164 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and grantor.

Referenced by equal().

1165 {
1166  COMPARE_NODE_FIELD(granted_roles);
1167  COMPARE_NODE_FIELD(grantee_roles);
1168  COMPARE_SCALAR_FIELD(is_grant);
1169  COMPARE_SCALAR_FIELD(admin_opt);
1171  COMPARE_SCALAR_FIELD(behavior);
1172 
1173  return true;
1174 }
Oid grantor
#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 1130 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1131 {
1132  COMPARE_SCALAR_FIELD(is_grant);
1133  COMPARE_SCALAR_FIELD(targtype);
1134  COMPARE_SCALAR_FIELD(objtype);
1135  COMPARE_NODE_FIELD(objects);
1136  COMPARE_NODE_FIELD(privileges);
1137  COMPARE_NODE_FIELD(grantees);
1138  COMPARE_SCALAR_FIELD(grant_option);
1139  COMPARE_SCALAR_FIELD(behavior);
1140 
1141  return true;
1142 }
#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 241 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalGroupingSet()

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

Definition at line 2745 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2746 {
2747  COMPARE_SCALAR_FIELD(kind);
2748  COMPARE_NODE_FIELD(content);
2749  COMPARE_LOCATION_FIELD(location);
2750 
2751  return true;
2752 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalImportForeignSchemaStmt()

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

Definition at line 1971 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1972 {
1973  COMPARE_STRING_FIELD(server_name);
1974  COMPARE_STRING_FIELD(remote_schema);
1975  COMPARE_STRING_FIELD(local_schema);
1976  COMPARE_SCALAR_FIELD(list_type);
1977  COMPARE_NODE_FIELD(table_list);
1979 
1980  return true;
1981 }
#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 2559 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2560 {
2562  COMPARE_NODE_FIELD(expr);
2563  COMPARE_STRING_FIELD(indexcolname);
2564  COMPARE_NODE_FIELD(collation);
2565  COMPARE_NODE_FIELD(opclass);
2566  COMPARE_SCALAR_FIELD(ordering);
2567  COMPARE_SCALAR_FIELD(nulls_ordering);
2568 
2569  return true;
2570 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#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 1334 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1335 {
1336  COMPARE_STRING_FIELD(idxname);
1337  COMPARE_NODE_FIELD(relation);
1338  COMPARE_STRING_FIELD(accessMethod);
1339  COMPARE_STRING_FIELD(tableSpace);
1340  COMPARE_NODE_FIELD(indexParams);
1341  COMPARE_NODE_FIELD(indexIncludingParams);
1343  COMPARE_NODE_FIELD(whereClause);
1344  COMPARE_NODE_FIELD(excludeOpNames);
1345  COMPARE_STRING_FIELD(idxcomment);
1346  COMPARE_SCALAR_FIELD(indexOid);
1347  COMPARE_SCALAR_FIELD(oldNode);
1348  COMPARE_SCALAR_FIELD(unique);
1349  COMPARE_SCALAR_FIELD(primary);
1350  COMPARE_SCALAR_FIELD(isconstraint);
1351  COMPARE_SCALAR_FIELD(deferrable);
1352  COMPARE_SCALAR_FIELD(initdeferred);
1353  COMPARE_SCALAR_FIELD(transformed);
1354  COMPARE_SCALAR_FIELD(concurrent);
1355  COMPARE_SCALAR_FIELD(if_not_exists);
1356  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1357 
1358  return true;
1359 }
#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 2797 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2798 {
2799  COMPARE_NODE_FIELD(indexElems);
2800  COMPARE_NODE_FIELD(whereClause);
2801  COMPARE_STRING_FIELD(conname);
2802  COMPARE_LOCATION_FIELD(location);
2803 
2804  return true;
2805 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalInferenceElem()

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

Definition at line 751 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

752 {
753  COMPARE_NODE_FIELD(expr);
754  COMPARE_SCALAR_FIELD(infercollid);
755  COMPARE_SCALAR_FIELD(inferopclass);
756 
757  return true;
758 }
#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 1005 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalIntoClause()

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

Definition at line 141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalJoinExpr()

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

Definition at line 783 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

784 {
785  COMPARE_SCALAR_FIELD(jointype);
786  COMPARE_SCALAR_FIELD(isNatural);
787  COMPARE_NODE_FIELD(larg);
788  COMPARE_NODE_FIELD(rarg);
789  COMPARE_NODE_FIELD(usingClause);
790  COMPARE_NODE_FIELD(quals);
791  COMPARE_NODE_FIELD(alias);
792  COMPARE_SCALAR_FIELD(rtindex);
793 
794  return true;
795 }
#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 2929 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().

2930 {
2931  const ListCell *item_a;
2932  const ListCell *item_b;
2933 
2934  /*
2935  * Try to reject by simple scalar checks before grovelling through all the
2936  * list elements...
2937  */
2939  COMPARE_SCALAR_FIELD(length);
2940 
2941  /*
2942  * We place the switch outside the loop for the sake of efficiency; this
2943  * may not be worth doing...
2944  */
2945  switch (a->type)
2946  {
2947  case T_List:
2948  forboth(item_a, a, item_b, b)
2949  {
2950  if (!equal(lfirst(item_a), lfirst(item_b)))
2951  return false;
2952  }
2953  break;
2954  case T_IntList:
2955  forboth(item_a, a, item_b, b)
2956  {
2957  if (lfirst_int(item_a) != lfirst_int(item_b))
2958  return false;
2959  }
2960  break;
2961  case T_OidList:
2962  forboth(item_a, a, item_b, b)
2963  {
2964  if (lfirst_oid(item_a) != lfirst_oid(item_b))
2965  return false;
2966  }
2967  break;
2968  default:
2969  elog(ERROR, "unrecognized list node type: %d",
2970  (int) a->type);
2971  return false; /* keep compiler quiet */
2972  }
2973 
2974  /*
2975  * If we got here, we should have run out of elements of both lists
2976  */
2977  Assert(item_a == NULL);
2978  Assert(item_b == NULL);
2979 
2980  return true;
2981 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:419
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3018
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:191
Definition: nodes.h:297
#define Assert(condition)
Definition: c.h:739
#define lfirst(lc)
Definition: pg_list.h:190
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:228
#define lfirst_oid(lc)
Definition: pg_list.h:192
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalListenStmt()

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

Definition at line 1508 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1509 {
1510  COMPARE_STRING_FIELD(conditionname);
1511 
1512  return true;
1513 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalLoadStmt()

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

Definition at line 1589 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1590 {
1592 
1593  return true;
1594 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
static char * filename
Definition: pg_dumpall.c:90

◆ _equalLockingClause()

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

Definition at line 2644 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2645 {
2646  COMPARE_NODE_FIELD(lockedRels);
2647  COMPARE_SCALAR_FIELD(strength);
2648  COMPARE_SCALAR_FIELD(waitPolicy);
2649 
2650  return true;
2651 }
#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 2099 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2100 {
2101  COMPARE_NODE_FIELD(relations);
2103  COMPARE_SCALAR_FIELD(nowait);
2104 
2105  return true;
2106 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMinMaxExpr()

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

Definition at line 636 of file equalfuncs.c.

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

Referenced by equal().

637 {
638  COMPARE_SCALAR_FIELD(minmaxtype);
639  COMPARE_SCALAR_FIELD(minmaxcollid);
640  COMPARE_SCALAR_FIELD(inputcollid);
643  COMPARE_LOCATION_FIELD(location);
644 
645  return true;
646 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMultiAssignRef()

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

Definition at line 2423 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2424 {
2425  COMPARE_NODE_FIELD(source);
2426  COMPARE_SCALAR_FIELD(colno);
2427  COMPARE_SCALAR_FIELD(ncolumns);
2428 
2429  return true;
2430 }
#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 304 of file equalfuncs.c.

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

Referenced by equal().

305 {
308  COMPARE_SCALAR_FIELD(argnumber);
309  COMPARE_LOCATION_FIELD(location);
310 
311  return true;
312 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:521
#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 742 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

743 {
744  COMPARE_SCALAR_FIELD(seqid);
745  COMPARE_SCALAR_FIELD(typeId);
746 
747  return true;
748 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1499 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1500 {
1501  COMPARE_STRING_FIELD(conditionname);
1502  COMPARE_STRING_FIELD(payload);
1503 
1504  return true;
1505 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

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

Definition at line 367 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalNullTest()

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

Definition at line 676 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalObjectWithArgs()

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

Definition at line 1145 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1146 {
1147  COMPARE_NODE_FIELD(objname);
1148  COMPARE_NODE_FIELD(objargs);
1149  COMPARE_SCALAR_FIELD(args_unspecified);
1150 
1151  return true;
1152 }
#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 2808 of file equalfuncs.c.

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

Referenced by equal().

2809 {
2811  COMPARE_NODE_FIELD(infer);
2812  COMPARE_NODE_FIELD(targetList);
2813  COMPARE_NODE_FIELD(whereClause);
2814  COMPARE_LOCATION_FIELD(location);
2815 
2816  return true;
2817 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOnConflictExpr()

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

Definition at line 807 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

808 {
810  COMPARE_NODE_FIELD(arbiterElems);
811  COMPARE_NODE_FIELD(arbiterWhere);
812  COMPARE_SCALAR_FIELD(constraint);
813  COMPARE_NODE_FIELD(onConflictSet);
814  COMPARE_NODE_FIELD(onConflictWhere);
815  COMPARE_SCALAR_FIELD(exclRelIndex);
816  COMPARE_NODE_FIELD(exclRelTlist);
817 
818  return true;
819 }
#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 315 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalParam()

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

Definition at line 204 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalParamRef()

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

Definition at line 2342 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2343 {
2344  COMPARE_SCALAR_FIELD(number);
2345  COMPARE_LOCATION_FIELD(location);
2346 
2347  return true;
2348 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionBoundSpec()

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

Definition at line 2891 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2892 {
2893  COMPARE_SCALAR_FIELD(strategy);
2894  COMPARE_SCALAR_FIELD(is_default);
2895  COMPARE_SCALAR_FIELD(modulus);
2896  COMPARE_SCALAR_FIELD(remainder);
2897  COMPARE_NODE_FIELD(listdatums);
2898  COMPARE_NODE_FIELD(lowerdatums);
2899  COMPARE_NODE_FIELD(upperdatums);
2900  COMPARE_LOCATION_FIELD(location);
2901 
2902  return true;
2903 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionCmd()

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

Definition at line 2916 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2917 {
2919  COMPARE_NODE_FIELD(bound);
2920 
2921  return true;
2922 }
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionElem()

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

Definition at line 2869 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2870 {
2872  COMPARE_NODE_FIELD(expr);
2873  COMPARE_NODE_FIELD(collation);
2874  COMPARE_NODE_FIELD(opclass);
2875  COMPARE_LOCATION_FIELD(location);
2876 
2877  return true;
2878 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionRangeDatum()

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

Definition at line 2906 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2907 {
2908  COMPARE_SCALAR_FIELD(kind);
2910  COMPARE_LOCATION_FIELD(location);
2911 
2912  return true;
2913 }
static struct @145 value
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionSpec()

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

Definition at line 2881 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2882 {
2883  COMPARE_STRING_FIELD(strategy);
2884  COMPARE_NODE_FIELD(partParams);
2885  COMPARE_LOCATION_FIELD(location);
2886 
2887  return true;
2888 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPathKey()

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

Definition at line 826 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPlaceHolderInfo()

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

Definition at line 915 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

916 {
917  COMPARE_SCALAR_FIELD(phid);
918  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
919  COMPARE_BITMAPSET_FIELD(ph_eval_at);
920  COMPARE_BITMAPSET_FIELD(ph_lateral);
921  COMPARE_BITMAPSET_FIELD(ph_needed);
922  COMPARE_SCALAR_FIELD(ph_width);
923 
924  return true;
925 }
#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 857 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPrepareStmt()

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

Definition at line 2165 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2166 {
2168  COMPARE_NODE_FIELD(argtypes);
2169  COMPARE_NODE_FIELD(query);
2170 
2171  return true;
2172 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalQuery()

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

Definition at line 952 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRangeFunction()

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

Definition at line 2505 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2506 {
2507  COMPARE_SCALAR_FIELD(lateral);
2508  COMPARE_SCALAR_FIELD(ordinality);
2509  COMPARE_SCALAR_FIELD(is_rowsfrom);
2511  COMPARE_NODE_FIELD(alias);
2512  COMPARE_NODE_FIELD(coldeflist);
2513 
2514  return true;
2515 }
static const struct fns functions
Definition: regcomp.c:298
#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 2495 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2496 {
2497  COMPARE_SCALAR_FIELD(lateral);
2498  COMPARE_NODE_FIELD(subquery);
2499  COMPARE_NODE_FIELD(alias);
2500 
2501  return true;
2502 }
#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 2530 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2531 {
2532  COMPARE_SCALAR_FIELD(lateral);
2533  COMPARE_NODE_FIELD(docexpr);
2534  COMPARE_NODE_FIELD(rowexpr);
2535  COMPARE_NODE_FIELD(namespaces);
2536  COMPARE_NODE_FIELD(columns);
2537  COMPARE_NODE_FIELD(alias);
2538  COMPARE_LOCATION_FIELD(location);
2539 
2540  return true;
2541 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTableFuncCol()

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

Definition at line 2544 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2545 {
2546  COMPARE_STRING_FIELD(colname);
2547  COMPARE_NODE_FIELD(typeName);
2548  COMPARE_SCALAR_FIELD(for_ordinality);
2549  COMPARE_SCALAR_FIELD(is_not_null);
2550  COMPARE_NODE_FIELD(colexpr);
2551  COMPARE_NODE_FIELD(coldefexpr);
2552  COMPARE_LOCATION_FIELD(location);
2553 
2554  return true;
2555 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTableSample()

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

Definition at line 2518 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2519 {
2520  COMPARE_NODE_FIELD(relation);
2521  COMPARE_NODE_FIELD(method);
2523  COMPARE_NODE_FIELD(repeatable);
2524  COMPARE_LOCATION_FIELD(location);
2525 
2526  return true;
2527 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRangeTblEntry()

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

Definition at line 2654 of file equalfuncs.c.

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

Referenced by equal().

2655 {
2656  COMPARE_SCALAR_FIELD(rtekind);
2657  COMPARE_SCALAR_FIELD(relid);
2659  COMPARE_SCALAR_FIELD(rellockmode);
2660  COMPARE_NODE_FIELD(tablesample);
2661  COMPARE_NODE_FIELD(subquery);
2662  COMPARE_SCALAR_FIELD(security_barrier);
2663  COMPARE_SCALAR_FIELD(jointype);
2664  COMPARE_SCALAR_FIELD(joinmergedcols);
2665  COMPARE_NODE_FIELD(joinaliasvars);
2666  COMPARE_NODE_FIELD(joinleftcols);
2667  COMPARE_NODE_FIELD(joinrightcols);
2669  COMPARE_SCALAR_FIELD(funcordinality);
2670  COMPARE_NODE_FIELD(tablefunc);
2671  COMPARE_NODE_FIELD(values_lists);
2672  COMPARE_STRING_FIELD(ctename);
2673  COMPARE_SCALAR_FIELD(ctelevelsup);
2674  COMPARE_SCALAR_FIELD(self_reference);
2675  COMPARE_NODE_FIELD(coltypes);
2676  COMPARE_NODE_FIELD(coltypmods);
2677  COMPARE_NODE_FIELD(colcollations);
2678  COMPARE_STRING_FIELD(enrname);
2679  COMPARE_SCALAR_FIELD(enrtuples);
2680  COMPARE_NODE_FIELD(alias);
2681  COMPARE_NODE_FIELD(eref);
2682  COMPARE_SCALAR_FIELD(lateral);
2683  COMPARE_SCALAR_FIELD(inh);
2684  COMPARE_SCALAR_FIELD(inFromCl);
2685  COMPARE_SCALAR_FIELD(requiredPerms);
2686  COMPARE_SCALAR_FIELD(checkAsUser);
2687  COMPARE_BITMAPSET_FIELD(selectedCols);
2688  COMPARE_BITMAPSET_FIELD(insertedCols);
2689  COMPARE_BITMAPSET_FIELD(updatedCols);
2690  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2691  COMPARE_NODE_FIELD(securityQuals);
2692 
2693  return true;
2694 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
char relkind
Definition: pg_class.h:81
static const struct fns functions
Definition: regcomp.c:298
#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 2697 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2698 {
2699  COMPARE_NODE_FIELD(funcexpr);
2700  COMPARE_SCALAR_FIELD(funccolcount);
2701  COMPARE_NODE_FIELD(funccolnames);
2702  COMPARE_NODE_FIELD(funccoltypes);
2703  COMPARE_NODE_FIELD(funccoltypmods);
2704  COMPARE_NODE_FIELD(funccolcollations);
2705  COMPARE_BITMAPSET_FIELD(funcparams);
2706 
2707  return true;
2708 }
#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 775 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

776 {
777  COMPARE_SCALAR_FIELD(rtindex);
778 
779  return true;
780 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeVar()

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

Definition at line 107 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalRawStmt()

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

Definition at line 995 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

996 {
997  COMPARE_NODE_FIELD(stmt);
998  COMPARE_LOCATION_FIELD(stmt_location);
999  COMPARE_LOCATION_FIELD(stmt_len);
1000 
1001  return true;
1002 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalReassignOwnedStmt()

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

Definition at line 2201 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2202 {
2203  COMPARE_NODE_FIELD(roles);
2204  COMPARE_NODE_FIELD(newrole);
2205 
2206  return true;
2207 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1732 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1733 {
1734  COMPARE_SCALAR_FIELD(concurrent);
1735  COMPARE_SCALAR_FIELD(skipData);
1736  COMPARE_NODE_FIELD(relation);
1737 
1738  return true;
1739 }
#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 2118 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2119 {
2120  COMPARE_SCALAR_FIELD(kind);
2121  COMPARE_NODE_FIELD(relation);
2124  COMPARE_SCALAR_FIELD(concurrent);
2125 
2126  return true;
2127 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#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 494 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalRenameStmt()

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

Definition at line 1427 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1428 {
1429  COMPARE_SCALAR_FIELD(renameType);
1430  COMPARE_SCALAR_FIELD(relationType);
1431  COMPARE_NODE_FIELD(relation);
1432  COMPARE_NODE_FIELD(object);
1434  COMPARE_STRING_FIELD(newname);
1435  COMPARE_SCALAR_FIELD(behavior);
1436  COMPARE_SCALAR_FIELD(missing_ok);
1437 
1438  return true;
1439 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalReplicaIdentityStmt()

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

Definition at line 1742 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1743 {
1744  COMPARE_SCALAR_FIELD(identity_type);
1746 
1747  return true;
1748 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:521
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalResTarget()

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

Definition at line 2412 of file equalfuncs.c.

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

Referenced by equal().

2413 {
2415  COMPARE_NODE_FIELD(indirection);
2417  COMPARE_LOCATION_FIELD(location);
2418 
2419  return true;
2420 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:521
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664

◆ _equalRestrictInfo()

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

Definition at line 838 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRoleSpec()

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

Definition at line 2849 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2850 {
2851  COMPARE_SCALAR_FIELD(roletype);
2852  COMPARE_STRING_FIELD(rolename);
2853  COMPARE_LOCATION_FIELD(location);
2854 
2855  return true;
2856 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRowCompareExpr()

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

Definition at line 612 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRowExpr()

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

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

601 {
603  COMPARE_SCALAR_FIELD(row_typeid);
604  COMPARE_COERCIONFORM_FIELD(row_format);
605  COMPARE_NODE_FIELD(colnames);
606  COMPARE_LOCATION_FIELD(location);
607 
608  return true;
609 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:89
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRowMarkClause()

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

Definition at line 2776 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2777 {
2778  COMPARE_SCALAR_FIELD(rti);
2779  COMPARE_SCALAR_FIELD(strength);
2780  COMPARE_SCALAR_FIELD(waitPolicy);
2781  COMPARE_SCALAR_FIELD(pushedDown);
2782 
2783  return true;
2784 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRuleStmt()

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

Definition at line 1485 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1486 {
1487  COMPARE_NODE_FIELD(relation);
1488  COMPARE_STRING_FIELD(rulename);
1489  COMPARE_NODE_FIELD(whereClause);
1490  COMPARE_SCALAR_FIELD(event);
1491  COMPARE_SCALAR_FIELD(instead);
1492  COMPARE_NODE_FIELD(actions);
1493  COMPARE_SCALAR_FIELD(replace);
1494 
1495  return true;
1496 }
#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

◆ _equalScalarArrayOpExpr()

static bool _equalScalarArrayOpExpr ( const ScalarArrayOpExpr a,
const ScalarArrayOpExpr b 
)
static

Definition at line 393 of file equalfuncs.c.

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

Referenced by equal().

394 {
395  COMPARE_SCALAR_FIELD(opno);
396 
397  /*
398  * Special-case opfuncid: it is allowable for it to differ if one node
399  * contains zero and the other doesn't. This just means that the one node
400  * isn't as far along in the parse/plan pipeline and hasn't had the
401  * opfuncid cache filled yet.
402  */
403  if (a->opfuncid != b->opfuncid &&
404  a->opfuncid != 0 &&
405  b->opfuncid != 0)
406  return false;
407 
408  COMPARE_SCALAR_FIELD(useOr);
409  COMPARE_SCALAR_FIELD(inputcollid);
411  COMPARE_LOCATION_FIELD(location);
412 
413  return true;
414 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalSecLabelStmt()

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

Definition at line 1312 of file equalfuncs.c.

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

Referenced by