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:3011

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 2399 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2400 {
2401  COMPARE_NODE_FIELD(elements);
2402  COMPARE_LOCATION_FIELD(location);
2403 
2404  return true;
2405 }
#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 2390 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2391 {
2393  COMPARE_NODE_FIELD(indirection);
2394 
2395  return true;
2396 }
#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 1151 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1152 {
1153  COMPARE_STRING_FIELD(priv_name);
1154  COMPARE_NODE_FIELD(cols);
1155 
1156  return true;
1157 }
#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 2347 of file equalfuncs.c.

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

Referenced by equal().

2348 {
2349  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2350  return false;
2351  COMPARE_LOCATION_FIELD(location);
2352 
2353  return true;
2354 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3011
#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 2317 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2318 {
2319  COMPARE_SCALAR_FIELD(kind);
2321  COMPARE_NODE_FIELD(lexpr);
2322  COMPARE_NODE_FIELD(rexpr);
2323  COMPARE_LOCATION_FIELD(location);
2324 
2325  return true;
2326 }
#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 213 of file equalfuncs.c.

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

Referenced by equal().

214 {
215  COMPARE_SCALAR_FIELD(aggfnoid);
216  COMPARE_SCALAR_FIELD(aggtype);
217  COMPARE_SCALAR_FIELD(aggcollid);
218  COMPARE_SCALAR_FIELD(inputcollid);
219  /* ignore aggtranstype since it might not be set yet */
220  COMPARE_NODE_FIELD(aggargtypes);
221  COMPARE_NODE_FIELD(aggdirectargs);
223  COMPARE_NODE_FIELD(aggorder);
224  COMPARE_NODE_FIELD(aggdistinct);
225  COMPARE_NODE_FIELD(aggfilter);
226  COMPARE_SCALAR_FIELD(aggstar);
227  COMPARE_SCALAR_FIELD(aggvariadic);
228  COMPARE_SCALAR_FIELD(aggkind);
229  COMPARE_SCALAR_FIELD(agglevelsup);
230  COMPARE_SCALAR_FIELD(aggsplit);
231  COMPARE_LOCATION_FIELD(location);
232 
233  return true;
234 }
#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 2380 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2381 {
2382  COMPARE_SCALAR_FIELD(is_slice);
2383  COMPARE_NODE_FIELD(lidx);
2384  COMPARE_NODE_FIELD(uidx);
2385 
2386  return true;
2387 }
#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 1105 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1106 {
1107  COMPARE_NODE_FIELD(collname);
1108 
1109  return true;
1110 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1668 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1669 {
1671  COMPARE_NODE_FIELD(setstmt);
1672 
1673  return true;
1674 }
#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 1659 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1660 {
1663 
1664  return true;
1665 }
#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 1173 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1174 {
1177 
1178  return true;
1179 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1113 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1560 {
1561  COMPARE_NODE_FIELD(typeName);
1562  COMPARE_STRING_FIELD(oldVal);
1563  COMPARE_STRING_FIELD(newVal);
1564  COMPARE_STRING_FIELD(newValNeighbor);
1565  COMPARE_SCALAR_FIELD(newValIsAfter);
1566  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1567 
1568  return true;
1569 }
#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 2034 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2035 {
2036  COMPARE_STRING_FIELD(trigname);
2037  COMPARE_SCALAR_FIELD(tgenabled);
2038 
2039  return true;
2040 }
#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 1869 of file equalfuncs.c.

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

Referenced by equal().

1870 {
1871  COMPARE_STRING_FIELD(extname);
1873  COMPARE_SCALAR_FIELD(objtype);
1874  COMPARE_NODE_FIELD(object);
1875 
1876  return true;
1877 }
#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 1860 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1861 {
1862  COMPARE_STRING_FIELD(extname);
1864 
1865  return true;
1866 }
#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 1890 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1891 {
1892  COMPARE_STRING_FIELD(fdwname);
1893  COMPARE_NODE_FIELD(func_options);
1895 
1896  return true;
1897 }
#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 1913 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1914 {
1915  COMPARE_STRING_FIELD(servername);
1916  COMPARE_STRING_FIELD(version);
1918  COMPARE_SCALAR_FIELD(has_version);
1919 
1920  return true;
1921 }
#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 1405 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1406 {
1407  COMPARE_SCALAR_FIELD(objtype);
1408  COMPARE_NODE_FIELD(func);
1409  COMPARE_NODE_FIELD(actions);
1410 
1411  return true;
1412 }
#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 459 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

460 {
461  COMPARE_NODE_FIELD(subplans);
462 
463  return true;
464 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1438 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1450 {
1451  COMPARE_SCALAR_FIELD(objectType);
1452  COMPARE_NODE_FIELD(relation);
1453  COMPARE_NODE_FIELD(object);
1454  COMPARE_STRING_FIELD(newschema);
1455  COMPARE_SCALAR_FIELD(missing_ok);
1456 
1457  return true;
1458 }
#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 1472 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1473 {
1474  COMPARE_NODE_FIELD(opername);
1476 
1477  return true;
1478 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1639 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1640 {
1641  COMPARE_NODE_FIELD(opfamilyname);
1642  COMPARE_STRING_FIELD(amname);
1643  COMPARE_SCALAR_FIELD(isDrop);
1644  COMPARE_NODE_FIELD(items);
1645 
1646  return true;
1647 }
#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 1461 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1462 {
1463  COMPARE_SCALAR_FIELD(objectType);
1464  COMPARE_NODE_FIELD(relation);
1465  COMPARE_NODE_FIELD(object);
1466  COMPARE_NODE_FIELD(newowner);
1467 
1468  return true;
1469 }
#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 2305 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2306 {
2307  COMPARE_STRING_FIELD(policy_name);
2308  COMPARE_NODE_FIELD(table);
2309  COMPARE_NODE_FIELD(roles);
2310  COMPARE_NODE_FIELD(qual);
2311  COMPARE_NODE_FIELD(with_check);
2312 
2313  return true;
2314 }
#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 2242 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2244 {
2245  COMPARE_STRING_FIELD(pubname);
2247  COMPARE_NODE_FIELD(tables);
2248  COMPARE_SCALAR_FIELD(for_all_tables);
2249  COMPARE_SCALAR_FIELD(tableAction);
2250 
2251  return true;
2252 }
#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 2076 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2077 {
2078  COMPARE_NODE_FIELD(role);
2079  COMPARE_STRING_FIELD(database);
2080  COMPARE_NODE_FIELD(setstmt);
2081 
2082  return true;
2083 }
#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 2066 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2067 {
2068  COMPARE_NODE_FIELD(role);
2071 
2072  return true;
2073 }
#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 1768 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1769 {
1770  COMPARE_NODE_FIELD(sequence);
1772  COMPARE_SCALAR_FIELD(for_identity);
1773  COMPARE_SCALAR_FIELD(missing_ok);
1774 
1775  return true;
1776 }
#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 1371 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1372 {
1373  COMPARE_NODE_FIELD(defnames);
1374  COMPARE_SCALAR_FIELD(stxstattarget);
1375  COMPARE_SCALAR_FIELD(missing_ok);
1376 
1377  return true;
1378 }
#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 2267 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2269 {
2270  COMPARE_SCALAR_FIELD(kind);
2272  COMPARE_STRING_FIELD(conninfo);
2273  COMPARE_NODE_FIELD(publication);
2275 
2276  return true;
2277 }
#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 1747 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1748 {
1749  COMPARE_NODE_FIELD(setstmt);
1750 
1751  return true;
1752 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1091 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1092 {
1093  COMPARE_SCALAR_FIELD(subtype);
1095  COMPARE_SCALAR_FIELD(num);
1096  COMPARE_NODE_FIELD(newowner);
1097  COMPARE_NODE_FIELD(def);
1098  COMPARE_SCALAR_FIELD(behavior);
1099  COMPARE_SCALAR_FIELD(missing_ok);
1100 
1101  return true;
1102 }
#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 1837 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1839 {
1840  COMPARE_STRING_FIELD(orig_tablespacename);
1841  COMPARE_SCALAR_FIELD(objtype);
1842  COMPARE_NODE_FIELD(roles);
1843  COMPARE_STRING_FIELD(new_tablespacename);
1844  COMPARE_SCALAR_FIELD(nowait);
1845 
1846  return true;
1847 }
#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 1826 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1828 {
1829  COMPARE_STRING_FIELD(tablespacename);
1831  COMPARE_SCALAR_FIELD(isReset);
1832 
1833  return true;
1834 }
#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 1080 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1081 {
1082  COMPARE_NODE_FIELD(relation);
1083  COMPARE_NODE_FIELD(cmds);
1085  COMPARE_SCALAR_FIELD(missing_ok);
1086 
1087  return true;
1088 }
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 2215 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2217 {
2218  COMPARE_SCALAR_FIELD(kind);
2219  COMPARE_NODE_FIELD(cfgname);
2220  COMPARE_NODE_FIELD(tokentype);
2221  COMPARE_NODE_FIELD(dicts);
2222  COMPARE_SCALAR_FIELD(override);
2223  COMPARE_SCALAR_FIELD(replace);
2224  COMPARE_SCALAR_FIELD(missing_ok);
2225 
2226  return true;
2227 }
#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 2206 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2207 {
2208  COMPARE_NODE_FIELD(dictname);
2210 
2211  return true;
2212 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 1935 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1936 {
1938  COMPARE_STRING_FIELD(servername);
1940 
1941  return true;
1942 }
#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 896 of file equalfuncs.c.

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

Referenced by equal().

897 {
898  COMPARE_SCALAR_FIELD(parent_relid);
899  COMPARE_SCALAR_FIELD(child_relid);
900  COMPARE_SCALAR_FIELD(parent_reltype);
901  COMPARE_SCALAR_FIELD(child_reltype);
902  COMPARE_NODE_FIELD(translated_vars);
903  COMPARE_SCALAR_FIELD(num_child_cols);
904  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
905  COMPARE_SCALAR_FIELD(parent_reloid);
906 
907  return true;
908 }
int num_child_cols
Definition: pathnodes.h:2223
#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 515 of file equalfuncs.c.

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

Referenced by equal().

516 {
518  COMPARE_NODE_FIELD(elemexpr);
519  COMPARE_SCALAR_FIELD(resulttype);
520  COMPARE_SCALAR_FIELD(resulttypmod);
521  COMPARE_SCALAR_FIELD(resultcollid);
522  COMPARE_COERCIONFORM_FIELD(coerceformat);
523  COMPARE_LOCATION_FIELD(location);
524 
525  return true;
526 }
#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 583 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

584 {
585  COMPARE_SCALAR_FIELD(array_typeid);
586  COMPARE_SCALAR_FIELD(array_collid);
587  COMPARE_SCALAR_FIELD(element_typeid);
588  COMPARE_NODE_FIELD(elements);
589  COMPARE_SCALAR_FIELD(multidims);
590  COMPARE_LOCATION_FIELD(location);
591 
592  return true;
593 }
#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 2374 of file equalfuncs.c.

Referenced by equal().

2375 {
2376  return true;
2377 }

◆ _equalBooleanTest()

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

Definition at line 683 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

684 {
686  COMPARE_SCALAR_FIELD(booltesttype);
687  COMPARE_LOCATION_FIELD(location);
688 
689  return true;
690 }
#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 413 of file equalfuncs.c.

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

Referenced by equal().

414 {
417  COMPARE_LOCATION_FIELD(location);
418 
419  return true;
420 }
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 1200 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1201 {
1202  COMPARE_NODE_FIELD(funccall);
1203  COMPARE_NODE_FIELD(funcexpr);
1204 
1205  return true;
1206 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 550 of file equalfuncs.c.

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

Referenced by equal().

551 {
552  COMPARE_SCALAR_FIELD(casetype);
553  COMPARE_SCALAR_FIELD(casecollid);
556  COMPARE_NODE_FIELD(defresult);
557  COMPARE_LOCATION_FIELD(location);
558 
559  return true;
560 }
#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 573 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalCaseWhen()

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

Definition at line 563 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

564 {
565  COMPARE_NODE_FIELD(expr);
566  COMPARE_NODE_FIELD(result);
567  COMPARE_LOCATION_FIELD(location);
568 
569  return true;
570 }
#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 1192 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1193 {
1194  COMPARE_STRING_FIELD(portalname);
1195 
1196  return true;
1197 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1209 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1210 {
1211  COMPARE_NODE_FIELD(relation);
1212  COMPARE_STRING_FIELD(indexname);
1214 
1215  return true;
1216 }
#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 621 of file equalfuncs.c.

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

Referenced by equal().

622 {
623  COMPARE_SCALAR_FIELD(coalescetype);
624  COMPARE_SCALAR_FIELD(coalescecollid);
626  COMPARE_LOCATION_FIELD(location);
627 
628  return true;
629 }
#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 693 of file equalfuncs.c.

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

Referenced by equal().

694 {
696  COMPARE_SCALAR_FIELD(resulttype);
697  COMPARE_SCALAR_FIELD(resulttypmod);
698  COMPARE_SCALAR_FIELD(resultcollid);
699  COMPARE_COERCIONFORM_FIELD(coercionformat);
700  COMPARE_LOCATION_FIELD(location);
701 
702  return true;
703 }
#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 706 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

707 {
708  COMPARE_SCALAR_FIELD(typeId);
709  COMPARE_SCALAR_FIELD(typeMod);
710  COMPARE_SCALAR_FIELD(collation);
711  COMPARE_LOCATION_FIELD(location);
712 
713  return true;
714 }
#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 503 of file equalfuncs.c.

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

Referenced by equal().

504 {
506  COMPARE_SCALAR_FIELD(resulttype);
507  COMPARE_SCALAR_FIELD(resultcollid);
508  COMPARE_COERCIONFORM_FIELD(coerceformat);
509  COMPARE_LOCATION_FIELD(location);
510 
511  return true;
512 }
#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 2454 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2455 {
2457  COMPARE_NODE_FIELD(collname);
2458  COMPARE_LOCATION_FIELD(location);
2459 
2460  return true;
2461 }
#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 540 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

541 {
543  COMPARE_SCALAR_FIELD(collOid);
544  COMPARE_LOCATION_FIELD(location);
545 
546  return true;
547 }
#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 2569 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2570 {
2571  COMPARE_STRING_FIELD(colname);
2572  COMPARE_NODE_FIELD(typeName);
2573  COMPARE_SCALAR_FIELD(inhcount);
2574  COMPARE_SCALAR_FIELD(is_local);
2575  COMPARE_SCALAR_FIELD(is_not_null);
2576  COMPARE_SCALAR_FIELD(is_from_type);
2577  COMPARE_SCALAR_FIELD(storage);
2578  COMPARE_NODE_FIELD(raw_default);
2579  COMPARE_NODE_FIELD(cooked_default);
2580  COMPARE_SCALAR_FIELD(identity);
2581  COMPARE_NODE_FIELD(identitySequence);
2582  COMPARE_SCALAR_FIELD(generated);
2583  COMPARE_NODE_FIELD(collClause);
2584  COMPARE_SCALAR_FIELD(collOid);
2585  COMPARE_NODE_FIELD(constraints);
2586  COMPARE_NODE_FIELD(fdwoptions);
2587  COMPARE_LOCATION_FIELD(location);
2588 
2589  return true;
2590 }
#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 2329 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2330 {
2331  COMPARE_NODE_FIELD(fields);
2332  COMPARE_LOCATION_FIELD(location);
2333 
2334  return true;
2335 }
#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 1298 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1299 {
1300  COMPARE_SCALAR_FIELD(objtype);
1301  COMPARE_NODE_FIELD(object);
1302  COMPARE_STRING_FIELD(comment);
1303 
1304  return true;
1305 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCommonTableExpr()

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

Definition at line 2813 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2814 {
2815  COMPARE_STRING_FIELD(ctename);
2816  COMPARE_NODE_FIELD(aliascolnames);
2817  COMPARE_SCALAR_FIELD(ctematerialized);
2818  COMPARE_NODE_FIELD(ctequery);
2819  COMPARE_LOCATION_FIELD(location);
2820  COMPARE_SCALAR_FIELD(cterecursive);
2821  COMPARE_SCALAR_FIELD(cterefcount);
2822  COMPARE_NODE_FIELD(ctecolnames);
2823  COMPARE_NODE_FIELD(ctecoltypes);
2824  COMPARE_NODE_FIELD(ctecoltypmods);
2825  COMPARE_NODE_FIELD(ctecolcollations);
2826 
2827  return true;
2828 }
#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 1532 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1533 {
1534  COMPARE_NODE_FIELD(typevar);
1535  COMPARE_NODE_FIELD(coldeflist);
1536 
1537  return true;
1538 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalConst()

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

Definition at line 179 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalConstraint()

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

Definition at line 2593 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2594 {
2595  COMPARE_SCALAR_FIELD(contype);
2596  COMPARE_STRING_FIELD(conname);
2597  COMPARE_SCALAR_FIELD(deferrable);
2598  COMPARE_SCALAR_FIELD(initdeferred);
2599  COMPARE_LOCATION_FIELD(location);
2600  COMPARE_SCALAR_FIELD(is_no_inherit);
2601  COMPARE_NODE_FIELD(raw_expr);
2602  COMPARE_STRING_FIELD(cooked_expr);
2603  COMPARE_SCALAR_FIELD(generated_when);
2604  COMPARE_NODE_FIELD(keys);
2605  COMPARE_NODE_FIELD(including);
2606  COMPARE_NODE_FIELD(exclusions);
2608  COMPARE_STRING_FIELD(indexname);
2609  COMPARE_STRING_FIELD(indexspace);
2610  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2611  COMPARE_STRING_FIELD(access_method);
2612  COMPARE_NODE_FIELD(where_clause);
2613  COMPARE_NODE_FIELD(pktable);
2614  COMPARE_NODE_FIELD(fk_attrs);
2615  COMPARE_NODE_FIELD(pk_attrs);
2616  COMPARE_SCALAR_FIELD(fk_matchtype);
2617  COMPARE_SCALAR_FIELD(fk_upd_action);
2618  COMPARE_SCALAR_FIELD(fk_del_action);
2619  COMPARE_NODE_FIELD(old_conpfeqop);
2620  COMPARE_SCALAR_FIELD(old_pktable_oid);
2621  COMPARE_SCALAR_FIELD(skip_validation);
2622  COMPARE_SCALAR_FIELD(initially_valid);
2623 
2624  return true;
2625 }
#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 2105 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2106 {
2107  COMPARE_NODE_FIELD(constraints);
2108  COMPARE_SCALAR_FIELD(deferred);
2109 
2110  return true;
2111 }
#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 529 of file equalfuncs.c.

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

Referenced by equal().

530 {
532  COMPARE_SCALAR_FIELD(resulttype);
533  COMPARE_COERCIONFORM_FIELD(convertformat);
534  COMPARE_LOCATION_FIELD(location);
535 
536  return true;
537 }
#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 1219 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1220 {
1221  COMPARE_NODE_FIELD(relation);
1222  COMPARE_NODE_FIELD(query);
1223  COMPARE_NODE_FIELD(attlist);
1224  COMPARE_SCALAR_FIELD(is_from);
1225  COMPARE_SCALAR_FIELD(is_program);
1228  COMPARE_NODE_FIELD(whereClause);
1229 
1230  return true;
1231 }
#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 1992 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1993 {
1994  COMPARE_STRING_FIELD(amname);
1995  COMPARE_NODE_FIELD(handler_name);
1996  COMPARE_SCALAR_FIELD(amtype);
1997 
1998  return true;
1999 }
#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 2149 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2150 {
2151  COMPARE_NODE_FIELD(sourcetype);
2152  COMPARE_NODE_FIELD(targettype);
2153  COMPARE_NODE_FIELD(func);
2154  COMPARE_SCALAR_FIELD(context);
2155  COMPARE_SCALAR_FIELD(inout);
2156 
2157  return true;
2158 }
#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 2137 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2138 {
2139  COMPARE_NODE_FIELD(conversion_name);
2140  COMPARE_STRING_FIELD(for_encoding_name);
2141  COMPARE_STRING_FIELD(to_encoding_name);
2142  COMPARE_NODE_FIELD(func_name);
2143  COMPARE_SCALAR_FIELD(def);
2144 
2145  return true;
2146 }
#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 1650 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1651 {
1654 
1655  return true;
1656 }
#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 1593 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1594 {
1595  COMPARE_NODE_FIELD(domainname);
1596  COMPARE_NODE_FIELD(typeName);
1597  COMPARE_NODE_FIELD(collClause);
1598  COMPARE_NODE_FIELD(constraints);
1599 
1600  return true;
1601 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

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

Definition at line 1541 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateEventTrigStmt()

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

Definition at line 2023 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2024 {
2025  COMPARE_STRING_FIELD(trigname);
2026  COMPARE_STRING_FIELD(eventname);
2027  COMPARE_NODE_FIELD(whenclause);
2028  COMPARE_NODE_FIELD(funcname);
2029 
2030  return true;
2031 }
#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 1850 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1851 {
1852  COMPARE_STRING_FIELD(extname);
1853  COMPARE_SCALAR_FIELD(if_not_exists);
1855 
1856  return true;
1857 }
#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 1880 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1881 {
1882  COMPARE_STRING_FIELD(fdwname);
1883  COMPARE_NODE_FIELD(func_options);
1885 
1886  return true;
1887 }
#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 1900 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1901 {
1902  COMPARE_STRING_FIELD(servername);
1903  COMPARE_STRING_FIELD(servertype);
1904  COMPARE_STRING_FIELD(version);
1905  COMPARE_STRING_FIELD(fdwname);
1906  COMPARE_SCALAR_FIELD(if_not_exists);
1908 
1909  return true;
1910 }
#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 1955 of file equalfuncs.c.

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

Referenced by equal().

1956 {
1957  if (!_equalCreateStmt(&a->base, &b->base))
1958  return false;
1959 
1960  COMPARE_STRING_FIELD(servername);
1962 
1963  return true;
1964 }
#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:1234

◆ _equalCreateFunctionStmt()

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

Definition at line 1381 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1382 {
1383  COMPARE_SCALAR_FIELD(is_procedure);
1384  COMPARE_SCALAR_FIELD(replace);
1385  COMPARE_NODE_FIELD(funcname);
1386  COMPARE_NODE_FIELD(parameters);
1387  COMPARE_NODE_FIELD(returnType);
1389 
1390  return true;
1391 }
#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 1617 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1618 {
1619  COMPARE_SCALAR_FIELD(itemtype);
1621  COMPARE_SCALAR_FIELD(number);
1622  COMPARE_NODE_FIELD(order_family);
1623  COMPARE_NODE_FIELD(class_args);
1624  COMPARE_NODE_FIELD(storedtype);
1625 
1626  return true;
1627 }
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 1604 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1605 {
1606  COMPARE_NODE_FIELD(opclassname);
1607  COMPARE_NODE_FIELD(opfamilyname);
1608  COMPARE_STRING_FIELD(amname);
1609  COMPARE_NODE_FIELD(datatype);
1610  COMPARE_NODE_FIELD(items);
1611  COMPARE_SCALAR_FIELD(isDefault);
1612 
1613  return true;
1614 }
#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 1630 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1631 {
1632  COMPARE_NODE_FIELD(opfamilyname);
1633  COMPARE_STRING_FIELD(amname);
1634 
1635  return true;
1636 }
#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 2043 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2044 {
2045  COMPARE_SCALAR_FIELD(replace);
2046  COMPARE_STRING_FIELD(plname);
2047  COMPARE_NODE_FIELD(plhandler);
2048  COMPARE_NODE_FIELD(plinline);
2049  COMPARE_NODE_FIELD(plvalidator);
2050  COMPARE_SCALAR_FIELD(pltrusted);
2051 
2052  return true;
2053 }
#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 2291 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2292 {
2293  COMPARE_STRING_FIELD(policy_name);
2294  COMPARE_NODE_FIELD(table);
2295  COMPARE_STRING_FIELD(cmd_name);
2296  COMPARE_SCALAR_FIELD(permissive);
2297  COMPARE_NODE_FIELD(roles);
2298  COMPARE_NODE_FIELD(qual);
2299  COMPARE_NODE_FIELD(with_check);
2300 
2301  return true;
2302 }
#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 2230 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2232 {
2233  COMPARE_STRING_FIELD(pubname);
2235  COMPARE_NODE_FIELD(tables);
2236  COMPARE_SCALAR_FIELD(for_all_tables);
2237 
2238  return true;
2239 }
#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 1550 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1551 {
1552  COMPARE_NODE_FIELD(typeName);
1553  COMPARE_NODE_FIELD(params);
1554 
1555  return true;
1556 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateRoleStmt()

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

Definition at line 2056 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2057 {
2058  COMPARE_SCALAR_FIELD(stmt_type);
2059  COMPARE_STRING_FIELD(role);
2061 
2062  return true;
2063 }
#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 2126 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2127 {
2128  COMPARE_STRING_FIELD(schemaname);
2129  COMPARE_NODE_FIELD(authrole);
2130  COMPARE_NODE_FIELD(schemaElts);
2131  COMPARE_SCALAR_FIELD(if_not_exists);
2132 
2133  return true;
2134 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateSeqStmt()

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

Definition at line 1756 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1757 {
1758  COMPARE_NODE_FIELD(sequence);
1760  COMPARE_SCALAR_FIELD(ownerId);
1761  COMPARE_SCALAR_FIELD(for_identity);
1762  COMPARE_SCALAR_FIELD(if_not_exists);
1763 
1764  return true;
1765 }
#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 1358 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1359 {
1360  COMPARE_NODE_FIELD(defnames);
1361  COMPARE_NODE_FIELD(stat_types);
1362  COMPARE_NODE_FIELD(exprs);
1363  COMPARE_NODE_FIELD(relations);
1364  COMPARE_STRING_FIELD(stxcomment);
1365  COMPARE_SCALAR_FIELD(if_not_exists);
1366 
1367  return true;
1368 }
#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 1234 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1235 {
1236  COMPARE_NODE_FIELD(relation);
1237  COMPARE_NODE_FIELD(tableElts);
1238  COMPARE_NODE_FIELD(inhRelations);
1239  COMPARE_NODE_FIELD(partbound);
1240  COMPARE_NODE_FIELD(partspec);
1241  COMPARE_NODE_FIELD(ofTypename);
1242  COMPARE_NODE_FIELD(constraints);
1244  COMPARE_SCALAR_FIELD(oncommit);
1245  COMPARE_STRING_FIELD(tablespacename);
1246  COMPARE_STRING_FIELD(accessMethod);
1247  COMPARE_SCALAR_FIELD(if_not_exists);
1248 
1249  return true;
1250 }
#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 2255 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2257 {
2259  COMPARE_STRING_FIELD(conninfo);
2260  COMPARE_NODE_FIELD(publication);
2262 
2263  return true;
2264 }
#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 1716 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and relkind.

Referenced by equal().

1717 {
1718  COMPARE_NODE_FIELD(query);
1719  COMPARE_NODE_FIELD(into);
1721  COMPARE_SCALAR_FIELD(is_select_into);
1722  COMPARE_SCALAR_FIELD(if_not_exists);
1723 
1724  return true;
1725 }
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 1806 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1807 {
1808  COMPARE_STRING_FIELD(tablespacename);
1809  COMPARE_NODE_FIELD(owner);
1810  COMPARE_STRING_FIELD(location);
1812 
1813  return true;
1814 }
#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 1980 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1981 {
1982  COMPARE_SCALAR_FIELD(replace);
1983  COMPARE_NODE_FIELD(type_name);
1984  COMPARE_STRING_FIELD(lang);
1985  COMPARE_NODE_FIELD(fromsql);
1986  COMPARE_NODE_FIELD(tosql);
1987 
1988  return true;
1989 }
#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 2002 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1925 {
1927  COMPARE_STRING_FIELD(servername);
1928  COMPARE_SCALAR_FIELD(if_not_exists);
1930 
1931  return true;
1932 }
#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 728 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

729 {
730  COMPARE_SCALAR_FIELD(cvarno);
731  COMPARE_STRING_FIELD(cursor_name);
732  COMPARE_SCALAR_FIELD(cursor_param);
733 
734  return true;
735 }
#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 2180 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2181 {
2183 
2184  return true;
2185 }
#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 1182 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1183 {
1184  COMPARE_STRING_FIELD(portalname);
1186  COMPARE_NODE_FIELD(query);
1187 
1188  return true;
1189 }
#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 2628 of file equalfuncs.c.

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

Referenced by equal().

2629 {
2630  COMPARE_STRING_FIELD(defnamespace);
2631  COMPARE_STRING_FIELD(defname);
2633  COMPARE_SCALAR_FIELD(defaction);
2634  COMPARE_LOCATION_FIELD(location);
2635 
2636  return true;
2637 }
#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 1262 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1263 {
1264  COMPARE_SCALAR_FIELD(kind);
1265  COMPARE_SCALAR_FIELD(oldstyle);
1266  COMPARE_NODE_FIELD(defnames);
1268  COMPARE_NODE_FIELD(definition);
1269  COMPARE_SCALAR_FIELD(if_not_exists);
1270  COMPARE_SCALAR_FIELD(replace);
1271 
1272  return true;
1273 }
#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 1015 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1016 {
1017  COMPARE_NODE_FIELD(relation);
1018  COMPARE_NODE_FIELD(usingClause);
1019  COMPARE_NODE_FIELD(whereClause);
1020  COMPARE_NODE_FIELD(returningList);
1021  COMPARE_NODE_FIELD(withClause);
1022 
1023  return true;
1024 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1798 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1799 {
1800  COMPARE_SCALAR_FIELD(target);
1801 
1802  return true;
1803 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

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

Definition at line 337 of file equalfuncs.c.

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

Referenced by equal().

338 {
339  COMPARE_SCALAR_FIELD(opno);
340 
341  /*
342  * Special-case opfuncid: it is allowable for it to differ if one node
343  * contains zero and the other doesn't. This just means that the one node
344  * isn't as far along in the parse/plan pipeline and hasn't had the
345  * opfuncid cache filled yet.
346  */
347  if (a->opfuncid != b->opfuncid &&
348  a->opfuncid != 0 &&
349  b->opfuncid != 0)
350  return false;
351 
352  COMPARE_SCALAR_FIELD(opresulttype);
353  COMPARE_SCALAR_FIELD(opretset);
354  COMPARE_SCALAR_FIELD(opcollid);
355  COMPARE_SCALAR_FIELD(inputcollid);
357  COMPARE_LOCATION_FIELD(location);
358 
359  return true;
360 }
Oid opfuncid
Definition: primnodes.h:503
#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 1415 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1416 {
1418 
1419  return true;
1420 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1677 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1678 {
1680  COMPARE_SCALAR_FIELD(missing_ok);
1682 
1683  return true;
1684 }
#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 2188 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2189 {
2190  COMPARE_NODE_FIELD(roles);
2191  COMPARE_SCALAR_FIELD(behavior);
2192 
2193  return true;
2194 }
#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 2086 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2087 {
2088  COMPARE_NODE_FIELD(roles);
2089  COMPARE_SCALAR_FIELD(missing_ok);
2090 
2091  return true;
2092 }
#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 1276 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1277 {
1278  COMPARE_NODE_FIELD(objects);
1279  COMPARE_SCALAR_FIELD(removeType);
1280  COMPARE_SCALAR_FIELD(behavior);
1281  COMPARE_SCALAR_FIELD(missing_ok);
1282  COMPARE_SCALAR_FIELD(concurrent);
1283 
1284  return true;
1285 }
#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 2280 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2282 {
2284  COMPARE_SCALAR_FIELD(missing_ok);
2285  COMPARE_SCALAR_FIELD(behavior);
2286 
2287  return true;
2288 }
#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 1817 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1818 {
1819  COMPARE_STRING_FIELD(tablespacename);
1820  COMPARE_SCALAR_FIELD(missing_ok);
1821 
1822  return true;
1823 }
#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 1945 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1946 {
1948  COMPARE_STRING_FIELD(servername);
1949  COMPARE_SCALAR_FIELD(missing_ok);
1950 
1951  return true;
1952 }
#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 2171 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2172 {
2174  COMPARE_NODE_FIELD(params);
2175 
2176  return true;
2177 }
#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 1707 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1708 {
1709  COMPARE_NODE_FIELD(query);
1711 
1712  return true;
1713 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 927 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1320 {
1321  COMPARE_SCALAR_FIELD(direction);
1322  COMPARE_SCALAR_FIELD(howMany);
1323  COMPARE_STRING_FIELD(portalname);
1324  COMPARE_SCALAR_FIELD(ismove);
1325 
1326  return true;
1327 }
#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 467 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

468 {
470  COMPARE_SCALAR_FIELD(fieldnum);
471  COMPARE_SCALAR_FIELD(resulttype);
472  COMPARE_SCALAR_FIELD(resulttypmod);
473  COMPARE_SCALAR_FIELD(resultcollid);
474 
475  return true;
476 }
#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 479 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

480 {
482  COMPARE_NODE_FIELD(newvals);
483  COMPARE_NODE_FIELD(fieldnums);
484  COMPARE_SCALAR_FIELD(resulttype);
485 
486  return true;
487 }
#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 794 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

795 {
796  COMPARE_NODE_FIELD(fromlist);
797  COMPARE_NODE_FIELD(quals);
798 
799  return true;
800 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

Definition at line 2357 of file equalfuncs.c.

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

Referenced by equal().

2358 {
2359  COMPARE_NODE_FIELD(funcname);
2361  COMPARE_NODE_FIELD(agg_order);
2362  COMPARE_NODE_FIELD(agg_filter);
2363  COMPARE_SCALAR_FIELD(agg_within_group);
2364  COMPARE_SCALAR_FIELD(agg_star);
2365  COMPARE_SCALAR_FIELD(agg_distinct);
2366  COMPARE_SCALAR_FIELD(func_variadic);
2367  COMPARE_NODE_FIELD(over);
2368  COMPARE_LOCATION_FIELD(location);
2369 
2370  return true;
2371 }
#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 284 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().

285 {
286  COMPARE_SCALAR_FIELD(funcid);
287  COMPARE_SCALAR_FIELD(funcresulttype);
288  COMPARE_SCALAR_FIELD(funcretset);
289  COMPARE_SCALAR_FIELD(funcvariadic);
290  COMPARE_COERCIONFORM_FIELD(funcformat);
291  COMPARE_SCALAR_FIELD(funccollid);
292  COMPARE_SCALAR_FIELD(inputcollid);
294  COMPARE_LOCATION_FIELD(location);
295 
296  return true;
297 }
#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 1394 of file equalfuncs.c.

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

Referenced by equal().

1395 {
1397  COMPARE_NODE_FIELD(argType);
1399  COMPARE_NODE_FIELD(defexpr);
1400 
1401  return true;
1402 }
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 1160 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and grantor.

Referenced by equal().

1161 {
1162  COMPARE_NODE_FIELD(granted_roles);
1163  COMPARE_NODE_FIELD(grantee_roles);
1164  COMPARE_SCALAR_FIELD(is_grant);
1165  COMPARE_SCALAR_FIELD(admin_opt);
1167  COMPARE_SCALAR_FIELD(behavior);
1168 
1169  return true;
1170 }
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 1126 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1127 {
1128  COMPARE_SCALAR_FIELD(is_grant);
1129  COMPARE_SCALAR_FIELD(targtype);
1130  COMPARE_SCALAR_FIELD(objtype);
1131  COMPARE_NODE_FIELD(objects);
1132  COMPARE_NODE_FIELD(privileges);
1133  COMPARE_NODE_FIELD(grantees);
1134  COMPARE_SCALAR_FIELD(grant_option);
1135  COMPARE_SCALAR_FIELD(behavior);
1136 
1137  return true;
1138 }
#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 237 of file equalfuncs.c.

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

Referenced by equal().

238 {
240 
241  /*
242  * We must not compare the refs or cols field
243  */
244 
245  COMPARE_SCALAR_FIELD(agglevelsup);
246  COMPARE_LOCATION_FIELD(location);
247 
248  return true;
249 }
#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 2738 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2739 {
2740  COMPARE_SCALAR_FIELD(kind);
2741  COMPARE_NODE_FIELD(content);
2742  COMPARE_LOCATION_FIELD(location);
2743 
2744  return true;
2745 }
#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 1967 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1968 {
1969  COMPARE_STRING_FIELD(server_name);
1970  COMPARE_STRING_FIELD(remote_schema);
1971  COMPARE_STRING_FIELD(local_schema);
1972  COMPARE_SCALAR_FIELD(list_type);
1973  COMPARE_NODE_FIELD(table_list);
1975 
1976  return true;
1977 }
#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 2555 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2556 {
2558  COMPARE_NODE_FIELD(expr);
2559  COMPARE_STRING_FIELD(indexcolname);
2560  COMPARE_NODE_FIELD(collation);
2561  COMPARE_NODE_FIELD(opclass);
2562  COMPARE_SCALAR_FIELD(ordering);
2563  COMPARE_SCALAR_FIELD(nulls_ordering);
2564 
2565  return true;
2566 }
#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 1330 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2791 {
2792  COMPARE_NODE_FIELD(indexElems);
2793  COMPARE_NODE_FIELD(whereClause);
2794  COMPARE_STRING_FIELD(conname);
2795  COMPARE_LOCATION_FIELD(location);
2796 
2797  return true;
2798 }
#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 747 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

748 {
749  COMPARE_NODE_FIELD(expr);
750  COMPARE_SCALAR_FIELD(infercollid);
751  COMPARE_SCALAR_FIELD(inferopclass);
752 
753  return true;
754 }
#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 1001 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1002 {
1003  COMPARE_NODE_FIELD(relation);
1004  COMPARE_NODE_FIELD(cols);
1005  COMPARE_NODE_FIELD(selectStmt);
1006  COMPARE_NODE_FIELD(onConflictClause);
1007  COMPARE_NODE_FIELD(returningList);
1008  COMPARE_NODE_FIELD(withClause);
1009  COMPARE_SCALAR_FIELD(override);
1010 
1011  return true;
1012 }
#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 779 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

780 {
781  COMPARE_SCALAR_FIELD(jointype);
782  COMPARE_SCALAR_FIELD(isNatural);
783  COMPARE_NODE_FIELD(larg);
784  COMPARE_NODE_FIELD(rarg);
785  COMPARE_NODE_FIELD(usingClause);
786  COMPARE_NODE_FIELD(quals);
787  COMPARE_NODE_FIELD(alias);
788  COMPARE_SCALAR_FIELD(rtindex);
789 
790  return true;
791 }
#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 2922 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().

2923 {
2924  const ListCell *item_a;
2925  const ListCell *item_b;
2926 
2927  /*
2928  * Try to reject by simple scalar checks before grovelling through all the
2929  * list elements...
2930  */
2932  COMPARE_SCALAR_FIELD(length);
2933 
2934  /*
2935  * We place the switch outside the loop for the sake of efficiency; this
2936  * may not be worth doing...
2937  */
2938  switch (a->type)
2939  {
2940  case T_List:
2941  forboth(item_a, a, item_b, b)
2942  {
2943  if (!equal(lfirst(item_a), lfirst(item_b)))
2944  return false;
2945  }
2946  break;
2947  case T_IntList:
2948  forboth(item_a, a, item_b, b)
2949  {
2950  if (lfirst_int(item_a) != lfirst_int(item_b))
2951  return false;
2952  }
2953  break;
2954  case T_OidList:
2955  forboth(item_a, a, item_b, b)
2956  {
2957  if (lfirst_oid(item_a) != lfirst_oid(item_b))
2958  return false;
2959  }
2960  break;
2961  default:
2962  elog(ERROR, "unrecognized list node type: %d",
2963  (int) a->type);
2964  return false; /* keep compiler quiet */
2965  }
2966 
2967  /*
2968  * If we got here, we should have run out of elements of both lists
2969  */
2970  Assert(item_a == NULL);
2971  Assert(item_b == NULL);
2972 
2973  return true;
2974 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:419
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3011
#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 1504 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1505 {
1506  COMPARE_STRING_FIELD(conditionname);
1507 
1508  return true;
1509 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalLoadStmt()

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

Definition at line 1585 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1586 {
1588 
1589  return true;
1590 }
#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 2640 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2641 {
2642  COMPARE_NODE_FIELD(lockedRels);
2643  COMPARE_SCALAR_FIELD(strength);
2644  COMPARE_SCALAR_FIELD(waitPolicy);
2645 
2646  return true;
2647 }
#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 2095 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2096 {
2097  COMPARE_NODE_FIELD(relations);
2099  COMPARE_SCALAR_FIELD(nowait);
2100 
2101  return true;
2102 }
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 632 of file equalfuncs.c.

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

Referenced by equal().

633 {
634  COMPARE_SCALAR_FIELD(minmaxtype);
635  COMPARE_SCALAR_FIELD(minmaxcollid);
636  COMPARE_SCALAR_FIELD(inputcollid);
639  COMPARE_LOCATION_FIELD(location);
640 
641  return true;
642 }
#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 2419 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2420 {
2421  COMPARE_NODE_FIELD(source);
2422  COMPARE_SCALAR_FIELD(colno);
2423  COMPARE_SCALAR_FIELD(ncolumns);
2424 
2425  return true;
2426 }
#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 300 of file equalfuncs.c.

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

Referenced by equal().

301 {
304  COMPARE_SCALAR_FIELD(argnumber);
305  COMPARE_LOCATION_FIELD(location);
306 
307  return true;
308 }
#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 738 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

739 {
740  COMPARE_SCALAR_FIELD(seqid);
741  COMPARE_SCALAR_FIELD(typeId);
742 
743  return true;
744 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1495 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1496 {
1497  COMPARE_STRING_FIELD(conditionname);
1498  COMPARE_STRING_FIELD(payload);
1499 
1500  return true;
1501 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

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

Definition at line 363 of file equalfuncs.c.

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

Referenced by equal().

364 {
365  COMPARE_SCALAR_FIELD(opno);
366 
367  /*
368  * Special-case opfuncid: it is allowable for it to differ if one node
369  * contains zero and the other doesn't. This just means that the one node
370  * isn't as far along in the parse/plan pipeline and hasn't had the
371  * opfuncid cache filled yet.
372  */
373  if (a->opfuncid != b->opfuncid &&
374  a->opfuncid != 0 &&
375  b->opfuncid != 0)
376  return false;
377 
378  COMPARE_SCALAR_FIELD(opresulttype);
379  COMPARE_SCALAR_FIELD(opretset);
380  COMPARE_SCALAR_FIELD(opcollid);
381  COMPARE_SCALAR_FIELD(inputcollid);
383  COMPARE_LOCATION_FIELD(location);
384 
385  return true;
386 }
Oid opfuncid
Definition: primnodes.h:503
#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 672 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

673 {
675  COMPARE_SCALAR_FIELD(nulltesttype);
676  COMPARE_SCALAR_FIELD(argisrow);
677  COMPARE_LOCATION_FIELD(location);
678 
679  return true;
680 }
#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 1141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1142 {
1143  COMPARE_NODE_FIELD(objname);
1144  COMPARE_NODE_FIELD(objargs);
1145  COMPARE_SCALAR_FIELD(args_unspecified);
1146 
1147  return true;
1148 }
#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 2801 of file equalfuncs.c.

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

Referenced by equal().

2802 {
2804  COMPARE_NODE_FIELD(infer);
2805  COMPARE_NODE_FIELD(targetList);
2806  COMPARE_NODE_FIELD(whereClause);
2807  COMPARE_LOCATION_FIELD(location);
2808 
2809  return true;
2810 }
#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 803 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

804 {
806  COMPARE_NODE_FIELD(arbiterElems);
807  COMPARE_NODE_FIELD(arbiterWhere);
808  COMPARE_SCALAR_FIELD(constraint);
809  COMPARE_NODE_FIELD(onConflictSet);
810  COMPARE_NODE_FIELD(onConflictWhere);
811  COMPARE_SCALAR_FIELD(exclRelIndex);
812  COMPARE_NODE_FIELD(exclRelTlist);
813 
814  return true;
815 }
#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 311 of file equalfuncs.c.

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

Referenced by equal().

312 {
313  COMPARE_SCALAR_FIELD(opno);
314 
315  /*
316  * Special-case opfuncid: it is allowable for it to differ if one node
317  * contains zero and the other doesn't. This just means that the one node
318  * isn't as far along in the parse/plan pipeline and hasn't had the
319  * opfuncid cache filled yet.
320  */
321  if (a->opfuncid != b->opfuncid &&
322  a->opfuncid != 0 &&
323  b->opfuncid != 0)
324  return false;
325 
326  COMPARE_SCALAR_FIELD(opresulttype);
327  COMPARE_SCALAR_FIELD(opretset);
328  COMPARE_SCALAR_FIELD(opcollid);
329  COMPARE_SCALAR_FIELD(inputcollid);
331  COMPARE_LOCATION_FIELD(location);
332 
333  return true;
334 }
Oid opfuncid
Definition: primnodes.h:503
#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 200 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

201 {
202  COMPARE_SCALAR_FIELD(paramkind);
203  COMPARE_SCALAR_FIELD(paramid);
204  COMPARE_SCALAR_FIELD(paramtype);
205  COMPARE_SCALAR_FIELD(paramtypmod);
206  COMPARE_SCALAR_FIELD(paramcollid);
207  COMPARE_LOCATION_FIELD(location);
208 
209  return true;
210 }
#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 2338 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2339 {
2340  COMPARE_SCALAR_FIELD(number);
2341  COMPARE_LOCATION_FIELD(location);
2342 
2343  return true;
2344 }
#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 2884 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2885 {
2886  COMPARE_SCALAR_FIELD(strategy);
2887  COMPARE_SCALAR_FIELD(is_default);
2888  COMPARE_SCALAR_FIELD(modulus);
2889  COMPARE_SCALAR_FIELD(remainder);
2890  COMPARE_NODE_FIELD(listdatums);
2891  COMPARE_NODE_FIELD(lowerdatums);
2892  COMPARE_NODE_FIELD(upperdatums);
2893  COMPARE_LOCATION_FIELD(location);
2894 
2895  return true;
2896 }
#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 2909 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2910 {
2912  COMPARE_NODE_FIELD(bound);
2913 
2914  return true;
2915 }
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 2862 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2863 {
2865  COMPARE_NODE_FIELD(expr);
2866  COMPARE_NODE_FIELD(collation);
2867  COMPARE_NODE_FIELD(opclass);
2868  COMPARE_LOCATION_FIELD(location);
2869 
2870  return true;
2871 }
#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 2899 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2900 {
2901  COMPARE_SCALAR_FIELD(kind);
2903  COMPARE_LOCATION_FIELD(location);
2904 
2905  return true;
2906 }
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 2874 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2875 {
2876  COMPARE_STRING_FIELD(strategy);
2877  COMPARE_NODE_FIELD(partParams);
2878  COMPARE_LOCATION_FIELD(location);
2879 
2880  return true;
2881 }
#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 822 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPlaceHolderInfo()

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

Definition at line 911 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPrepareStmt()

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

Definition at line 2161 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2162 {
2164  COMPARE_NODE_FIELD(argtypes);
2165  COMPARE_NODE_FIELD(query);
2166 
2167  return true;
2168 }
#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 948 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

949 {
950  COMPARE_SCALAR_FIELD(commandType);
951  COMPARE_SCALAR_FIELD(querySource);
952  /* we intentionally ignore queryId, since it might not be set */
953  COMPARE_SCALAR_FIELD(canSetTag);
954  COMPARE_NODE_FIELD(utilityStmt);
955  COMPARE_SCALAR_FIELD(resultRelation);
956  COMPARE_SCALAR_FIELD(hasAggs);
957  COMPARE_SCALAR_FIELD(hasWindowFuncs);
958  COMPARE_SCALAR_FIELD(hasTargetSRFs);
959  COMPARE_SCALAR_FIELD(hasSubLinks);
960  COMPARE_SCALAR_FIELD(hasDistinctOn);
961  COMPARE_SCALAR_FIELD(hasRecursive);
962  COMPARE_SCALAR_FIELD(hasModifyingCTE);
963  COMPARE_SCALAR_FIELD(hasForUpdate);
964  COMPARE_SCALAR_FIELD(hasRowSecurity);
965  COMPARE_NODE_FIELD(cteList);
966  COMPARE_NODE_FIELD(rtable);
967  COMPARE_NODE_FIELD(jointree);
968  COMPARE_NODE_FIELD(targetList);
969  COMPARE_SCALAR_FIELD(override);
970  COMPARE_NODE_FIELD(onConflict);
971  COMPARE_NODE_FIELD(returningList);
972  COMPARE_NODE_FIELD(groupClause);
973  COMPARE_NODE_FIELD(groupingSets);
974  COMPARE_NODE_FIELD(havingQual);
975  COMPARE_NODE_FIELD(windowClause);
976  COMPARE_NODE_FIELD(distinctClause);
977  COMPARE_NODE_FIELD(sortClause);
978  COMPARE_NODE_FIELD(limitOffset);
979  COMPARE_NODE_FIELD(limitCount);
980  COMPARE_NODE_FIELD(rowMarks);
981  COMPARE_NODE_FIELD(setOperations);
982  COMPARE_NODE_FIELD(constraintDeps);
983  COMPARE_NODE_FIELD(withCheckOptions);
984  COMPARE_LOCATION_FIELD(stmt_location);
985  COMPARE_LOCATION_FIELD(stmt_len);
986 
987  return true;
988 }
#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 2501 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2502 {
2503  COMPARE_SCALAR_FIELD(lateral);
2504  COMPARE_SCALAR_FIELD(ordinality);
2505  COMPARE_SCALAR_FIELD(is_rowsfrom);
2507  COMPARE_NODE_FIELD(alias);
2508  COMPARE_NODE_FIELD(coldeflist);
2509 
2510  return true;
2511 }
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 2491 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2492 {
2493  COMPARE_SCALAR_FIELD(lateral);
2494  COMPARE_NODE_FIELD(subquery);
2495  COMPARE_NODE_FIELD(alias);
2496 
2497  return true;
2498 }
#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 2526 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2527 {
2528  COMPARE_SCALAR_FIELD(lateral);
2529  COMPARE_NODE_FIELD(docexpr);
2530  COMPARE_NODE_FIELD(rowexpr);
2531  COMPARE_NODE_FIELD(namespaces);
2532  COMPARE_NODE_FIELD(columns);
2533  COMPARE_NODE_FIELD(alias);
2534  COMPARE_LOCATION_FIELD(location);
2535 
2536  return true;
2537 }
#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 2540 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2541 {
2542  COMPARE_STRING_FIELD(colname);
2543  COMPARE_NODE_FIELD(typeName);
2544  COMPARE_SCALAR_FIELD(for_ordinality);
2545  COMPARE_SCALAR_FIELD(is_not_null);
2546  COMPARE_NODE_FIELD(colexpr);
2547  COMPARE_NODE_FIELD(coldefexpr);
2548  COMPARE_LOCATION_FIELD(location);
2549 
2550  return true;
2551 }
#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 2514 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2515 {
2516  COMPARE_NODE_FIELD(relation);
2517  COMPARE_NODE_FIELD(method);
2519  COMPARE_NODE_FIELD(repeatable);
2520  COMPARE_LOCATION_FIELD(location);
2521 
2522  return true;
2523 }
#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 2650 of file equalfuncs.c.

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

Referenced by equal().

2651 {
2652  COMPARE_SCALAR_FIELD(rtekind);
2653  COMPARE_SCALAR_FIELD(relid);
2655  COMPARE_SCALAR_FIELD(rellockmode);
2656  COMPARE_NODE_FIELD(tablesample);
2657  COMPARE_NODE_FIELD(subquery);
2658  COMPARE_SCALAR_FIELD(security_barrier);
2659  COMPARE_SCALAR_FIELD(jointype);
2660  COMPARE_NODE_FIELD(joinaliasvars);
2662  COMPARE_SCALAR_FIELD(funcordinality);
2663  COMPARE_NODE_FIELD(tablefunc);
2664  COMPARE_NODE_FIELD(values_lists);
2665  COMPARE_STRING_FIELD(ctename);
2666  COMPARE_SCALAR_FIELD(ctelevelsup);
2667  COMPARE_SCALAR_FIELD(self_reference);
2668  COMPARE_NODE_FIELD(coltypes);
2669  COMPARE_NODE_FIELD(coltypmods);
2670  COMPARE_NODE_FIELD(colcollations);
2671  COMPARE_STRING_FIELD(enrname);
2672  COMPARE_SCALAR_FIELD(enrtuples);
2673  COMPARE_NODE_FIELD(alias);
2674  COMPARE_NODE_FIELD(eref);
2675  COMPARE_SCALAR_FIELD(lateral);
2676  COMPARE_SCALAR_FIELD(inh);
2677  COMPARE_SCALAR_FIELD(inFromCl);
2678  COMPARE_SCALAR_FIELD(requiredPerms);
2679  COMPARE_SCALAR_FIELD(checkAsUser);
2680  COMPARE_BITMAPSET_FIELD(selectedCols);
2681  COMPARE_BITMAPSET_FIELD(insertedCols);
2682  COMPARE_BITMAPSET_FIELD(updatedCols);
2683  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2684  COMPARE_NODE_FIELD(securityQuals);
2685 
2686  return true;
2687 }
#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 2690 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2691 {
2692  COMPARE_NODE_FIELD(funcexpr);
2693  COMPARE_SCALAR_FIELD(funccolcount);
2694  COMPARE_NODE_FIELD(funccolnames);
2695  COMPARE_NODE_FIELD(funccoltypes);
2696  COMPARE_NODE_FIELD(funccoltypmods);
2697  COMPARE_NODE_FIELD(funccolcollations);
2698  COMPARE_BITMAPSET_FIELD(funcparams);
2699 
2700  return true;
2701 }
#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 771 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

772 {
773  COMPARE_SCALAR_FIELD(rtindex);
774 
775  return true;
776 }
#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 991 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

992 {
993  COMPARE_NODE_FIELD(stmt);
994  COMPARE_LOCATION_FIELD(stmt_location);
995  COMPARE_LOCATION_FIELD(stmt_len);
996 
997  return true;
998 }
#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 2197 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2198 {
2199  COMPARE_NODE_FIELD(roles);
2200  COMPARE_NODE_FIELD(newrole);
2201 
2202  return true;
2203 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1728 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1729 {
1730  COMPARE_SCALAR_FIELD(concurrent);
1731  COMPARE_SCALAR_FIELD(skipData);
1732  COMPARE_NODE_FIELD(relation);
1733 
1734  return true;
1735 }
#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 2114 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2115 {
2116  COMPARE_SCALAR_FIELD(kind);
2117  COMPARE_NODE_FIELD(relation);
2120  COMPARE_SCALAR_FIELD(concurrent);
2121 
2122  return true;
2123 }
#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 490 of file equalfuncs.c.

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

Referenced by equal().

491 {
493  COMPARE_SCALAR_FIELD(resulttype);
494  COMPARE_SCALAR_FIELD(resulttypmod);
495  COMPARE_SCALAR_FIELD(resultcollid);
496  COMPARE_COERCIONFORM_FIELD(relabelformat);
497  COMPARE_LOCATION_FIELD(location);
498 
499  return true;
500 }
#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 1423 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1424 {
1425  COMPARE_SCALAR_FIELD(renameType);
1426  COMPARE_SCALAR_FIELD(relationType);
1427  COMPARE_NODE_FIELD(relation);
1428  COMPARE_NODE_FIELD(object);
1430  COMPARE_STRING_FIELD(newname);
1431  COMPARE_SCALAR_FIELD(behavior);
1432  COMPARE_SCALAR_FIELD(missing_ok);
1433 
1434  return true;
1435 }
#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 1738 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1739 {
1740  COMPARE_SCALAR_FIELD(identity_type);
1742 
1743  return true;
1744 }
#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 2408 of file equalfuncs.c.

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

Referenced by equal().

2409 {
2411  COMPARE_NODE_FIELD(indirection);
2413  COMPARE_LOCATION_FIELD(location);
2414 
2415  return true;
2416 }
#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 834 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2843 {
2844  COMPARE_SCALAR_FIELD(roletype);
2845  COMPARE_STRING_FIELD(rolename);
2846  COMPARE_LOCATION_FIELD(location);
2847 
2848  return true;
2849 }
#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 608 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

609 {
610  COMPARE_SCALAR_FIELD(rctype);
611  COMPARE_NODE_FIELD(opnos);
612  COMPARE_NODE_FIELD(opfamilies);
613  COMPARE_NODE_FIELD(inputcollids);
614  COMPARE_NODE_FIELD(largs);
615  COMPARE_NODE_FIELD(rargs);
616 
617  return true;
618 }
#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 596 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().

597 {
599  COMPARE_SCALAR_FIELD(row_typeid);
600  COMPARE_COERCIONFORM_FIELD(row_format);
601  COMPARE_NODE_FIELD(colnames);
602  COMPARE_LOCATION_FIELD(location);
603 
604  return true;
605 }
#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 2769 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2770 {
2771  COMPARE_SCALAR_FIELD(rti);
2772  COMPARE_SCALAR_FIELD(strength);
2773  COMPARE_SCALAR_FIELD(waitPolicy);
2774  COMPARE_SCALAR_FIELD(pushedDown);
2775 
2776  return true;
2777 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRuleStmt()

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

Definition at line 1481 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1482 {
1483  COMPARE_NODE_FIELD(relation);
1484  COMPARE_STRING_FIELD(rulename);
1485  COMPARE_NODE_FIELD(whereClause);
1486  COMPARE_SCALAR_FIELD(event);
1487  COMPARE_SCALAR_FIELD(instead);
1488  COMPARE_NODE_FIELD(actions);
1489  COMPARE_SCALAR_FIELD(replace);
1490 
1491  return true;
1492 }
#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 389 of file equalfuncs.c.

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

Referenced by equal().

390 {
391  COMPARE_SCALAR_FIELD(opno);
392 
393  /*
394  * Special-case opfuncid: it is allowable for it to differ if one node
395  * contains zero and the other doesn't. This just means that the one node
396  * isn't as far along in the parse/plan pipeline and hasn't had the
397  * opfuncid cache filled yet.
398  */
399  if (a->opfuncid != b->opfuncid &&
400  a->opfuncid != 0 &&
401  b->opfuncid != 0)
402  return false;
403 
404  COMPARE_SCALAR_FIELD(useOr);
405  COMPARE_SCALAR_FIELD(inputcollid);
407  COMPARE_LOCATION_FIELD(location);
408 
409  return true;
410 }
#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 1308 of file equalfuncs.c.

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

Referenced by equal().

1309 {
1310  COMPARE_SCALAR_FIELD(objtype);
1311  COMPARE_NODE_FIELD(object);