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 _equalAlterTypeStmt (const AlterTypeStmt *a, const AlterTypeStmt *b)
 
static bool _equalRuleStmt (const RuleStmt *a, const RuleStmt *b)
 
static bool _equalNotifyStmt (const NotifyStmt *a, const NotifyStmt *b)
 
static bool _equalListenStmt (const ListenStmt *a, const ListenStmt *b)
 
static bool _equalUnlistenStmt (const UnlistenStmt *a, const UnlistenStmt *b)
 
static bool _equalTransactionStmt (const TransactionStmt *a, const TransactionStmt *b)
 
static bool _equalCompositeTypeStmt (const CompositeTypeStmt *a, const CompositeTypeStmt *b)
 
static bool _equalCreateEnumStmt (const CreateEnumStmt *a, const CreateEnumStmt *b)
 
static bool _equalCreateRangeStmt (const CreateRangeStmt *a, const CreateRangeStmt *b)
 
static bool _equalAlterEnumStmt (const AlterEnumStmt *a, const AlterEnumStmt *b)
 
static bool _equalViewStmt (const ViewStmt *a, const ViewStmt *b)
 
static bool _equalLoadStmt (const LoadStmt *a, const LoadStmt *b)
 
static bool _equalCreateDomainStmt (const CreateDomainStmt *a, const CreateDomainStmt *b)
 
static bool _equalCreateOpClassStmt (const CreateOpClassStmt *a, const CreateOpClassStmt *b)
 
static bool _equalCreateOpClassItem (const CreateOpClassItem *a, const CreateOpClassItem *b)
 
static bool _equalCreateOpFamilyStmt (const CreateOpFamilyStmt *a, const CreateOpFamilyStmt *b)
 
static bool _equalAlterOpFamilyStmt (const AlterOpFamilyStmt *a, const AlterOpFamilyStmt *b)
 
static bool _equalCreatedbStmt (const CreatedbStmt *a, const CreatedbStmt *b)
 
static bool _equalAlterDatabaseStmt (const AlterDatabaseStmt *a, const AlterDatabaseStmt *b)
 
static bool _equalAlterDatabaseSetStmt (const AlterDatabaseSetStmt *a, const AlterDatabaseSetStmt *b)
 
static bool _equalDropdbStmt (const DropdbStmt *a, const DropdbStmt *b)
 
static bool _equalVacuumStmt (const VacuumStmt *a, const VacuumStmt *b)
 
static bool _equalVacuumRelation (const VacuumRelation *a, const VacuumRelation *b)
 
static bool _equalExplainStmt (const ExplainStmt *a, const ExplainStmt *b)
 
static bool _equalCreateTableAsStmt (const CreateTableAsStmt *a, const CreateTableAsStmt *b)
 
static bool _equalRefreshMatViewStmt (const RefreshMatViewStmt *a, const RefreshMatViewStmt *b)
 
static bool _equalReplicaIdentityStmt (const ReplicaIdentityStmt *a, const ReplicaIdentityStmt *b)
 
static bool _equalAlterSystemStmt (const AlterSystemStmt *a, const AlterSystemStmt *b)
 
static bool _equalCreateSeqStmt (const CreateSeqStmt *a, const CreateSeqStmt *b)
 
static bool _equalAlterSeqStmt (const AlterSeqStmt *a, const AlterSeqStmt *b)
 
static bool _equalVariableSetStmt (const VariableSetStmt *a, const VariableSetStmt *b)
 
static bool _equalVariableShowStmt (const VariableShowStmt *a, const VariableShowStmt *b)
 
static bool _equalDiscardStmt (const DiscardStmt *a, const DiscardStmt *b)
 
static bool _equalCreateTableSpaceStmt (const CreateTableSpaceStmt *a, const CreateTableSpaceStmt *b)
 
static bool _equalDropTableSpaceStmt (const DropTableSpaceStmt *a, const DropTableSpaceStmt *b)
 
static bool _equalAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *a, const AlterTableSpaceOptionsStmt *b)
 
static bool _equalAlterTableMoveAllStmt (const AlterTableMoveAllStmt *a, const AlterTableMoveAllStmt *b)
 
static bool _equalCreateExtensionStmt (const CreateExtensionStmt *a, const CreateExtensionStmt *b)
 
static bool _equalAlterExtensionStmt (const AlterExtensionStmt *a, const AlterExtensionStmt *b)
 
static bool _equalAlterExtensionContentsStmt (const AlterExtensionContentsStmt *a, const AlterExtensionContentsStmt *b)
 
static bool _equalCreateFdwStmt (const CreateFdwStmt *a, const CreateFdwStmt *b)
 
static bool _equalAlterFdwStmt (const AlterFdwStmt *a, const AlterFdwStmt *b)
 
static bool _equalCreateForeignServerStmt (const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
 
static bool _equalAlterForeignServerStmt (const AlterForeignServerStmt *a, const AlterForeignServerStmt *b)
 
static bool _equalCreateUserMappingStmt (const CreateUserMappingStmt *a, const CreateUserMappingStmt *b)
 
static bool _equalAlterUserMappingStmt (const AlterUserMappingStmt *a, const AlterUserMappingStmt *b)
 
static bool _equalDropUserMappingStmt (const DropUserMappingStmt *a, const DropUserMappingStmt *b)
 
static bool _equalCreateForeignTableStmt (const CreateForeignTableStmt *a, const CreateForeignTableStmt *b)
 
static bool _equalImportForeignSchemaStmt (const ImportForeignSchemaStmt *a, const ImportForeignSchemaStmt *b)
 
static bool _equalCreateTransformStmt (const CreateTransformStmt *a, const CreateTransformStmt *b)
 
static bool _equalCreateAmStmt (const CreateAmStmt *a, const CreateAmStmt *b)
 
static bool _equalCreateTrigStmt (const CreateTrigStmt *a, const CreateTrigStmt *b)
 
static bool _equalCreateEventTrigStmt (const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
 
static bool _equalAlterEventTrigStmt (const AlterEventTrigStmt *a, const AlterEventTrigStmt *b)
 
static bool _equalCreatePLangStmt (const CreatePLangStmt *a, const CreatePLangStmt *b)
 
static bool _equalCreateRoleStmt (const CreateRoleStmt *a, const CreateRoleStmt *b)
 
static bool _equalAlterRoleStmt (const AlterRoleStmt *a, const AlterRoleStmt *b)
 
static bool _equalAlterRoleSetStmt (const AlterRoleSetStmt *a, const AlterRoleSetStmt *b)
 
static bool _equalDropRoleStmt (const DropRoleStmt *a, const DropRoleStmt *b)
 
static bool _equalLockStmt (const LockStmt *a, const LockStmt *b)
 
static bool _equalConstraintsSetStmt (const ConstraintsSetStmt *a, const ConstraintsSetStmt *b)
 
static bool _equalReindexStmt (const ReindexStmt *a, const ReindexStmt *b)
 
static bool _equalCreateSchemaStmt (const CreateSchemaStmt *a, const CreateSchemaStmt *b)
 
static bool _equalCreateConversionStmt (const CreateConversionStmt *a, const CreateConversionStmt *b)
 
static bool _equalCreateCastStmt (const CreateCastStmt *a, const CreateCastStmt *b)
 
static bool _equalPrepareStmt (const PrepareStmt *a, const PrepareStmt *b)
 
static bool _equalExecuteStmt (const ExecuteStmt *a, const ExecuteStmt *b)
 
static bool _equalDeallocateStmt (const DeallocateStmt *a, const DeallocateStmt *b)
 
static bool _equalDropOwnedStmt (const DropOwnedStmt *a, const DropOwnedStmt *b)
 
static bool _equalReassignOwnedStmt (const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
 
static bool _equalAlterTSDictionaryStmt (const AlterTSDictionaryStmt *a, const AlterTSDictionaryStmt *b)
 
static bool _equalAlterTSConfigurationStmt (const AlterTSConfigurationStmt *a, const AlterTSConfigurationStmt *b)
 
static bool _equalCreatePublicationStmt (const CreatePublicationStmt *a, const CreatePublicationStmt *b)
 
static bool _equalAlterPublicationStmt (const AlterPublicationStmt *a, const AlterPublicationStmt *b)
 
static bool _equalCreateSubscriptionStmt (const CreateSubscriptionStmt *a, const CreateSubscriptionStmt *b)
 
static bool _equalAlterSubscriptionStmt (const AlterSubscriptionStmt *a, const AlterSubscriptionStmt *b)
 
static bool _equalDropSubscriptionStmt (const DropSubscriptionStmt *a, const DropSubscriptionStmt *b)
 
static bool _equalCreatePolicyStmt (const CreatePolicyStmt *a, const CreatePolicyStmt *b)
 
static bool _equalAlterPolicyStmt (const AlterPolicyStmt *a, const AlterPolicyStmt *b)
 
static bool _equalAExpr (const A_Expr *a, const A_Expr *b)
 
static bool _equalColumnRef (const ColumnRef *a, const ColumnRef *b)
 
static bool _equalParamRef (const ParamRef *a, const ParamRef *b)
 
static bool _equalAConst (const A_Const *a, const A_Const *b)
 
static bool _equalFuncCall (const FuncCall *a, const FuncCall *b)
 
static bool _equalAStar (const A_Star *a, const A_Star *b)
 
static bool _equalAIndices (const A_Indices *a, const A_Indices *b)
 
static bool _equalA_Indirection (const A_Indirection *a, const A_Indirection *b)
 
static bool _equalA_ArrayExpr (const A_ArrayExpr *a, const A_ArrayExpr *b)
 
static bool _equalResTarget (const ResTarget *a, const ResTarget *b)
 
static bool _equalMultiAssignRef (const MultiAssignRef *a, const MultiAssignRef *b)
 
static bool _equalTypeName (const TypeName *a, const TypeName *b)
 
static bool _equalTypeCast (const TypeCast *a, const TypeCast *b)
 
static bool _equalCollateClause (const CollateClause *a, const CollateClause *b)
 
static bool _equalSortBy (const SortBy *a, const SortBy *b)
 
static bool _equalWindowDef (const WindowDef *a, const WindowDef *b)
 
static bool _equalRangeSubselect (const RangeSubselect *a, const RangeSubselect *b)
 
static bool _equalRangeFunction (const RangeFunction *a, const RangeFunction *b)
 
static bool _equalRangeTableSample (const RangeTableSample *a, const RangeTableSample *b)
 
static bool _equalRangeTableFunc (const RangeTableFunc *a, const RangeTableFunc *b)
 
static bool _equalRangeTableFuncCol (const RangeTableFuncCol *a, const RangeTableFuncCol *b)
 
static bool _equalIndexElem (const IndexElem *a, const IndexElem *b)
 
static bool _equalColumnDef (const ColumnDef *a, const ColumnDef *b)
 
static bool _equalConstraint (const Constraint *a, const Constraint *b)
 
static bool _equalDefElem (const DefElem *a, const DefElem *b)
 
static bool _equalLockingClause (const LockingClause *a, const LockingClause *b)
 
static bool _equalRangeTblEntry (const RangeTblEntry *a, const RangeTblEntry *b)
 
static bool _equalRangeTblFunction (const RangeTblFunction *a, const RangeTblFunction *b)
 
static bool _equalTableSampleClause (const TableSampleClause *a, const TableSampleClause *b)
 
static bool _equalWithCheckOption (const WithCheckOption *a, const WithCheckOption *b)
 
static bool _equalSortGroupClause (const SortGroupClause *a, const SortGroupClause *b)
 
static bool _equalGroupingSet (const GroupingSet *a, const GroupingSet *b)
 
static bool _equalWindowClause (const WindowClause *a, const WindowClause *b)
 
static bool _equalRowMarkClause (const RowMarkClause *a, const RowMarkClause *b)
 
static bool _equalWithClause (const WithClause *a, const WithClause *b)
 
static bool _equalInferClause (const InferClause *a, const InferClause *b)
 
static bool _equalOnConflictClause (const OnConflictClause *a, const OnConflictClause *b)
 
static bool _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:3032

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(), _equalAlterTypeStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalBooleanTest(), _equalBoolExpr(), _equalCallStmt(), _equalCaseExpr(), _equalCaseWhen(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnDef(), _equalColumnRef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalCompositeTypeStmt(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateDomainStmt(), _equalCreateEnumStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRangeStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStatsStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableAsStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _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(), _equalRawStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalRestrictInfo(), _equalRoleSpec(), _equalRowCompareExpr(), _equalRowExpr(), _equalRowMarkClause(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSetToDefault(), _equalSortBy(), _equalSortGroupClause(), _equalSpecialJoinInfo(), _equalSQLValueFunction(), _equalSubLink(), _equalSubPlan(), _equalSubscriptingRef(), _equalTableFunc(), _equalTableLikeClause(), _equalTableSampleClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTriggerTransition(), _equalTruncateStmt(), _equalTypeName(), _equalVacuumRelation(), _equalVacuumStmt(), _equalValue(), _equalVar(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

◆ COMPARE_STRING_FIELD

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

Definition at line 67 of file equalfuncs.c.

Referenced by _equalAccessPriv(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterUserMappingStmt(), _equalClosePortalStmt(), _equalClusterStmt(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConstraint(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateStatsStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _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 2416 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2417 {
2418  COMPARE_NODE_FIELD(elements);
2419  COMPARE_LOCATION_FIELD(location);
2420 
2421  return true;
2422 }
#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 2407 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2408 {
2410  COMPARE_NODE_FIELD(indirection);
2411 
2412  return true;
2413 }
#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 1157 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1158 {
1159  COMPARE_STRING_FIELD(priv_name);
1160  COMPARE_NODE_FIELD(cols);
1161 
1162  return true;
1163 }
#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 2364 of file equalfuncs.c.

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

Referenced by equal().

2365 {
2366  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2367  return false;
2368  COMPARE_LOCATION_FIELD(location);
2369 
2370  return true;
2371 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3032
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
Value val
Definition: parsenodes.h:289

◆ _equalAExpr()

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

Definition at line 2334 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2335 {
2336  COMPARE_SCALAR_FIELD(kind);
2338  COMPARE_NODE_FIELD(lexpr);
2339  COMPARE_NODE_FIELD(rexpr);
2340  COMPARE_LOCATION_FIELD(location);
2341 
2342  return true;
2343 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAggref()

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

Definition at line 217 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalAIndices()

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

Definition at line 2397 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2398 {
2399  COMPARE_SCALAR_FIELD(is_slice);
2400  COMPARE_NODE_FIELD(lidx);
2401  COMPARE_NODE_FIELD(uidx);
2402 
2403  return true;
2404 }
#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 1111 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1686 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

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

◆ _equalAlterDatabaseStmt()

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

Definition at line 1677 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

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

◆ _equalAlterDefaultPrivilegesStmt()

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

Definition at line 1179 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1180 {
1183 
1184  return true;
1185 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1119 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1120 {
1121  COMPARE_SCALAR_FIELD(subtype);
1122  COMPARE_NODE_FIELD(typeName);
1124  COMPARE_NODE_FIELD(def);
1125  COMPARE_SCALAR_FIELD(behavior);
1126  COMPARE_SCALAR_FIELD(missing_ok);
1127 
1128  return true;
1129 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterEnumStmt()

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

Definition at line 1577 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1578 {
1579  COMPARE_NODE_FIELD(typeName);
1580  COMPARE_STRING_FIELD(oldVal);
1581  COMPARE_STRING_FIELD(newVal);
1582  COMPARE_STRING_FIELD(newValNeighbor);
1583  COMPARE_SCALAR_FIELD(newValIsAfter);
1584  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1585 
1586  return true;
1587 }
#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 2052 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2053 {
2054  COMPARE_STRING_FIELD(trigname);
2055  COMPARE_SCALAR_FIELD(tgenabled);
2056 
2057  return true;
2058 }
#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 1887 of file equalfuncs.c.

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

Referenced by equal().

1888 {
1889  COMPARE_STRING_FIELD(extname);
1891  COMPARE_SCALAR_FIELD(objtype);
1892  COMPARE_NODE_FIELD(object);
1893 
1894  return true;
1895 }
#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 1878 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1879 {
1880  COMPARE_STRING_FIELD(extname);
1882 
1883  return true;
1884 }
#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 1908 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1909 {
1910  COMPARE_STRING_FIELD(fdwname);
1911  COMPARE_NODE_FIELD(func_options);
1913 
1914  return true;
1915 }
#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 1931 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1932 {
1933  COMPARE_STRING_FIELD(servername);
1934  COMPARE_STRING_FIELD(version);
1936  COMPARE_SCALAR_FIELD(has_version);
1937 
1938  return true;
1939 }
#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 1413 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1414 {
1415  COMPARE_SCALAR_FIELD(objtype);
1416  COMPARE_NODE_FIELD(func);
1417  COMPARE_NODE_FIELD(actions);
1418 
1419  return true;
1420 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlternativeSubPlan()

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

Definition at line 463 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1446 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1447 {
1448  COMPARE_SCALAR_FIELD(objectType);
1449  COMPARE_NODE_FIELD(relation);
1450  COMPARE_NODE_FIELD(object);
1451  COMPARE_NODE_FIELD(extname);
1452  COMPARE_SCALAR_FIELD(remove);
1453 
1454  return true;
1455 }
#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 1458 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1459 {
1460  COMPARE_SCALAR_FIELD(objectType);
1461  COMPARE_NODE_FIELD(relation);
1462  COMPARE_NODE_FIELD(object);
1463  COMPARE_STRING_FIELD(newschema);
1464  COMPARE_SCALAR_FIELD(missing_ok);
1465 
1466  return true;
1467 }
#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 1481 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1482 {
1483  COMPARE_NODE_FIELD(opername);
1485 
1486  return true;
1487 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1657 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1658 {
1659  COMPARE_NODE_FIELD(opfamilyname);
1660  COMPARE_STRING_FIELD(amname);
1661  COMPARE_SCALAR_FIELD(isDrop);
1662  COMPARE_NODE_FIELD(items);
1663 
1664  return true;
1665 }
#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 1470 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1471 {
1472  COMPARE_SCALAR_FIELD(objectType);
1473  COMPARE_NODE_FIELD(relation);
1474  COMPARE_NODE_FIELD(object);
1475  COMPARE_NODE_FIELD(newowner);
1476 
1477  return true;
1478 }
#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 2322 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2323 {
2324  COMPARE_STRING_FIELD(policy_name);
2325  COMPARE_NODE_FIELD(table);
2326  COMPARE_NODE_FIELD(roles);
2327  COMPARE_NODE_FIELD(qual);
2328  COMPARE_NODE_FIELD(with_check);
2329 
2330  return true;
2331 }
#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 2259 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2261 {
2262  COMPARE_STRING_FIELD(pubname);
2264  COMPARE_NODE_FIELD(tables);
2265  COMPARE_SCALAR_FIELD(for_all_tables);
2266  COMPARE_SCALAR_FIELD(tableAction);
2267 
2268  return true;
2269 }
#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 2094 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2095 {
2096  COMPARE_NODE_FIELD(role);
2097  COMPARE_STRING_FIELD(database);
2098  COMPARE_NODE_FIELD(setstmt);
2099 
2100  return true;
2101 }
#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 2084 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2085 {
2086  COMPARE_NODE_FIELD(role);
2089 
2090  return true;
2091 }
#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 1786 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1787 {
1788  COMPARE_NODE_FIELD(sequence);
1790  COMPARE_SCALAR_FIELD(for_identity);
1791  COMPARE_SCALAR_FIELD(missing_ok);
1792 
1793  return true;
1794 }
#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 1379 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1380 {
1381  COMPARE_NODE_FIELD(defnames);
1382  COMPARE_SCALAR_FIELD(stxstattarget);
1383  COMPARE_SCALAR_FIELD(missing_ok);
1384 
1385  return true;
1386 }
#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 2284 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2286 {
2287  COMPARE_SCALAR_FIELD(kind);
2289  COMPARE_STRING_FIELD(conninfo);
2290  COMPARE_NODE_FIELD(publication);
2292 
2293  return true;
2294 }
#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 1765 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1766 {
1767  COMPARE_NODE_FIELD(setstmt);
1768 
1769  return true;
1770 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1097 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1098 {
1099  COMPARE_SCALAR_FIELD(subtype);
1101  COMPARE_SCALAR_FIELD(num);
1102  COMPARE_NODE_FIELD(newowner);
1103  COMPARE_NODE_FIELD(def);
1104  COMPARE_SCALAR_FIELD(behavior);
1105  COMPARE_SCALAR_FIELD(missing_ok);
1106 
1107  return true;
1108 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableMoveAllStmt()

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

Definition at line 1855 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1857 {
1858  COMPARE_STRING_FIELD(orig_tablespacename);
1859  COMPARE_SCALAR_FIELD(objtype);
1860  COMPARE_NODE_FIELD(roles);
1861  COMPARE_STRING_FIELD(new_tablespacename);
1862  COMPARE_SCALAR_FIELD(nowait);
1863 
1864  return true;
1865 }
#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 1844 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1846 {
1847  COMPARE_STRING_FIELD(tablespacename);
1849  COMPARE_SCALAR_FIELD(isReset);
1850 
1851  return true;
1852 }
#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 1086 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1087 {
1088  COMPARE_NODE_FIELD(relation);
1089  COMPARE_NODE_FIELD(cmds);
1090  COMPARE_SCALAR_FIELD(objtype);
1091  COMPARE_SCALAR_FIELD(missing_ok);
1092 
1093  return true;
1094 }
#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 2232 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2234 {
2235  COMPARE_SCALAR_FIELD(kind);
2236  COMPARE_NODE_FIELD(cfgname);
2237  COMPARE_NODE_FIELD(tokentype);
2238  COMPARE_NODE_FIELD(dicts);
2239  COMPARE_SCALAR_FIELD(override);
2240  COMPARE_SCALAR_FIELD(replace);
2241  COMPARE_SCALAR_FIELD(missing_ok);
2242 
2243  return true;
2244 }
#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 2223 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2224 {
2225  COMPARE_NODE_FIELD(dictname);
2227 
2228  return true;
2229 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTypeStmt()

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

Definition at line 1490 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalAlterUserMappingStmt()

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

Definition at line 1953 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1954 {
1956  COMPARE_STRING_FIELD(servername);
1958 
1959  return true;
1960 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95

◆ _equalAppendRelInfo()

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

Definition at line 900 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalArrayCoerceExpr()

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

Definition at line 519 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalArrayExpr()

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

Definition at line 587 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalAStar()

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

Definition at line 2391 of file equalfuncs.c.

Referenced by equal().

2392 {
2393  return true;
2394 }

◆ _equalBooleanTest()

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

Definition at line 687 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalBoolExpr()

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

Definition at line 417 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCallStmt()

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

Definition at line 1206 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCaseExpr()

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

Definition at line 554 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCaseTestExpr()

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

Definition at line 577 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalCaseWhen()

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

Definition at line 567 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalClosePortalStmt()

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

Definition at line 1198 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalClusterStmt()

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

Definition at line 1215 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1216 {
1217  COMPARE_NODE_FIELD(relation);
1218  COMPARE_STRING_FIELD(indexname);
1220 
1221  return true;
1222 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoalesceExpr()

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

Definition at line 625 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCoerceToDomain()

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

Definition at line 697 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCoerceToDomainValue()

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

Definition at line 710 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalCoerceViaIO()

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

Definition at line 507 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCollateClause()

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

Definition at line 2471 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2472 {
2474  COMPARE_NODE_FIELD(collname);
2475  COMPARE_LOCATION_FIELD(location);
2476 
2477  return true;
2478 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalCollateExpr()

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

Definition at line 544 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalColumnDef()

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

Definition at line 2587 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2588 {
2589  COMPARE_STRING_FIELD(colname);
2590  COMPARE_NODE_FIELD(typeName);
2591  COMPARE_SCALAR_FIELD(inhcount);
2592  COMPARE_SCALAR_FIELD(is_local);
2593  COMPARE_SCALAR_FIELD(is_not_null);
2594  COMPARE_SCALAR_FIELD(is_from_type);
2595  COMPARE_SCALAR_FIELD(storage);
2596  COMPARE_NODE_FIELD(raw_default);
2597  COMPARE_NODE_FIELD(cooked_default);
2598  COMPARE_SCALAR_FIELD(identity);
2599  COMPARE_NODE_FIELD(identitySequence);
2600  COMPARE_SCALAR_FIELD(generated);
2601  COMPARE_NODE_FIELD(collClause);
2602  COMPARE_SCALAR_FIELD(collOid);
2603  COMPARE_NODE_FIELD(constraints);
2604  COMPARE_NODE_FIELD(fdwoptions);
2605  COMPARE_LOCATION_FIELD(location);
2606 
2607  return true;
2608 }
#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 2346 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2347 {
2348  COMPARE_NODE_FIELD(fields);
2349  COMPARE_LOCATION_FIELD(location);
2350 
2351  return true;
2352 }
#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 1304 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2835 {
2836  COMPARE_STRING_FIELD(ctename);
2837  COMPARE_NODE_FIELD(aliascolnames);
2838  COMPARE_SCALAR_FIELD(ctematerialized);
2839  COMPARE_NODE_FIELD(ctequery);
2840  COMPARE_LOCATION_FIELD(location);
2841  COMPARE_SCALAR_FIELD(cterecursive);
2842  COMPARE_SCALAR_FIELD(cterefcount);
2843  COMPARE_NODE_FIELD(ctecolnames);
2844  COMPARE_NODE_FIELD(ctecoltypes);
2845  COMPARE_NODE_FIELD(ctecoltypmods);
2846  COMPARE_NODE_FIELD(ctecolcollations);
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_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 1550 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalConst()

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

Definition at line 183 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalConstraint()

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

Definition at line 2611 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2612 {
2613  COMPARE_SCALAR_FIELD(contype);
2614  COMPARE_STRING_FIELD(conname);
2615  COMPARE_SCALAR_FIELD(deferrable);
2616  COMPARE_SCALAR_FIELD(initdeferred);
2617  COMPARE_LOCATION_FIELD(location);
2618  COMPARE_SCALAR_FIELD(is_no_inherit);
2619  COMPARE_NODE_FIELD(raw_expr);
2620  COMPARE_STRING_FIELD(cooked_expr);
2621  COMPARE_SCALAR_FIELD(generated_when);
2622  COMPARE_NODE_FIELD(keys);
2623  COMPARE_NODE_FIELD(including);
2624  COMPARE_NODE_FIELD(exclusions);
2626  COMPARE_STRING_FIELD(indexname);
2627  COMPARE_STRING_FIELD(indexspace);
2628  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2629  COMPARE_STRING_FIELD(access_method);
2630  COMPARE_NODE_FIELD(where_clause);
2631  COMPARE_NODE_FIELD(pktable);
2632  COMPARE_NODE_FIELD(fk_attrs);
2633  COMPARE_NODE_FIELD(pk_attrs);
2634  COMPARE_SCALAR_FIELD(fk_matchtype);
2635  COMPARE_SCALAR_FIELD(fk_upd_action);
2636  COMPARE_SCALAR_FIELD(fk_del_action);
2637  COMPARE_NODE_FIELD(old_conpfeqop);
2638  COMPARE_SCALAR_FIELD(old_pktable_oid);
2639  COMPARE_SCALAR_FIELD(skip_validation);
2640  COMPARE_SCALAR_FIELD(initially_valid);
2641 
2642  return true;
2643 }
#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 2123 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2124 {
2125  COMPARE_NODE_FIELD(constraints);
2126  COMPARE_SCALAR_FIELD(deferred);
2127 
2128  return true;
2129 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConvertRowtypeExpr()

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

Definition at line 533 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalCopyStmt()

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

Definition at line 1225 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1226 {
1227  COMPARE_NODE_FIELD(relation);
1228  COMPARE_NODE_FIELD(query);
1229  COMPARE_NODE_FIELD(attlist);
1230  COMPARE_SCALAR_FIELD(is_from);
1231  COMPARE_SCALAR_FIELD(is_program);
1234  COMPARE_NODE_FIELD(whereClause);
1235 
1236  return true;
1237 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * filename
Definition: pg_dumpall.c:91
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateAmStmt()

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

Definition at line 2010 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2011 {
2012  COMPARE_STRING_FIELD(amname);
2013  COMPARE_NODE_FIELD(handler_name);
2014  COMPARE_SCALAR_FIELD(amtype);
2015 
2016  return true;
2017 }
#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 2166 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2167 {
2168  COMPARE_NODE_FIELD(sourcetype);
2169  COMPARE_NODE_FIELD(targettype);
2170  COMPARE_NODE_FIELD(func);
2171  COMPARE_SCALAR_FIELD(context);
2172  COMPARE_SCALAR_FIELD(inout);
2173 
2174  return true;
2175 }
#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 2154 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2155 {
2156  COMPARE_NODE_FIELD(conversion_name);
2157  COMPARE_STRING_FIELD(for_encoding_name);
2158  COMPARE_STRING_FIELD(to_encoding_name);
2159  COMPARE_NODE_FIELD(func_name);
2160  COMPARE_SCALAR_FIELD(def);
2161 
2162  return true;
2163 }
#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 1668 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1669 {
1672 
1673  return true;
1674 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
char * dbname
Definition: streamutil.c:51
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateDomainStmt()

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

Definition at line 1611 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateEnumStmt()

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

Definition at line 1559 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateEventTrigStmt()

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

Definition at line 2041 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2042 {
2043  COMPARE_STRING_FIELD(trigname);
2044  COMPARE_STRING_FIELD(eventname);
2045  COMPARE_NODE_FIELD(whenclause);
2046  COMPARE_NODE_FIELD(funcname);
2047 
2048  return true;
2049 }
#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 1868 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1869 {
1870  COMPARE_STRING_FIELD(extname);
1871  COMPARE_SCALAR_FIELD(if_not_exists);
1873 
1874  return true;
1875 }
#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 1898 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1899 {
1900  COMPARE_STRING_FIELD(fdwname);
1901  COMPARE_NODE_FIELD(func_options);
1903 
1904  return true;
1905 }
#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 1918 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1919 {
1920  COMPARE_STRING_FIELD(servername);
1921  COMPARE_STRING_FIELD(servertype);
1922  COMPARE_STRING_FIELD(version);
1923  COMPARE_STRING_FIELD(fdwname);
1924  COMPARE_SCALAR_FIELD(if_not_exists);
1926 
1927  return true;
1928 }
#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 1973 of file equalfuncs.c.

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

Referenced by equal().

1974 {
1975  if (!_equalCreateStmt(&a->base, &b->base))
1976  return false;
1977 
1978  COMPARE_STRING_FIELD(servername);
1980 
1981  return true;
1982 }
#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:1240

◆ _equalCreateFunctionStmt()

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

Definition at line 1389 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1390 {
1391  COMPARE_SCALAR_FIELD(is_procedure);
1392  COMPARE_SCALAR_FIELD(replace);
1393  COMPARE_NODE_FIELD(funcname);
1394  COMPARE_NODE_FIELD(parameters);
1395  COMPARE_NODE_FIELD(returnType);
1397 
1398  return true;
1399 }
#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 1635 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1636 {
1637  COMPARE_SCALAR_FIELD(itemtype);
1639  COMPARE_SCALAR_FIELD(number);
1640  COMPARE_NODE_FIELD(order_family);
1641  COMPARE_NODE_FIELD(class_args);
1642  COMPARE_NODE_FIELD(storedtype);
1643 
1644  return true;
1645 }
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateOpClassStmt()

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

Definition at line 1622 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1623 {
1624  COMPARE_NODE_FIELD(opclassname);
1625  COMPARE_NODE_FIELD(opfamilyname);
1626  COMPARE_STRING_FIELD(amname);
1627  COMPARE_NODE_FIELD(datatype);
1628  COMPARE_NODE_FIELD(items);
1629  COMPARE_SCALAR_FIELD(isDefault);
1630 
1631  return true;
1632 }
#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 1648 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1649 {
1650  COMPARE_NODE_FIELD(opfamilyname);
1651  COMPARE_STRING_FIELD(amname);
1652 
1653  return true;
1654 }
#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 2061 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2062 {
2063  COMPARE_SCALAR_FIELD(replace);
2064  COMPARE_STRING_FIELD(plname);
2065  COMPARE_NODE_FIELD(plhandler);
2066  COMPARE_NODE_FIELD(plinline);
2067  COMPARE_NODE_FIELD(plvalidator);
2068  COMPARE_SCALAR_FIELD(pltrusted);
2069 
2070  return true;
2071 }
#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 2308 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2249 {
2250  COMPARE_STRING_FIELD(pubname);
2252  COMPARE_NODE_FIELD(tables);
2253  COMPARE_SCALAR_FIELD(for_all_tables);
2254 
2255  return true;
2256 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateRangeStmt()

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

Definition at line 1568 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateRoleStmt()

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

Definition at line 2074 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2075 {
2076  COMPARE_SCALAR_FIELD(stmt_type);
2077  COMPARE_STRING_FIELD(role);
2079 
2080  return true;
2081 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateSchemaStmt()

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

Definition at line 2143 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2144 {
2145  COMPARE_STRING_FIELD(schemaname);
2146  COMPARE_NODE_FIELD(authrole);
2147  COMPARE_NODE_FIELD(schemaElts);
2148  COMPARE_SCALAR_FIELD(if_not_exists);
2149 
2150  return true;
2151 }
#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 1774 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1775 {
1776  COMPARE_NODE_FIELD(sequence);
1778  COMPARE_SCALAR_FIELD(ownerId);
1779  COMPARE_SCALAR_FIELD(for_identity);
1780  COMPARE_SCALAR_FIELD(if_not_exists);
1781 
1782  return true;
1783 }
#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 1366 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1367 {
1368  COMPARE_NODE_FIELD(defnames);
1369  COMPARE_NODE_FIELD(stat_types);
1370  COMPARE_NODE_FIELD(exprs);
1371  COMPARE_NODE_FIELD(relations);
1372  COMPARE_STRING_FIELD(stxcomment);
1373  COMPARE_SCALAR_FIELD(if_not_exists);
1374 
1375  return true;
1376 }
#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 1240 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

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

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2274 {
2276  COMPARE_STRING_FIELD(conninfo);
2277  COMPARE_NODE_FIELD(publication);
2279 
2280  return true;
2281 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
NameData subname
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateTableAsStmt()

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

Definition at line 1734 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1735 {
1736  COMPARE_NODE_FIELD(query);
1737  COMPARE_NODE_FIELD(into);
1738  COMPARE_SCALAR_FIELD(objtype);
1739  COMPARE_SCALAR_FIELD(is_select_into);
1740  COMPARE_SCALAR_FIELD(if_not_exists);
1741 
1742  return true;
1743 }
#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 1824 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1825 {
1826  COMPARE_STRING_FIELD(tablespacename);
1827  COMPARE_NODE_FIELD(owner);
1828  COMPARE_STRING_FIELD(location);
1830 
1831  return true;
1832 }
#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 1998 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1999 {
2000  COMPARE_SCALAR_FIELD(replace);
2001  COMPARE_NODE_FIELD(type_name);
2002  COMPARE_STRING_FIELD(lang);
2003  COMPARE_NODE_FIELD(fromsql);
2004  COMPARE_NODE_FIELD(tosql);
2005 
2006  return true;
2007 }
#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 2020 of file equalfuncs.c.

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

Referenced by equal().

2021 {
2022  COMPARE_STRING_FIELD(trigname);
2023  COMPARE_NODE_FIELD(relation);
2024  COMPARE_NODE_FIELD(funcname);
2026  COMPARE_SCALAR_FIELD(row);
2027  COMPARE_SCALAR_FIELD(timing);
2028  COMPARE_SCALAR_FIELD(events);
2029  COMPARE_NODE_FIELD(columns);
2030  COMPARE_NODE_FIELD(whenClause);
2031  COMPARE_SCALAR_FIELD(isconstraint);
2032  COMPARE_NODE_FIELD(transitionRels);
2033  COMPARE_SCALAR_FIELD(deferrable);
2034  COMPARE_SCALAR_FIELD(initdeferred);
2035  COMPARE_NODE_FIELD(constrrel);
2036 
2037  return true;
2038 }
#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 1942 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1943 {
1945  COMPARE_STRING_FIELD(servername);
1946  COMPARE_SCALAR_FIELD(if_not_exists);
1948 
1949  return true;
1950 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCurrentOfExpr()

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

Definition at line 732 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalDeallocateStmt()

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

Definition at line 2197 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2198 {
2200 
2201  return true;
2202 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561

◆ _equalDeclareCursorStmt()

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

Definition at line 1188 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1189 {
1190  COMPARE_STRING_FIELD(portalname);
1192  COMPARE_NODE_FIELD(query);
1193 
1194  return true;
1195 }
#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 2646 of file equalfuncs.c.

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

Referenced by equal().

2647 {
2648  COMPARE_STRING_FIELD(defnamespace);
2649  COMPARE_STRING_FIELD(defname);
2651  COMPARE_SCALAR_FIELD(defaction);
2652  COMPARE_LOCATION_FIELD(location);
2653 
2654  return true;
2655 }
#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 1268 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalDiscardStmt()

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

Definition at line 1816 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1817 {
1818  COMPARE_SCALAR_FIELD(target);
1819 
1820  return true;
1821 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

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

Definition at line 341 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalDoStmt()

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

Definition at line 1423 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1424 {
1426 
1427  return true;
1428 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1695 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

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

◆ _equalDropOwnedStmt()

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

Definition at line 2205 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2206 {
2207  COMPARE_NODE_FIELD(roles);
2208  COMPARE_SCALAR_FIELD(behavior);
2209 
2210  return true;
2211 }
#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 2104 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2105 {
2106  COMPARE_NODE_FIELD(roles);
2107  COMPARE_SCALAR_FIELD(missing_ok);
2108 
2109  return true;
2110 }
#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 1282 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2299 {
2301  COMPARE_SCALAR_FIELD(missing_ok);
2302  COMPARE_SCALAR_FIELD(behavior);
2303 
2304  return true;
2305 }
#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 1835 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1836 {
1837  COMPARE_STRING_FIELD(tablespacename);
1838  COMPARE_SCALAR_FIELD(missing_ok);
1839 
1840  return true;
1841 }
#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 1963 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1964 {
1966  COMPARE_STRING_FIELD(servername);
1967  COMPARE_SCALAR_FIELD(missing_ok);
1968 
1969  return true;
1970 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalExecuteStmt()

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

Definition at line 2188 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

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

◆ _equalExplainStmt()

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

Definition at line 1725 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1726 {
1727  COMPARE_NODE_FIELD(query);
1729 
1730  return true;
1731 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 931 of file equalfuncs.c.

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

Referenced by equal().

932 {
933  const ExtensibleNodeMethods *methods;
934 
935  COMPARE_STRING_FIELD(extnodename);
936 
937  /* At this point, we know extnodename is the same for both nodes. */
938  methods = GetExtensibleNodeMethods(a->extnodename, false);
939 
940  /* compare the private fields */
941  if (!methods->nodeEqual(a, b))
942  return false;
943 
944  return true;
945 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * extnodename
Definition: extensible.h:35
bool(* nodeEqual)(const struct ExtensibleNode *a, const struct ExtensibleNode *b)
Definition: extensible.h:66
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125

◆ _equalFetchStmt()

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

Definition at line 1325 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1326 {
1327  COMPARE_SCALAR_FIELD(direction);
1328  COMPARE_SCALAR_FIELD(howMany);
1329  COMPARE_STRING_FIELD(portalname);
1330  COMPARE_SCALAR_FIELD(ismove);
1331 
1332  return true;
1333 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFieldSelect()

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

Definition at line 471 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalFieldStore()

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

Definition at line 483 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalFromExpr()

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

Definition at line 798 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalFuncCall()

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

Definition at line 2374 of file equalfuncs.c.

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

Referenced by equal().

2375 {
2376  COMPARE_NODE_FIELD(funcname);
2378  COMPARE_NODE_FIELD(agg_order);
2379  COMPARE_NODE_FIELD(agg_filter);
2380  COMPARE_SCALAR_FIELD(agg_within_group);
2381  COMPARE_SCALAR_FIELD(agg_star);
2382  COMPARE_SCALAR_FIELD(agg_distinct);
2383  COMPARE_SCALAR_FIELD(func_variadic);
2384  COMPARE_NODE_FIELD(over);
2385  COMPARE_LOCATION_FIELD(location);
2386 
2387  return true;
2388 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFuncExpr()

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

Definition at line 288 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalFunctionParameter()

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

Definition at line 1402 of file equalfuncs.c.

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

Referenced by equal().

1403 {
1405  COMPARE_NODE_FIELD(argType);
1407  COMPARE_NODE_FIELD(defexpr);
1408 
1409  return true;
1410 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGrantRoleStmt()

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

Definition at line 1166 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and grantor.

Referenced by equal().

1167 {
1168  COMPARE_NODE_FIELD(granted_roles);
1169  COMPARE_NODE_FIELD(grantee_roles);
1170  COMPARE_SCALAR_FIELD(is_grant);
1171  COMPARE_SCALAR_FIELD(admin_opt);
1173  COMPARE_SCALAR_FIELD(behavior);
1174 
1175  return true;
1176 }
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 1132 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1133 {
1134  COMPARE_SCALAR_FIELD(is_grant);
1135  COMPARE_SCALAR_FIELD(targtype);
1136  COMPARE_SCALAR_FIELD(objtype);
1137  COMPARE_NODE_FIELD(objects);
1138  COMPARE_NODE_FIELD(privileges);
1139  COMPARE_NODE_FIELD(grantees);
1140  COMPARE_SCALAR_FIELD(grant_option);
1141  COMPARE_SCALAR_FIELD(behavior);
1142 
1143  return true;
1144 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGroupingFunc()

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

Definition at line 241 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalGroupingSet()

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

Definition at line 2759 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2760 {
2761  COMPARE_SCALAR_FIELD(kind);
2762  COMPARE_NODE_FIELD(content);
2763  COMPARE_LOCATION_FIELD(location);
2764 
2765  return true;
2766 }
#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 1985 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1986 {
1987  COMPARE_STRING_FIELD(server_name);
1988  COMPARE_STRING_FIELD(remote_schema);
1989  COMPARE_STRING_FIELD(local_schema);
1990  COMPARE_SCALAR_FIELD(list_type);
1991  COMPARE_NODE_FIELD(table_list);
1993 
1994  return true;
1995 }
#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 2572 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2573 {
2575  COMPARE_NODE_FIELD(expr);
2576  COMPARE_STRING_FIELD(indexcolname);
2577  COMPARE_NODE_FIELD(collation);
2578  COMPARE_NODE_FIELD(opclass);
2579  COMPARE_NODE_FIELD(opclassopts);
2580  COMPARE_SCALAR_FIELD(ordering);
2581  COMPARE_SCALAR_FIELD(nulls_ordering);
2582 
2583  return true;
2584 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIndexStmt()

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

Definition at line 1336 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2812 {
2813  COMPARE_NODE_FIELD(indexElems);
2814  COMPARE_NODE_FIELD(whereClause);
2815  COMPARE_STRING_FIELD(conname);
2816  COMPARE_LOCATION_FIELD(location);
2817 
2818  return true;
2819 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalInferenceElem()

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

Definition at line 751 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalInsertStmt()

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

Definition at line 1006 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalIntoClause()

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

Definition at line 141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalJoinExpr()

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

Definition at line 783 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalList()

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

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

2944 {
2945  const ListCell *item_a;
2946  const ListCell *item_b;
2947 
2948  /*
2949  * Try to reject by simple scalar checks before grovelling through all the
2950  * list elements...
2951  */
2953  COMPARE_SCALAR_FIELD(length);
2954 
2955  /*
2956  * We place the switch outside the loop for the sake of efficiency; this
2957  * may not be worth doing...
2958  */
2959  switch (a->type)
2960  {
2961  case T_List:
2962  forboth(item_a, a, item_b, b)
2963  {
2964  if (!equal(lfirst(item_a), lfirst(item_b)))
2965  return false;
2966  }
2967  break;
2968  case T_IntList:
2969  forboth(item_a, a, item_b, b)
2970  {
2971  if (lfirst_int(item_a) != lfirst_int(item_b))
2972  return false;
2973  }
2974  break;
2975  case T_OidList:
2976  forboth(item_a, a, item_b, b)
2977  {
2978  if (lfirst_oid(item_a) != lfirst_oid(item_b))
2979  return false;
2980  }
2981  break;
2982  default:
2983  elog(ERROR, "unrecognized list node type: %d",
2984  (int) a->type);
2985  return false; /* keep compiler quiet */
2986  }
2987 
2988  /*
2989  * If we got here, we should have run out of elements of both lists
2990  */
2991  Assert(item_a == NULL);
2992  Assert(item_b == NULL);
2993 
2994  return true;
2995 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:434
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3032
#define ERROR
Definition: elog.h:43
#define lfirst_int(lc)
Definition: pg_list.h:170
Definition: nodes.h:299
#define Assert(condition)
Definition: c.h:746
#define lfirst(lc)
Definition: pg_list.h:169
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:214
#define lfirst_oid(lc)
Definition: pg_list.h:171
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalListenStmt()

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

Definition at line 1522 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalLoadStmt()

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

Definition at line 1603 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1604 {
1606 
1607  return true;
1608 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
static char * filename
Definition: pg_dumpall.c:91

◆ _equalLockingClause()

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

Definition at line 2658 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2659 {
2660  COMPARE_NODE_FIELD(lockedRels);
2661  COMPARE_SCALAR_FIELD(strength);
2662  COMPARE_SCALAR_FIELD(waitPolicy);
2663 
2664  return true;
2665 }
#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 2113 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2114 {
2115  COMPARE_NODE_FIELD(relations);
2117  COMPARE_SCALAR_FIELD(nowait);
2118 
2119  return true;
2120 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMinMaxExpr()

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

Definition at line 636 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalMultiAssignRef()

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

Definition at line 2436 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2437 {
2438  COMPARE_NODE_FIELD(source);
2439  COMPARE_SCALAR_FIELD(colno);
2440  COMPARE_SCALAR_FIELD(ncolumns);
2441 
2442  return true;
2443 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNamedArgExpr()

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

Definition at line 304 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalNextValueExpr()

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

Definition at line 742 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalNotifyStmt()

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

Definition at line 1513 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1514 {
1515  COMPARE_STRING_FIELD(conditionname);
1516  COMPARE_STRING_FIELD(payload);
1517 
1518  return true;
1519 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

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

Definition at line 367 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalNullTest()

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

Definition at line 676 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalObjectWithArgs()

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

Definition at line 1147 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

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

Referenced by equal().

2823 {
2825  COMPARE_NODE_FIELD(infer);
2826  COMPARE_NODE_FIELD(targetList);
2827  COMPARE_NODE_FIELD(whereClause);
2828  COMPARE_LOCATION_FIELD(location);
2829 
2830  return true;
2831 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOnConflictExpr()

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

Definition at line 807 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalOpExpr()

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

Definition at line 315 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalParam()

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

Definition at line 204 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalParamRef()

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

Definition at line 2355 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2356 {
2357  COMPARE_SCALAR_FIELD(number);
2358  COMPARE_LOCATION_FIELD(location);
2359 
2360  return true;
2361 }
#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 2905 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2906 {
2907  COMPARE_SCALAR_FIELD(strategy);
2908  COMPARE_SCALAR_FIELD(is_default);
2909  COMPARE_SCALAR_FIELD(modulus);
2910  COMPARE_SCALAR_FIELD(remainder);
2911  COMPARE_NODE_FIELD(listdatums);
2912  COMPARE_NODE_FIELD(lowerdatums);
2913  COMPARE_NODE_FIELD(upperdatums);
2914  COMPARE_LOCATION_FIELD(location);
2915 
2916  return true;
2917 }
#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 2930 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and name.

Referenced by equal().

2931 {
2933  COMPARE_NODE_FIELD(bound);
2934 
2935  return true;
2936 }
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionElem()

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

Definition at line 2883 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2884 {
2886  COMPARE_NODE_FIELD(expr);
2887  COMPARE_NODE_FIELD(collation);
2888  COMPARE_NODE_FIELD(opclass);
2889  COMPARE_LOCATION_FIELD(location);
2890 
2891  return true;
2892 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionRangeDatum()

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

Definition at line 2920 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

2921 {
2922  COMPARE_SCALAR_FIELD(kind);
2924  COMPARE_LOCATION_FIELD(location);
2925 
2926  return true;
2927 }
static struct @143 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 2895 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2896 {
2897  COMPARE_STRING_FIELD(strategy);
2898  COMPARE_NODE_FIELD(partParams);
2899  COMPARE_LOCATION_FIELD(location);
2900 
2901  return true;
2902 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPathKey()

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

Definition at line 826 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPlaceHolderInfo()

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

Definition at line 915 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPlaceHolderVar()

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

Definition at line 857 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPrepareStmt()

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

Definition at line 2178 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2179 {
2181  COMPARE_NODE_FIELD(argtypes);
2182  COMPARE_NODE_FIELD(query);
2183 
2184  return true;
2185 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalQuery()

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

Definition at line 952 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2519 {
2520  COMPARE_SCALAR_FIELD(lateral);
2521  COMPARE_SCALAR_FIELD(ordinality);
2522  COMPARE_SCALAR_FIELD(is_rowsfrom);
2524  COMPARE_NODE_FIELD(alias);
2525  COMPARE_NODE_FIELD(coldeflist);
2526 
2527  return true;
2528 }
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 2508 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2509 {
2510  COMPARE_SCALAR_FIELD(lateral);
2511  COMPARE_NODE_FIELD(subquery);
2512  COMPARE_NODE_FIELD(alias);
2513 
2514  return true;
2515 }
#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 2543 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2544 {
2545  COMPARE_SCALAR_FIELD(lateral);
2546  COMPARE_NODE_FIELD(docexpr);
2547  COMPARE_NODE_FIELD(rowexpr);
2548  COMPARE_NODE_FIELD(namespaces);
2549  COMPARE_NODE_FIELD(columns);
2550  COMPARE_NODE_FIELD(alias);
2551  COMPARE_LOCATION_FIELD(location);
2552 
2553  return true;
2554 }
#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 2557 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2558 {
2559  COMPARE_STRING_FIELD(colname);
2560  COMPARE_NODE_FIELD(typeName);
2561  COMPARE_SCALAR_FIELD(for_ordinality);
2562  COMPARE_SCALAR_FIELD(is_not_null);
2563  COMPARE_NODE_FIELD(colexpr);
2564  COMPARE_NODE_FIELD(coldefexpr);
2565  COMPARE_LOCATION_FIELD(location);
2566 
2567  return true;
2568 }
#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 2531 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2532 {
2533  COMPARE_NODE_FIELD(relation);
2534  COMPARE_NODE_FIELD(method);
2536  COMPARE_NODE_FIELD(repeatable);
2537  COMPARE_LOCATION_FIELD(location);
2538 
2539  return true;
2540 }
#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 2668 of file equalfuncs.c.

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

Referenced by equal().

2669 {
2670  COMPARE_SCALAR_FIELD(rtekind);
2671  COMPARE_SCALAR_FIELD(relid);
2672  COMPARE_SCALAR_FIELD(relkind);
2673  COMPARE_SCALAR_FIELD(rellockmode);
2674  COMPARE_NODE_FIELD(tablesample);
2675  COMPARE_NODE_FIELD(subquery);
2676  COMPARE_SCALAR_FIELD(security_barrier);
2677  COMPARE_SCALAR_FIELD(jointype);
2678  COMPARE_SCALAR_FIELD(joinmergedcols);
2679  COMPARE_NODE_FIELD(joinaliasvars);
2680  COMPARE_NODE_FIELD(joinleftcols);
2681  COMPARE_NODE_FIELD(joinrightcols);
2683  COMPARE_SCALAR_FIELD(funcordinality);
2684  COMPARE_NODE_FIELD(tablefunc);
2685  COMPARE_NODE_FIELD(values_lists);
2686  COMPARE_STRING_FIELD(ctename);
2687  COMPARE_SCALAR_FIELD(ctelevelsup);
2688  COMPARE_SCALAR_FIELD(self_reference);
2689  COMPARE_NODE_FIELD(coltypes);
2690  COMPARE_NODE_FIELD(coltypmods);
2691  COMPARE_NODE_FIELD(colcollations);
2692  COMPARE_STRING_FIELD(enrname);
2693  COMPARE_SCALAR_FIELD(enrtuples);
2694  COMPARE_NODE_FIELD(alias);
2695  COMPARE_NODE_FIELD(eref);
2696  COMPARE_SCALAR_FIELD(lateral);
2697  COMPARE_SCALAR_FIELD(inh);
2698  COMPARE_SCALAR_FIELD(inFromCl);
2699  COMPARE_SCALAR_FIELD(requiredPerms);
2700  COMPARE_SCALAR_FIELD(checkAsUser);
2701  COMPARE_BITMAPSET_FIELD(selectedCols);
2702  COMPARE_BITMAPSET_FIELD(insertedCols);
2703  COMPARE_BITMAPSET_FIELD(updatedCols);
2704  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2705  COMPARE_NODE_FIELD(securityQuals);
2706 
2707  return true;
2708 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
static const struct fns functions
Definition: regcomp.c: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 2711 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2712 {
2713  COMPARE_NODE_FIELD(funcexpr);
2714  COMPARE_SCALAR_FIELD(funccolcount);
2715  COMPARE_NODE_FIELD(funccolnames);
2716  COMPARE_NODE_FIELD(funccoltypes);
2717  COMPARE_NODE_FIELD(funccoltypmods);
2718  COMPARE_NODE_FIELD(funccolcollations);
2719  COMPARE_BITMAPSET_FIELD(funcparams);
2720 
2721  return true;
2722 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTblRef()

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

Definition at line 775 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRangeVar()

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

Definition at line 107 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalRawStmt()

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

Definition at line 996 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalReassignOwnedStmt()

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

Definition at line 2214 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2215 {
2216  COMPARE_NODE_FIELD(roles);
2217  COMPARE_NODE_FIELD(newrole);
2218 
2219  return true;
2220 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1746 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1747 {
1748  COMPARE_SCALAR_FIELD(concurrent);
1749  COMPARE_SCALAR_FIELD(skipData);
1750  COMPARE_NODE_FIELD(relation);
1751 
1752  return true;
1753 }
#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 2132 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2133 {
2134  COMPARE_SCALAR_FIELD(kind);
2135  COMPARE_NODE_FIELD(relation);
2138 
2139  return true;
2140 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRelabelType()

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

Definition at line 494 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalRenameStmt()

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

Definition at line 1431 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1432 {
1433  COMPARE_SCALAR_FIELD(renameType);
1434  COMPARE_SCALAR_FIELD(relationType);
1435  COMPARE_NODE_FIELD(relation);
1436  COMPARE_NODE_FIELD(object);
1438  COMPARE_STRING_FIELD(newname);
1439  COMPARE_SCALAR_FIELD(behavior);
1440  COMPARE_SCALAR_FIELD(missing_ok);
1441 
1442  return true;
1443 }
#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 1756 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1757 {
1758  COMPARE_SCALAR_FIELD(identity_type);
1760 
1761  return true;
1762 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:561
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalResTarget()

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

Definition at line 2425 of file equalfuncs.c.

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

Referenced by equal().

2426 {
2428  COMPARE_NODE_FIELD(indirection);
2430  COMPARE_LOCATION_FIELD(location);
2431 
2432  return true;
2433 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:561
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664

◆ _equalRestrictInfo()

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

Definition at line 838 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRoleSpec()

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

Definition at line 2863 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2864 {
2865  COMPARE_SCALAR_FIELD(roletype);
2866  COMPARE_STRING_FIELD(rolename);
2867  COMPARE_LOCATION_FIELD(location);
2868 
2869  return true;
2870 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRowCompareExpr()

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

Definition at line 612 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalRowExpr()

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

Definition at line 600 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalRowMarkClause()

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

Definition at line 2790 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

2791 {
2792  COMPARE_SCALAR_FIELD(rti);
2793  COMPARE_SCALAR_FIELD(strength);
2794  COMPARE_SCALAR_FIELD(waitPolicy);
2795  COMPARE_SCALAR_FIELD(pushedDown);
2796 
2797  return true;
2798 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRuleStmt()

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

Definition at line 1499 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1500 {
1501  COMPARE_NODE_FIELD(relation);
1502  COMPARE_STRING_FIELD(rulename);
1503  COMPARE_NODE_FIELD(whereClause);
1504  COMPARE_SCALAR_FIELD(event);
1505  COMPARE_SCALAR_FIELD(instead);
1506  COMPARE_NODE_FIELD(actions);
1507  COMPARE_SCALAR_FIELD(replace);
1508 
1509  return true;
1510 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalScalarArrayOpExpr()

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

Definition at line 393 of file equalfuncs.c.

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

Referenced by equal().

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