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 _equalReturnStmt (const ReturnStmt *a, const ReturnStmt *b)
 
static bool _equalPLAssignStmt (const PLAssignStmt *a, const PLAssignStmt *b)
 
static bool _equalAlterTableStmt (const AlterTableStmt *a, const AlterTableStmt *b)
 
static bool _equalAlterTableCmd (const AlterTableCmd *a, const AlterTableCmd *b)
 
static bool _equalAlterCollationStmt (const AlterCollationStmt *a, const AlterCollationStmt *b)
 
static bool _equalAlterDomainStmt (const AlterDomainStmt *a, const AlterDomainStmt *b)
 
static bool _equalGrantStmt (const GrantStmt *a, const GrantStmt *b)
 
static bool _equalObjectWithArgs (const ObjectWithArgs *a, const ObjectWithArgs *b)
 
static bool _equalAccessPriv (const AccessPriv *a, const AccessPriv *b)
 
static bool _equalGrantRoleStmt (const GrantRoleStmt *a, const GrantRoleStmt *b)
 
static bool _equalAlterDefaultPrivilegesStmt (const AlterDefaultPrivilegesStmt *a, const AlterDefaultPrivilegesStmt *b)
 
static bool _equalDeclareCursorStmt (const DeclareCursorStmt *a, const DeclareCursorStmt *b)
 
static bool _equalClosePortalStmt (const ClosePortalStmt *a, const ClosePortalStmt *b)
 
static bool _equalCallStmt (const CallStmt *a, const CallStmt *b)
 
static bool _equalClusterStmt (const ClusterStmt *a, const ClusterStmt *b)
 
static bool _equalCopyStmt (const CopyStmt *a, const CopyStmt *b)
 
static bool _equalCreateStmt (const CreateStmt *a, const CreateStmt *b)
 
static bool _equalTableLikeClause (const TableLikeClause *a, const TableLikeClause *b)
 
static bool _equalDefineStmt (const DefineStmt *a, const DefineStmt *b)
 
static bool _equalDropStmt (const DropStmt *a, const DropStmt *b)
 
static bool _equalTruncateStmt (const TruncateStmt *a, const TruncateStmt *b)
 
static bool _equalCommentStmt (const CommentStmt *a, const CommentStmt *b)
 
static bool _equalSecLabelStmt (const SecLabelStmt *a, const SecLabelStmt *b)
 
static bool _equalFetchStmt (const FetchStmt *a, const FetchStmt *b)
 
static bool _equalIndexStmt (const IndexStmt *a, const IndexStmt *b)
 
static bool _equalCreateStatsStmt (const CreateStatsStmt *a, const CreateStatsStmt *b)
 
static bool _equalAlterStatsStmt (const AlterStatsStmt *a, const AlterStatsStmt *b)
 
static bool _equalCreateFunctionStmt (const CreateFunctionStmt *a, const CreateFunctionStmt *b)
 
static bool _equalFunctionParameter (const FunctionParameter *a, const FunctionParameter *b)
 
static bool _equalAlterFunctionStmt (const AlterFunctionStmt *a, const AlterFunctionStmt *b)
 
static bool _equalDoStmt (const DoStmt *a, const DoStmt *b)
 
static bool _equalRenameStmt (const RenameStmt *a, const RenameStmt *b)
 
static bool _equalAlterObjectDependsStmt (const AlterObjectDependsStmt *a, const AlterObjectDependsStmt *b)
 
static bool _equalAlterObjectSchemaStmt (const AlterObjectSchemaStmt *a, const AlterObjectSchemaStmt *b)
 
static bool _equalAlterOwnerStmt (const AlterOwnerStmt *a, const AlterOwnerStmt *b)
 
static bool _equalAlterOperatorStmt (const AlterOperatorStmt *a, const AlterOperatorStmt *b)
 
static bool _equalAlterTypeStmt (const AlterTypeStmt *a, const AlterTypeStmt *b)
 
static bool _equalRuleStmt (const RuleStmt *a, const RuleStmt *b)
 
static bool _equalNotifyStmt (const NotifyStmt *a, const NotifyStmt *b)
 
static bool _equalListenStmt (const ListenStmt *a, const ListenStmt *b)
 
static bool _equalUnlistenStmt (const UnlistenStmt *a, const UnlistenStmt *b)
 
static bool _equalTransactionStmt (const TransactionStmt *a, const TransactionStmt *b)
 
static bool _equalCompositeTypeStmt (const CompositeTypeStmt *a, const CompositeTypeStmt *b)
 
static bool _equalCreateEnumStmt (const CreateEnumStmt *a, const CreateEnumStmt *b)
 
static bool _equalCreateRangeStmt (const CreateRangeStmt *a, const CreateRangeStmt *b)
 
static bool _equalAlterEnumStmt (const AlterEnumStmt *a, const AlterEnumStmt *b)
 
static bool _equalViewStmt (const ViewStmt *a, const ViewStmt *b)
 
static bool _equalLoadStmt (const LoadStmt *a, const LoadStmt *b)
 
static bool _equalCreateDomainStmt (const CreateDomainStmt *a, const CreateDomainStmt *b)
 
static bool _equalCreateOpClassStmt (const CreateOpClassStmt *a, const CreateOpClassStmt *b)
 
static bool _equalCreateOpClassItem (const CreateOpClassItem *a, const CreateOpClassItem *b)
 
static bool _equalCreateOpFamilyStmt (const CreateOpFamilyStmt *a, const CreateOpFamilyStmt *b)
 
static bool _equalAlterOpFamilyStmt (const AlterOpFamilyStmt *a, const AlterOpFamilyStmt *b)
 
static bool _equalCreatedbStmt (const CreatedbStmt *a, const CreatedbStmt *b)
 
static bool _equalAlterDatabaseStmt (const AlterDatabaseStmt *a, const AlterDatabaseStmt *b)
 
static bool _equalAlterDatabaseSetStmt (const AlterDatabaseSetStmt *a, const AlterDatabaseSetStmt *b)
 
static bool _equalDropdbStmt (const DropdbStmt *a, const DropdbStmt *b)
 
static bool _equalVacuumStmt (const VacuumStmt *a, const VacuumStmt *b)
 
static bool _equalVacuumRelation (const VacuumRelation *a, const VacuumRelation *b)
 
static bool _equalExplainStmt (const ExplainStmt *a, const ExplainStmt *b)
 
static bool _equalCreateTableAsStmt (const CreateTableAsStmt *a, const CreateTableAsStmt *b)
 
static bool _equalRefreshMatViewStmt (const RefreshMatViewStmt *a, const RefreshMatViewStmt *b)
 
static bool _equalReplicaIdentityStmt (const ReplicaIdentityStmt *a, const ReplicaIdentityStmt *b)
 
static bool _equalAlterSystemStmt (const AlterSystemStmt *a, const AlterSystemStmt *b)
 
static bool _equalCreateSeqStmt (const CreateSeqStmt *a, const CreateSeqStmt *b)
 
static bool _equalAlterSeqStmt (const AlterSeqStmt *a, const AlterSeqStmt *b)
 
static bool _equalVariableSetStmt (const VariableSetStmt *a, const VariableSetStmt *b)
 
static bool _equalVariableShowStmt (const VariableShowStmt *a, const VariableShowStmt *b)
 
static bool _equalDiscardStmt (const DiscardStmt *a, const DiscardStmt *b)
 
static bool _equalCreateTableSpaceStmt (const CreateTableSpaceStmt *a, const CreateTableSpaceStmt *b)
 
static bool _equalDropTableSpaceStmt (const DropTableSpaceStmt *a, const DropTableSpaceStmt *b)
 
static bool _equalAlterTableSpaceOptionsStmt (const AlterTableSpaceOptionsStmt *a, const AlterTableSpaceOptionsStmt *b)
 
static bool _equalAlterTableMoveAllStmt (const AlterTableMoveAllStmt *a, const AlterTableMoveAllStmt *b)
 
static bool _equalCreateExtensionStmt (const CreateExtensionStmt *a, const CreateExtensionStmt *b)
 
static bool _equalAlterExtensionStmt (const AlterExtensionStmt *a, const AlterExtensionStmt *b)
 
static bool _equalAlterExtensionContentsStmt (const AlterExtensionContentsStmt *a, const AlterExtensionContentsStmt *b)
 
static bool _equalCreateFdwStmt (const CreateFdwStmt *a, const CreateFdwStmt *b)
 
static bool _equalAlterFdwStmt (const AlterFdwStmt *a, const AlterFdwStmt *b)
 
static bool _equalCreateForeignServerStmt (const CreateForeignServerStmt *a, const CreateForeignServerStmt *b)
 
static bool _equalAlterForeignServerStmt (const AlterForeignServerStmt *a, const AlterForeignServerStmt *b)
 
static bool _equalCreateUserMappingStmt (const CreateUserMappingStmt *a, const CreateUserMappingStmt *b)
 
static bool _equalAlterUserMappingStmt (const AlterUserMappingStmt *a, const AlterUserMappingStmt *b)
 
static bool _equalDropUserMappingStmt (const DropUserMappingStmt *a, const DropUserMappingStmt *b)
 
static bool _equalCreateForeignTableStmt (const CreateForeignTableStmt *a, const CreateForeignTableStmt *b)
 
static bool _equalImportForeignSchemaStmt (const ImportForeignSchemaStmt *a, const ImportForeignSchemaStmt *b)
 
static bool _equalCreateTransformStmt (const CreateTransformStmt *a, const CreateTransformStmt *b)
 
static bool _equalCreateAmStmt (const CreateAmStmt *a, const CreateAmStmt *b)
 
static bool _equalCreateTrigStmt (const CreateTrigStmt *a, const CreateTrigStmt *b)
 
static bool _equalCreateEventTrigStmt (const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
 
static bool _equalAlterEventTrigStmt (const AlterEventTrigStmt *a, const AlterEventTrigStmt *b)
 
static bool _equalCreatePLangStmt (const CreatePLangStmt *a, const CreatePLangStmt *b)
 
static bool _equalCreateRoleStmt (const CreateRoleStmt *a, const CreateRoleStmt *b)
 
static bool _equalAlterRoleStmt (const AlterRoleStmt *a, const AlterRoleStmt *b)
 
static bool _equalAlterRoleSetStmt (const AlterRoleSetStmt *a, const AlterRoleSetStmt *b)
 
static bool _equalDropRoleStmt (const DropRoleStmt *a, const DropRoleStmt *b)
 
static bool _equalLockStmt (const LockStmt *a, const LockStmt *b)
 
static bool _equalConstraintsSetStmt (const ConstraintsSetStmt *a, const ConstraintsSetStmt *b)
 
static bool _equalReindexStmt (const ReindexStmt *a, const ReindexStmt *b)
 
static bool _equalCreateSchemaStmt (const CreateSchemaStmt *a, const CreateSchemaStmt *b)
 
static bool _equalCreateConversionStmt (const CreateConversionStmt *a, const CreateConversionStmt *b)
 
static bool _equalCreateCastStmt (const CreateCastStmt *a, const CreateCastStmt *b)
 
static bool _equalPrepareStmt (const PrepareStmt *a, const PrepareStmt *b)
 
static bool _equalExecuteStmt (const ExecuteStmt *a, const ExecuteStmt *b)
 
static bool _equalDeallocateStmt (const DeallocateStmt *a, const DeallocateStmt *b)
 
static bool _equalDropOwnedStmt (const DropOwnedStmt *a, const DropOwnedStmt *b)
 
static bool _equalReassignOwnedStmt (const ReassignOwnedStmt *a, const ReassignOwnedStmt *b)
 
static bool _equalAlterTSDictionaryStmt (const AlterTSDictionaryStmt *a, const AlterTSDictionaryStmt *b)
 
static bool _equalAlterTSConfigurationStmt (const AlterTSConfigurationStmt *a, const AlterTSConfigurationStmt *b)
 
static bool _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 _equalStatsElem (const StatsElem *a, const StatsElem *b)
 
static bool _equalColumnDef (const ColumnDef *a, const ColumnDef *b)
 
static bool _equalConstraint (const Constraint *a, const Constraint *b)
 
static bool _equalDefElem (const DefElem *a, const DefElem *b)
 
static bool _equalLockingClause (const LockingClause *a, const LockingClause *b)
 
static bool _equalRangeTblEntry (const RangeTblEntry *a, const RangeTblEntry *b)
 
static bool _equalRangeTblFunction (const RangeTblFunction *a, const RangeTblFunction *b)
 
static bool _equalTableSampleClause (const TableSampleClause *a, const TableSampleClause *b)
 
static bool _equalWithCheckOption (const WithCheckOption *a, const WithCheckOption *b)
 
static bool _equalSortGroupClause (const SortGroupClause *a, const SortGroupClause *b)
 
static bool _equalGroupingSet (const GroupingSet *a, const GroupingSet *b)
 
static bool _equalWindowClause (const WindowClause *a, const WindowClause *b)
 
static bool _equalRowMarkClause (const RowMarkClause *a, const RowMarkClause *b)
 
static bool _equalWithClause (const WithClause *a, const WithClause *b)
 
static bool _equalInferClause (const InferClause *a, const InferClause *b)
 
static bool _equalOnConflictClause (const OnConflictClause *a, const OnConflictClause *b)
 
static bool _equalCTESearchClause (const CTESearchClause *a, const CTESearchClause *b)
 
static bool _equalCTECycleClause (const CTECycleClause *a, const CTECycleClause *b)
 
static bool _equalCommonTableExpr (const CommonTableExpr *a, const CommonTableExpr *b)
 
static bool _equalXmlSerialize (const XmlSerialize *a, const XmlSerialize *b)
 
static bool _equalRoleSpec (const RoleSpec *a, const RoleSpec *b)
 
static bool _equalTriggerTransition (const TriggerTransition *a, const TriggerTransition *b)
 
static bool _equalPartitionElem (const PartitionElem *a, const PartitionElem *b)
 
static bool _equalPartitionSpec (const PartitionSpec *a, const PartitionSpec *b)
 
static bool _equalPartitionBoundSpec (const PartitionBoundSpec *a, const PartitionBoundSpec *b)
 
static bool _equalPartitionRangeDatum (const PartitionRangeDatum *a, const PartitionRangeDatum *b)
 
static bool _equalPartitionCmd (const PartitionCmd *a, const PartitionCmd *b)
 
static bool _equalList (const List *a, const List *b)
 
static bool _equalValue (const Value *a, const Value *b)
 
bool equal (const void *a, const void *b)
 

Macro Definition Documentation

◆ COMPARE_BITMAPSET_FIELD

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

Definition at line 60 of file equalfuncs.c.

Referenced by _equalPlaceHolderInfo(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRestrictInfo(), _equalSpecialJoinInfo(), and _equalTableFunc().

◆ COMPARE_COERCIONFORM_FIELD

#define COMPARE_COERCIONFORM_FIELD (   fldname)    ((void) 0)

◆ COMPARE_LOCATION_FIELD

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

◆ COMPARE_NODE_FIELD

#define COMPARE_NODE_FIELD (   fldname)
Value:
do { \
if (!equal(a->fldname, b->fldname)) \
return false; \
} while (0)
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3113

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(), _equalCTECycleClause(), _equalCTESearchClause(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExplainStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFromExpr(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalGroupingFunc(), _equalGroupingSet(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalInferenceElem(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalPartitionBoundSpec(), _equalPartitionCmd(), _equalPartitionElem(), _equalPartitionRangeDatum(), _equalPartitionSpec(), _equalPlaceHolderInfo(), _equalPLAssignStmt(), _equalPrepareStmt(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTableFunc(), _equalRangeTableFuncCol(), _equalRangeTableSample(), _equalRangeTblEntry(), _equalRangeTblFunction(), _equalRangeVar(), _equalRawStmt(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalReturnStmt(), _equalRowCompareExpr(), _equalRowExpr(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSortBy(), _equalSpecialJoinInfo(), _equalStatsElem(), _equalSubLink(), _equalSubPlan(), _equalSubscriptingRef(), _equalTableFunc(), _equalTableLikeClause(), _equalTableSampleClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeCast(), _equalTypeName(), _equalUpdateStmt(), _equalVacuumRelation(), _equalVacuumStmt(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithCheckOption(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().

◆ COMPARE_POINTER_FIELD

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

Definition at line 78 of file equalfuncs.c.

Referenced by _equalAppendRelInfo().

◆ COMPARE_SCALAR_FIELD

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

Definition at line 46 of file equalfuncs.c.

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

◆ COMPARE_STRING_FIELD

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

Definition at line 67 of file equalfuncs.c.

Referenced by _equalAccessPriv(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterUserMappingStmt(), _equalClosePortalStmt(), _equalClusterStmt(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConstraint(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateStatsStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCTECycleClause(), _equalCTESearchClause(), _equalCurrentOfExpr(), _equalDeallocateStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDropdbStmt(), _equalDropSubscriptionStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExtensibleNode(), _equalFetchStmt(), _equalFunctionParameter(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalIntoClause(), _equalListenStmt(), _equalLoadStmt(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalPartitionElem(), _equalPartitionSpec(), _equalPLAssignStmt(), _equalPrepareStmt(), _equalRangeTableFuncCol(), _equalRangeTblEntry(), _equalRangeVar(), _equalReindexStmt(), _equalRenameStmt(), _equalReplicaIdentityStmt(), _equalResTarget(), _equalRoleSpec(), _equalRuleStmt(), _equalSecLabelStmt(), _equalStatsElem(), _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 2454 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

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

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2446 {
2448  COMPARE_NODE_FIELD(indirection);
2449 
2450  return true;
2451 }
#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 1191 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1192 {
1193  COMPARE_STRING_FIELD(priv_name);
1194  COMPARE_NODE_FIELD(cols);
1195 
1196  return true;
1197 }
#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 2401 of file equalfuncs.c.

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

Referenced by equal().

2402 {
2403  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2404  return false;
2405  COMPARE_LOCATION_FIELD(location);
2406 
2407  return true;
2408 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3113
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
Value val
Definition: parsenodes.h:298

◆ _equalAExpr()

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

Definition at line 2371 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2372 {
2373  COMPARE_SCALAR_FIELD(kind);
2375  COMPARE_NODE_FIELD(lexpr);
2376  COMPARE_NODE_FIELD(rexpr);
2377  COMPARE_LOCATION_FIELD(location);
2378 
2379  return true;
2380 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAggref()

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

Definition at line 217 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalAIndices()

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

Definition at line 2435 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2436 {
2437  COMPARE_SCALAR_FIELD(is_slice);
2438  COMPARE_NODE_FIELD(lidx);
2439  COMPARE_NODE_FIELD(uidx);
2440 
2441  return true;
2442 }
#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 1144 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1145 {
1146  COMPARE_NODE_FIELD(collname);
1147 
1148  return true;
1149 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1722 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1723 {
1725  COMPARE_NODE_FIELD(setstmt);
1726 
1727  return true;
1728 }
#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 1713 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1714 {
1717 
1718  return true;
1719 }
#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 1213 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1214 {
1217 
1218  return true;
1219 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1152 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1153 {
1154  COMPARE_SCALAR_FIELD(subtype);
1155  COMPARE_NODE_FIELD(typeName);
1157  COMPARE_NODE_FIELD(def);
1158  COMPARE_SCALAR_FIELD(behavior);
1159  COMPARE_SCALAR_FIELD(missing_ok);
1160 
1161  return true;
1162 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterEnumStmt()

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

Definition at line 1613 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1614 {
1615  COMPARE_NODE_FIELD(typeName);
1616  COMPARE_STRING_FIELD(oldVal);
1617  COMPARE_STRING_FIELD(newVal);
1618  COMPARE_STRING_FIELD(newValNeighbor);
1619  COMPARE_SCALAR_FIELD(newValIsAfter);
1620  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1621 
1622  return true;
1623 }
#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 2089 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2090 {
2091  COMPARE_STRING_FIELD(trigname);
2092  COMPARE_SCALAR_FIELD(tgenabled);
2093 
2094  return true;
2095 }
#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 1923 of file equalfuncs.c.

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

Referenced by equal().

1924 {
1925  COMPARE_STRING_FIELD(extname);
1927  COMPARE_SCALAR_FIELD(objtype);
1928  COMPARE_NODE_FIELD(object);
1929 
1930  return true;
1931 }
#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 1914 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1915 {
1916  COMPARE_STRING_FIELD(extname);
1918 
1919  return true;
1920 }
#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 1944 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1945 {
1946  COMPARE_STRING_FIELD(fdwname);
1947  COMPARE_NODE_FIELD(func_options);
1949 
1950  return true;
1951 }
#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 1967 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1968 {
1969  COMPARE_STRING_FIELD(servername);
1970  COMPARE_STRING_FIELD(version);
1972  COMPARE_SCALAR_FIELD(has_version);
1973 
1974  return true;
1975 }
#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 1449 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1450 {
1451  COMPARE_SCALAR_FIELD(objtype);
1452  COMPARE_NODE_FIELD(func);
1453  COMPARE_NODE_FIELD(actions);
1454 
1455  return true;
1456 }
#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 472 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

473 {
474  COMPARE_NODE_FIELD(subplans);
475 
476  return true;
477 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1482 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1483 {
1484  COMPARE_SCALAR_FIELD(objectType);
1485  COMPARE_NODE_FIELD(relation);
1486  COMPARE_NODE_FIELD(object);
1487  COMPARE_NODE_FIELD(extname);
1488  COMPARE_SCALAR_FIELD(remove);
1489 
1490  return true;
1491 }
#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 1494 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1495 {
1496  COMPARE_SCALAR_FIELD(objectType);
1497  COMPARE_NODE_FIELD(relation);
1498  COMPARE_NODE_FIELD(object);
1499  COMPARE_STRING_FIELD(newschema);
1500  COMPARE_SCALAR_FIELD(missing_ok);
1501 
1502  return true;
1503 }
#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 1517 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1518 {
1519  COMPARE_NODE_FIELD(opername);
1521 
1522  return true;
1523 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1693 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1694 {
1695  COMPARE_NODE_FIELD(opfamilyname);
1696  COMPARE_STRING_FIELD(amname);
1697  COMPARE_SCALAR_FIELD(isDrop);
1698  COMPARE_NODE_FIELD(items);
1699 
1700  return true;
1701 }
#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 1506 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1507 {
1508  COMPARE_SCALAR_FIELD(objectType);
1509  COMPARE_NODE_FIELD(relation);
1510  COMPARE_NODE_FIELD(object);
1511  COMPARE_NODE_FIELD(newowner);
1512 
1513  return true;
1514 }
#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 2359 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2360 {
2361  COMPARE_STRING_FIELD(policy_name);
2362  COMPARE_NODE_FIELD(table);
2363  COMPARE_NODE_FIELD(roles);
2364  COMPARE_NODE_FIELD(qual);
2365  COMPARE_NODE_FIELD(with_check);
2366 
2367  return true;
2368 }
#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 2296 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2298 {
2299  COMPARE_STRING_FIELD(pubname);
2301  COMPARE_NODE_FIELD(tables);
2302  COMPARE_SCALAR_FIELD(for_all_tables);
2303  COMPARE_SCALAR_FIELD(tableAction);
2304 
2305  return true;
2306 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterRoleSetStmt()

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

Definition at line 2131 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2132 {
2133  COMPARE_NODE_FIELD(role);
2134  COMPARE_STRING_FIELD(database);
2135  COMPARE_NODE_FIELD(setstmt);
2136 
2137  return true;
2138 }
#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 2121 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2122 {
2123  COMPARE_NODE_FIELD(role);
2126 
2127  return true;
2128 }
#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 1822 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1823 {
1824  COMPARE_NODE_FIELD(sequence);
1826  COMPARE_SCALAR_FIELD(for_identity);
1827  COMPARE_SCALAR_FIELD(missing_ok);
1828 
1829  return true;
1830 }
#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 1414 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1415 {
1416  COMPARE_NODE_FIELD(defnames);
1417  COMPARE_SCALAR_FIELD(stxstattarget);
1418  COMPARE_SCALAR_FIELD(missing_ok);
1419 
1420  return true;
1421 }
#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 2321 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2323 {
2324  COMPARE_SCALAR_FIELD(kind);
2326  COMPARE_STRING_FIELD(conninfo);
2327  COMPARE_NODE_FIELD(publication);
2329 
2330  return true;
2331 }
#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 1801 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1802 {
1803  COMPARE_NODE_FIELD(setstmt);
1804 
1805  return true;
1806 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1130 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1131 {
1132  COMPARE_SCALAR_FIELD(subtype);
1134  COMPARE_SCALAR_FIELD(num);
1135  COMPARE_NODE_FIELD(newowner);
1136  COMPARE_NODE_FIELD(def);
1137  COMPARE_SCALAR_FIELD(behavior);
1138  COMPARE_SCALAR_FIELD(missing_ok);
1139 
1140  return true;
1141 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableMoveAllStmt()

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

Definition at line 1891 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1893 {
1894  COMPARE_STRING_FIELD(orig_tablespacename);
1895  COMPARE_SCALAR_FIELD(objtype);
1896  COMPARE_NODE_FIELD(roles);
1897  COMPARE_STRING_FIELD(new_tablespacename);
1898  COMPARE_SCALAR_FIELD(nowait);
1899 
1900  return true;
1901 }
#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 1880 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1882 {
1883  COMPARE_STRING_FIELD(tablespacename);
1885  COMPARE_SCALAR_FIELD(isReset);
1886 
1887  return true;
1888 }
#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 1119 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1120 {
1121  COMPARE_NODE_FIELD(relation);
1122  COMPARE_NODE_FIELD(cmds);
1123  COMPARE_SCALAR_FIELD(objtype);
1124  COMPARE_SCALAR_FIELD(missing_ok);
1125 
1126  return true;
1127 }
#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 2269 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2271 {
2272  COMPARE_SCALAR_FIELD(kind);
2273  COMPARE_NODE_FIELD(cfgname);
2274  COMPARE_NODE_FIELD(tokentype);
2275  COMPARE_NODE_FIELD(dicts);
2276  COMPARE_SCALAR_FIELD(override);
2277  COMPARE_SCALAR_FIELD(replace);
2278  COMPARE_SCALAR_FIELD(missing_ok);
2279 
2280  return true;
2281 }
#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 2260 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2261 {
2262  COMPARE_NODE_FIELD(dictname);
2264 
2265  return true;
2266 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTypeStmt()

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

Definition at line 1526 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1527 {
1528  COMPARE_NODE_FIELD(typeName);
1530 
1531  return true;
1532 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 1989 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1990 {
1992  COMPARE_STRING_FIELD(servername);
1994 
1995  return true;
1996 }
#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 910 of file equalfuncs.c.

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

Referenced by equal().

911 {
912  COMPARE_SCALAR_FIELD(parent_relid);
913  COMPARE_SCALAR_FIELD(child_relid);
914  COMPARE_SCALAR_FIELD(parent_reltype);
915  COMPARE_SCALAR_FIELD(child_reltype);
916  COMPARE_NODE_FIELD(translated_vars);
917  COMPARE_SCALAR_FIELD(num_child_cols);
918  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
919  COMPARE_SCALAR_FIELD(parent_reloid);
920 
921  return true;
922 }
int num_child_cols
Definition: pathnodes.h:2331
#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 528 of file equalfuncs.c.

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

Referenced by equal().

529 {
531  COMPARE_NODE_FIELD(elemexpr);
532  COMPARE_SCALAR_FIELD(resulttype);
533  COMPARE_SCALAR_FIELD(resulttypmod);
534  COMPARE_SCALAR_FIELD(resultcollid);
535  COMPARE_COERCIONFORM_FIELD(coerceformat);
536  COMPARE_LOCATION_FIELD(location);
537 
538  return true;
539 }
#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 596 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

597 {
598  COMPARE_SCALAR_FIELD(array_typeid);
599  COMPARE_SCALAR_FIELD(array_collid);
600  COMPARE_SCALAR_FIELD(element_typeid);
601  COMPARE_NODE_FIELD(elements);
602  COMPARE_SCALAR_FIELD(multidims);
603  COMPARE_LOCATION_FIELD(location);
604 
605  return true;
606 }
#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 2429 of file equalfuncs.c.

Referenced by equal().

2430 {
2431  return true;
2432 }

◆ _equalBooleanTest()

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

Definition at line 696 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

697 {
699  COMPARE_SCALAR_FIELD(booltesttype);
700  COMPARE_LOCATION_FIELD(location);
701 
702  return true;
703 }
#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 426 of file equalfuncs.c.

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

Referenced by equal().

427 {
430  COMPARE_LOCATION_FIELD(location);
431 
432  return true;
433 }
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 1240 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1241 {
1242  COMPARE_NODE_FIELD(funccall);
1243  COMPARE_NODE_FIELD(funcexpr);
1244 
1245  return true;
1246 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 563 of file equalfuncs.c.

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

Referenced by equal().

564 {
565  COMPARE_SCALAR_FIELD(casetype);
566  COMPARE_SCALAR_FIELD(casecollid);
569  COMPARE_NODE_FIELD(defresult);
570  COMPARE_LOCATION_FIELD(location);
571 
572  return true;
573 }
#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 586 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

587 {
588  COMPARE_SCALAR_FIELD(typeId);
589  COMPARE_SCALAR_FIELD(typeMod);
590  COMPARE_SCALAR_FIELD(collation);
591 
592  return true;
593 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseWhen()

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

Definition at line 576 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

577 {
578  COMPARE_NODE_FIELD(expr);
579  COMPARE_NODE_FIELD(result);
580  COMPARE_LOCATION_FIELD(location);
581 
582  return true;
583 }
#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 1232 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1233 {
1234  COMPARE_STRING_FIELD(portalname);
1235 
1236  return true;
1237 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1249 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1250 {
1251  COMPARE_NODE_FIELD(relation);
1252  COMPARE_STRING_FIELD(indexname);
1253  COMPARE_NODE_FIELD(params);
1254 
1255  return true;
1256 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCoalesceExpr()

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

Definition at line 634 of file equalfuncs.c.

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

Referenced by equal().

635 {
636  COMPARE_SCALAR_FIELD(coalescetype);
637  COMPARE_SCALAR_FIELD(coalescecollid);
639  COMPARE_LOCATION_FIELD(location);
640 
641  return true;
642 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCoerceToDomain()

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

Definition at line 706 of file equalfuncs.c.

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

Referenced by equal().

707 {
709  COMPARE_SCALAR_FIELD(resulttype);
710  COMPARE_SCALAR_FIELD(resulttypmod);
711  COMPARE_SCALAR_FIELD(resultcollid);
712  COMPARE_COERCIONFORM_FIELD(coercionformat);
713  COMPARE_LOCATION_FIELD(location);
714 
715  return true;
716 }
#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 719 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

720 {
721  COMPARE_SCALAR_FIELD(typeId);
722  COMPARE_SCALAR_FIELD(typeMod);
723  COMPARE_SCALAR_FIELD(collation);
724  COMPARE_LOCATION_FIELD(location);
725 
726  return true;
727 }
#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 516 of file equalfuncs.c.

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

Referenced by equal().

517 {
519  COMPARE_SCALAR_FIELD(resulttype);
520  COMPARE_SCALAR_FIELD(resultcollid);
521  COMPARE_COERCIONFORM_FIELD(coerceformat);
522  COMPARE_LOCATION_FIELD(location);
523 
524  return true;
525 }
#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 2509 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2510 {
2512  COMPARE_NODE_FIELD(collname);
2513  COMPARE_LOCATION_FIELD(location);
2514 
2515  return true;
2516 }
#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 553 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

554 {
556  COMPARE_SCALAR_FIELD(collOid);
557  COMPARE_LOCATION_FIELD(location);
558 
559  return true;
560 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalColumnDef()

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

Definition at line 2635 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2636 {
2637  COMPARE_STRING_FIELD(colname);
2638  COMPARE_NODE_FIELD(typeName);
2639  COMPARE_STRING_FIELD(compression);
2640  COMPARE_SCALAR_FIELD(inhcount);
2641  COMPARE_SCALAR_FIELD(is_local);
2642  COMPARE_SCALAR_FIELD(is_not_null);
2643  COMPARE_SCALAR_FIELD(is_from_type);
2644  COMPARE_SCALAR_FIELD(storage);
2645  COMPARE_NODE_FIELD(raw_default);
2646  COMPARE_NODE_FIELD(cooked_default);
2647  COMPARE_SCALAR_FIELD(identity);
2648  COMPARE_NODE_FIELD(identitySequence);
2649  COMPARE_SCALAR_FIELD(generated);
2650  COMPARE_NODE_FIELD(collClause);
2651  COMPARE_SCALAR_FIELD(collOid);
2652  COMPARE_NODE_FIELD(constraints);
2653  COMPARE_NODE_FIELD(fdwoptions);
2654  COMPARE_LOCATION_FIELD(location);
2655 
2656  return true;
2657 }
#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 2383 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2384 {
2385  COMPARE_NODE_FIELD(fields);
2386  COMPARE_LOCATION_FIELD(location);
2387 
2388  return true;
2389 }
#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 1339 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1340 {
1341  COMPARE_SCALAR_FIELD(objtype);
1342  COMPARE_NODE_FIELD(object);
1343  COMPARE_STRING_FIELD(comment);
1344 
1345  return true;
1346 }
#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 2912 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2913 {
2914  COMPARE_STRING_FIELD(ctename);
2915  COMPARE_NODE_FIELD(aliascolnames);
2916  COMPARE_SCALAR_FIELD(ctematerialized);
2917  COMPARE_NODE_FIELD(ctequery);
2918  COMPARE_NODE_FIELD(search_clause);
2919  COMPARE_NODE_FIELD(cycle_clause);
2920  COMPARE_LOCATION_FIELD(location);
2921  COMPARE_SCALAR_FIELD(cterecursive);
2922  COMPARE_SCALAR_FIELD(cterefcount);
2923  COMPARE_NODE_FIELD(ctecolnames);
2924  COMPARE_NODE_FIELD(ctecoltypes);
2925  COMPARE_NODE_FIELD(ctecoltypmods);
2926  COMPARE_NODE_FIELD(ctecolcollations);
2927 
2928  return true;
2929 }
#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 1586 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1587 {
1588  COMPARE_NODE_FIELD(typevar);
1589  COMPARE_NODE_FIELD(coldeflist);
1590 
1591  return true;
1592 }
#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:219
bool constbyval
Definition: primnodes.h:222
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:222
int constlen
Definition: primnodes.h:218
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
bool constisnull
Definition: primnodes.h:220
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalConstraint()

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

Definition at line 2660 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2661 {
2662  COMPARE_SCALAR_FIELD(contype);
2663  COMPARE_STRING_FIELD(conname);
2664  COMPARE_SCALAR_FIELD(deferrable);
2665  COMPARE_SCALAR_FIELD(initdeferred);
2666  COMPARE_LOCATION_FIELD(location);
2667  COMPARE_SCALAR_FIELD(is_no_inherit);
2668  COMPARE_NODE_FIELD(raw_expr);
2669  COMPARE_STRING_FIELD(cooked_expr);
2670  COMPARE_SCALAR_FIELD(generated_when);
2671  COMPARE_NODE_FIELD(keys);
2672  COMPARE_NODE_FIELD(including);
2673  COMPARE_NODE_FIELD(exclusions);
2675  COMPARE_STRING_FIELD(indexname);
2676  COMPARE_STRING_FIELD(indexspace);
2677  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2678  COMPARE_STRING_FIELD(access_method);
2679  COMPARE_NODE_FIELD(where_clause);
2680  COMPARE_NODE_FIELD(pktable);
2681  COMPARE_NODE_FIELD(fk_attrs);
2682  COMPARE_NODE_FIELD(pk_attrs);
2683  COMPARE_SCALAR_FIELD(fk_matchtype);
2684  COMPARE_SCALAR_FIELD(fk_upd_action);
2685  COMPARE_SCALAR_FIELD(fk_del_action);
2686  COMPARE_NODE_FIELD(old_conpfeqop);
2687  COMPARE_SCALAR_FIELD(old_pktable_oid);
2688  COMPARE_SCALAR_FIELD(skip_validation);
2689  COMPARE_SCALAR_FIELD(initially_valid);
2690 
2691  return true;
2692 }
#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 2160 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2161 {
2162  COMPARE_NODE_FIELD(constraints);
2163  COMPARE_SCALAR_FIELD(deferred);
2164 
2165  return true;
2166 }
#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 542 of file equalfuncs.c.

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

Referenced by equal().

543 {
545  COMPARE_SCALAR_FIELD(resulttype);
546  COMPARE_COERCIONFORM_FIELD(convertformat);
547  COMPARE_LOCATION_FIELD(location);
548 
549  return true;
550 }
#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 1259 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1260 {
1261  COMPARE_NODE_FIELD(relation);
1262  COMPARE_NODE_FIELD(query);
1263  COMPARE_NODE_FIELD(attlist);
1264  COMPARE_SCALAR_FIELD(is_from);
1265  COMPARE_SCALAR_FIELD(is_program);
1268  COMPARE_NODE_FIELD(whereClause);
1269 
1270  return true;
1271 }
#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 2046 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2047 {
2048  COMPARE_STRING_FIELD(amname);
2049  COMPARE_NODE_FIELD(handler_name);
2050  COMPARE_SCALAR_FIELD(amtype);
2051 
2052  return true;
2053 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateCastStmt()

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

Definition at line 2203 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2204 {
2205  COMPARE_NODE_FIELD(sourcetype);
2206  COMPARE_NODE_FIELD(targettype);
2207  COMPARE_NODE_FIELD(func);
2208  COMPARE_SCALAR_FIELD(context);
2209  COMPARE_SCALAR_FIELD(inout);
2210 
2211  return true;
2212 }
#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 2191 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2192 {
2193  COMPARE_NODE_FIELD(conversion_name);
2194  COMPARE_STRING_FIELD(for_encoding_name);
2195  COMPARE_STRING_FIELD(to_encoding_name);
2196  COMPARE_NODE_FIELD(func_name);
2197  COMPARE_SCALAR_FIELD(def);
2198 
2199  return true;
2200 }
#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 1704 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1705 {
1708 
1709  return true;
1710 }
#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 1647 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1648 {
1649  COMPARE_NODE_FIELD(domainname);
1650  COMPARE_NODE_FIELD(typeName);
1651  COMPARE_NODE_FIELD(collClause);
1652  COMPARE_NODE_FIELD(constraints);
1653 
1654  return true;
1655 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

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

Definition at line 1595 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateEventTrigStmt()

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

Definition at line 2078 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2079 {
2080  COMPARE_STRING_FIELD(trigname);
2081  COMPARE_STRING_FIELD(eventname);
2082  COMPARE_NODE_FIELD(whenclause);
2083  COMPARE_NODE_FIELD(funcname);
2084 
2085  return true;
2086 }
#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 1904 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1905 {
1906  COMPARE_STRING_FIELD(extname);
1907  COMPARE_SCALAR_FIELD(if_not_exists);
1909 
1910  return true;
1911 }
#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 1934 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1935 {
1936  COMPARE_STRING_FIELD(fdwname);
1937  COMPARE_NODE_FIELD(func_options);
1939 
1940  return true;
1941 }
#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 1954 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1955 {
1956  COMPARE_STRING_FIELD(servername);
1957  COMPARE_STRING_FIELD(servertype);
1958  COMPARE_STRING_FIELD(version);
1959  COMPARE_STRING_FIELD(fdwname);
1960  COMPARE_SCALAR_FIELD(if_not_exists);
1962 
1963  return true;
1964 }
#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 2009 of file equalfuncs.c.

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

Referenced by equal().

2010 {
2011  if (!_equalCreateStmt(&a->base, &b->base))
2012  return false;
2013 
2014  COMPARE_STRING_FIELD(servername);
2016 
2017  return true;
2018 }
#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:1274

◆ _equalCreateFunctionStmt()

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

Definition at line 1424 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1425 {
1426  COMPARE_SCALAR_FIELD(is_procedure);
1427  COMPARE_SCALAR_FIELD(replace);
1428  COMPARE_NODE_FIELD(funcname);
1429  COMPARE_NODE_FIELD(parameters);
1430  COMPARE_NODE_FIELD(returnType);
1432  COMPARE_NODE_FIELD(sql_body);
1433 
1434  return true;
1435 }
#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 1671 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1672 {
1673  COMPARE_SCALAR_FIELD(itemtype);
1675  COMPARE_SCALAR_FIELD(number);
1676  COMPARE_NODE_FIELD(order_family);
1677  COMPARE_NODE_FIELD(class_args);
1678  COMPARE_NODE_FIELD(storedtype);
1679 
1680  return true;
1681 }
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateOpClassStmt()

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

Definition at line 1658 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1659 {
1660  COMPARE_NODE_FIELD(opclassname);
1661  COMPARE_NODE_FIELD(opfamilyname);
1662  COMPARE_STRING_FIELD(amname);
1663  COMPARE_NODE_FIELD(datatype);
1664  COMPARE_NODE_FIELD(items);
1665  COMPARE_SCALAR_FIELD(isDefault);
1666 
1667  return true;
1668 }
#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 1684 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1685 {
1686  COMPARE_NODE_FIELD(opfamilyname);
1687  COMPARE_STRING_FIELD(amname);
1688 
1689  return true;
1690 }
#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 2098 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2099 {
2100  COMPARE_SCALAR_FIELD(replace);
2101  COMPARE_STRING_FIELD(plname);
2102  COMPARE_NODE_FIELD(plhandler);
2103  COMPARE_NODE_FIELD(plinline);
2104  COMPARE_NODE_FIELD(plvalidator);
2105  COMPARE_SCALAR_FIELD(pltrusted);
2106 
2107  return true;
2108 }
#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 2345 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2346 {
2347  COMPARE_STRING_FIELD(policy_name);
2348  COMPARE_NODE_FIELD(table);
2349  COMPARE_STRING_FIELD(cmd_name);
2350  COMPARE_SCALAR_FIELD(permissive);
2351  COMPARE_NODE_FIELD(roles);
2352  COMPARE_NODE_FIELD(qual);
2353  COMPARE_NODE_FIELD(with_check);
2354 
2355  return true;
2356 }
#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 2284 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2286 {
2287  COMPARE_STRING_FIELD(pubname);
2289  COMPARE_NODE_FIELD(tables);
2290  COMPARE_SCALAR_FIELD(for_all_tables);
2291 
2292  return true;
2293 }
#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 1604 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1605 {
1606  COMPARE_NODE_FIELD(typeName);
1607  COMPARE_NODE_FIELD(params);
1608 
1609  return true;
1610 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateRoleStmt()

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

Definition at line 2111 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2112 {
2113  COMPARE_SCALAR_FIELD(stmt_type);
2114  COMPARE_STRING_FIELD(role);
2116 
2117  return true;
2118 }
#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 2180 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2181 {
2182  COMPARE_STRING_FIELD(schemaname);
2183  COMPARE_NODE_FIELD(authrole);
2184  COMPARE_NODE_FIELD(schemaElts);
2185  COMPARE_SCALAR_FIELD(if_not_exists);
2186 
2187  return true;
2188 }
#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 1810 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1811 {
1812  COMPARE_NODE_FIELD(sequence);
1814  COMPARE_SCALAR_FIELD(ownerId);
1815  COMPARE_SCALAR_FIELD(for_identity);
1816  COMPARE_SCALAR_FIELD(if_not_exists);
1817 
1818  return true;
1819 }
#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 1401 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1402 {
1403  COMPARE_NODE_FIELD(defnames);
1404  COMPARE_NODE_FIELD(stat_types);
1405  COMPARE_NODE_FIELD(exprs);
1406  COMPARE_NODE_FIELD(relations);
1407  COMPARE_STRING_FIELD(stxcomment);
1408  COMPARE_SCALAR_FIELD(if_not_exists);
1409 
1410  return true;
1411 }
#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 1274 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1275 {
1276  COMPARE_NODE_FIELD(relation);
1277  COMPARE_NODE_FIELD(tableElts);
1278  COMPARE_NODE_FIELD(inhRelations);
1279  COMPARE_NODE_FIELD(partbound);
1280  COMPARE_NODE_FIELD(partspec);
1281  COMPARE_NODE_FIELD(ofTypename);
1282  COMPARE_NODE_FIELD(constraints);
1284  COMPARE_SCALAR_FIELD(oncommit);
1285  COMPARE_STRING_FIELD(tablespacename);
1286  COMPARE_STRING_FIELD(accessMethod);
1287  COMPARE_SCALAR_FIELD(if_not_exists);
1288 
1289  return true;
1290 }
#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 2309 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2311 {
2313  COMPARE_STRING_FIELD(conninfo);
2314  COMPARE_NODE_FIELD(publication);
2316 
2317  return true;
2318 }
#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 1770 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1771 {
1772  COMPARE_NODE_FIELD(query);
1773  COMPARE_NODE_FIELD(into);
1774  COMPARE_SCALAR_FIELD(objtype);
1775  COMPARE_SCALAR_FIELD(is_select_into);
1776  COMPARE_SCALAR_FIELD(if_not_exists);
1777 
1778  return true;
1779 }
#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 1860 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1861 {
1862  COMPARE_STRING_FIELD(tablespacename);
1863  COMPARE_NODE_FIELD(owner);
1864  COMPARE_STRING_FIELD(location);
1866 
1867  return true;
1868 }
#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 2034 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2035 {
2036  COMPARE_SCALAR_FIELD(replace);
2037  COMPARE_NODE_FIELD(type_name);
2038  COMPARE_STRING_FIELD(lang);
2039  COMPARE_NODE_FIELD(fromsql);
2040  COMPARE_NODE_FIELD(tosql);
2041 
2042  return true;
2043 }
#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 2056 of file equalfuncs.c.

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

Referenced by equal().

2057 {
2058  COMPARE_SCALAR_FIELD(replace);
2059  COMPARE_SCALAR_FIELD(isconstraint);
2060  COMPARE_STRING_FIELD(trigname);
2061  COMPARE_NODE_FIELD(relation);
2062  COMPARE_NODE_FIELD(funcname);
2064  COMPARE_SCALAR_FIELD(row);
2065  COMPARE_SCALAR_FIELD(timing);
2066  COMPARE_SCALAR_FIELD(events);
2067  COMPARE_NODE_FIELD(columns);
2068  COMPARE_NODE_FIELD(whenClause);
2069  COMPARE_NODE_FIELD(transitionRels);
2070  COMPARE_SCALAR_FIELD(deferrable);
2071  COMPARE_SCALAR_FIELD(initdeferred);
2072  COMPARE_NODE_FIELD(constrrel);
2073 
2074  return true;
2075 }
#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 1978 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1979 {
1981  COMPARE_STRING_FIELD(servername);
1982  COMPARE_SCALAR_FIELD(if_not_exists);
1984 
1985  return true;
1986 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * user
Definition: pg_regress.c:95
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCTECycleClause()

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

Definition at line 2895 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2896 {
2897  COMPARE_NODE_FIELD(cycle_col_list);
2898  COMPARE_STRING_FIELD(cycle_mark_column);
2899  COMPARE_NODE_FIELD(cycle_mark_value);
2900  COMPARE_NODE_FIELD(cycle_mark_default);
2901  COMPARE_STRING_FIELD(cycle_path_column);
2902  COMPARE_LOCATION_FIELD(location);
2903  COMPARE_SCALAR_FIELD(cycle_mark_type);
2904  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
2905  COMPARE_SCALAR_FIELD(cycle_mark_collation);
2906  COMPARE_SCALAR_FIELD(cycle_mark_neop);
2907 
2908  return true;
2909 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCTESearchClause()

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

Definition at line 2884 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2885 {
2886  COMPARE_NODE_FIELD(search_col_list);
2887  COMPARE_SCALAR_FIELD(search_breadth_first);
2888  COMPARE_STRING_FIELD(search_seq_column);
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
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCurrentOfExpr()

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

Definition at line 741 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

742 {
743  COMPARE_SCALAR_FIELD(cvarno);
744  COMPARE_STRING_FIELD(cursor_name);
745  COMPARE_SCALAR_FIELD(cursor_param);
746 
747  return true;
748 }
#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 2234 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2235 {
2237 
2238  return true;
2239 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515

◆ _equalDeclareCursorStmt()

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

Definition at line 1222 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1223 {
1224  COMPARE_STRING_FIELD(portalname);
1226  COMPARE_NODE_FIELD(query);
1227 
1228  return true;
1229 }
#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 2695 of file equalfuncs.c.

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

Referenced by equal().

2696 {
2697  COMPARE_STRING_FIELD(defnamespace);
2698  COMPARE_STRING_FIELD(defname);
2700  COMPARE_SCALAR_FIELD(defaction);
2701  COMPARE_LOCATION_FIELD(location);
2702 
2703  return true;
2704 }
#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 1303 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1304 {
1305  COMPARE_SCALAR_FIELD(kind);
1306  COMPARE_SCALAR_FIELD(oldstyle);
1307  COMPARE_NODE_FIELD(defnames);
1309  COMPARE_NODE_FIELD(definition);
1310  COMPARE_SCALAR_FIELD(if_not_exists);
1311  COMPARE_SCALAR_FIELD(replace);
1312 
1313  return true;
1314 }
#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 1032 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1033 {
1034  COMPARE_NODE_FIELD(relation);
1035  COMPARE_NODE_FIELD(usingClause);
1036  COMPARE_NODE_FIELD(whereClause);
1037  COMPARE_NODE_FIELD(returningList);
1038  COMPARE_NODE_FIELD(withClause);
1039 
1040  return true;
1041 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1852 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1853 {
1854  COMPARE_SCALAR_FIELD(target);
1855 
1856  return true;
1857 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalDistinctExpr()

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

Definition at line 344 of file equalfuncs.c.

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

Referenced by equal().

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

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1460 {
1462 
1463  return true;
1464 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1731 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1732 {
1734  COMPARE_SCALAR_FIELD(missing_ok);
1736 
1737  return true;
1738 }
#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 2242 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2243 {
2244  COMPARE_NODE_FIELD(roles);
2245  COMPARE_SCALAR_FIELD(behavior);
2246 
2247  return true;
2248 }
#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 2141 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2142 {
2143  COMPARE_NODE_FIELD(roles);
2144  COMPARE_SCALAR_FIELD(missing_ok);
2145 
2146  return true;
2147 }
#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 1317 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1318 {
1319  COMPARE_NODE_FIELD(objects);
1320  COMPARE_SCALAR_FIELD(removeType);
1321  COMPARE_SCALAR_FIELD(behavior);
1322  COMPARE_SCALAR_FIELD(missing_ok);
1323  COMPARE_SCALAR_FIELD(concurrent);
1324 
1325  return true;
1326 }
#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 2334 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2336 {
2338  COMPARE_SCALAR_FIELD(missing_ok);
2339  COMPARE_SCALAR_FIELD(behavior);
2340 
2341  return true;
2342 }
#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 1871 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1872 {
1873  COMPARE_STRING_FIELD(tablespacename);
1874  COMPARE_SCALAR_FIELD(missing_ok);
1875 
1876  return true;
1877 }
#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 1999 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

2000 {
2002  COMPARE_STRING_FIELD(servername);
2003  COMPARE_SCALAR_FIELD(missing_ok);
2004 
2005  return true;
2006 }
#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 2225 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2226 {
2228  COMPARE_NODE_FIELD(params);
2229 
2230  return true;
2231 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExplainStmt()

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

Definition at line 1761 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1762 {
1763  COMPARE_NODE_FIELD(query);
1765 
1766  return true;
1767 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 941 of file equalfuncs.c.

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

Referenced by equal().

942 {
943  const ExtensibleNodeMethods *methods;
944 
945  COMPARE_STRING_FIELD(extnodename);
946 
947  /* At this point, we know extnodename is the same for both nodes. */
948  methods = GetExtensibleNodeMethods(a->extnodename, false);
949 
950  /* compare the private fields */
951  if (!methods->nodeEqual(a, b))
952  return false;
953 
954  return true;
955 }
#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 1360 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1361 {
1362  COMPARE_SCALAR_FIELD(direction);
1363  COMPARE_SCALAR_FIELD(howMany);
1364  COMPARE_STRING_FIELD(portalname);
1365  COMPARE_SCALAR_FIELD(ismove);
1366 
1367  return true;
1368 }
#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 480 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

481 {
483  COMPARE_SCALAR_FIELD(fieldnum);
484  COMPARE_SCALAR_FIELD(resulttype);
485  COMPARE_SCALAR_FIELD(resulttypmod);
486  COMPARE_SCALAR_FIELD(resultcollid);
487 
488  return true;
489 }
#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 492 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

493 {
495  COMPARE_NODE_FIELD(newvals);
496  COMPARE_NODE_FIELD(fieldnums);
497  COMPARE_SCALAR_FIELD(resulttype);
498 
499  return true;
500 }
#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 808 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

809 {
810  COMPARE_NODE_FIELD(fromlist);
811  COMPARE_NODE_FIELD(quals);
812 
813  return true;
814 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

Definition at line 2411 of file equalfuncs.c.

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

Referenced by equal().

2412 {
2413  COMPARE_NODE_FIELD(funcname);
2415  COMPARE_NODE_FIELD(agg_order);
2416  COMPARE_NODE_FIELD(agg_filter);
2417  COMPARE_NODE_FIELD(over);
2418  COMPARE_SCALAR_FIELD(agg_within_group);
2419  COMPARE_SCALAR_FIELD(agg_star);
2420  COMPARE_SCALAR_FIELD(agg_distinct);
2421  COMPARE_SCALAR_FIELD(func_variadic);
2422  COMPARE_SCALAR_FIELD(funcformat);
2423  COMPARE_LOCATION_FIELD(location);
2424 
2425  return true;
2426 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalFuncExpr()

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

Definition at line 291 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalFunctionParameter()

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

Definition at line 1438 of file equalfuncs.c.

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

Referenced by equal().

1439 {
1441  COMPARE_NODE_FIELD(argType);
1443  COMPARE_NODE_FIELD(defexpr);
1444 
1445  return true;
1446 }
static PgChecksumMode mode
Definition: pg_checksums.c:61
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGrantRoleStmt()

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

Definition at line 1200 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1201 {
1202  COMPARE_NODE_FIELD(granted_roles);
1203  COMPARE_NODE_FIELD(grantee_roles);
1204  COMPARE_SCALAR_FIELD(is_grant);
1205  COMPARE_SCALAR_FIELD(admin_opt);
1206  COMPARE_NODE_FIELD(grantor);
1207  COMPARE_SCALAR_FIELD(behavior);
1208 
1209  return true;
1210 }
#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 1165 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1166 {
1167  COMPARE_SCALAR_FIELD(is_grant);
1168  COMPARE_SCALAR_FIELD(targtype);
1169  COMPARE_SCALAR_FIELD(objtype);
1170  COMPARE_NODE_FIELD(objects);
1171  COMPARE_NODE_FIELD(privileges);
1172  COMPARE_NODE_FIELD(grantees);
1173  COMPARE_SCALAR_FIELD(grant_option);
1174  COMPARE_NODE_FIELD(grantor);
1175  COMPARE_SCALAR_FIELD(behavior);
1176 
1177  return true;
1178 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalGroupingFunc()

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

Definition at line 243 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalGroupingSet()

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

Definition at line 2809 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2810 {
2811  COMPARE_SCALAR_FIELD(kind);
2812  COMPARE_NODE_FIELD(content);
2813  COMPARE_LOCATION_FIELD(location);
2814 
2815  return true;
2816 }
#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 2021 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2022 {
2023  COMPARE_STRING_FIELD(server_name);
2024  COMPARE_STRING_FIELD(remote_schema);
2025  COMPARE_STRING_FIELD(local_schema);
2026  COMPARE_SCALAR_FIELD(list_type);
2027  COMPARE_NODE_FIELD(table_list);
2029 
2030  return true;
2031 }
#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 2610 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2611 {
2613  COMPARE_NODE_FIELD(expr);
2614  COMPARE_STRING_FIELD(indexcolname);
2615  COMPARE_NODE_FIELD(collation);
2616  COMPARE_NODE_FIELD(opclass);
2617  COMPARE_NODE_FIELD(opclassopts);
2618  COMPARE_SCALAR_FIELD(ordering);
2619  COMPARE_SCALAR_FIELD(nulls_ordering);
2620 
2621  return true;
2622 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalIndexStmt()

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

Definition at line 1371 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1372 {
1373  COMPARE_STRING_FIELD(idxname);
1374  COMPARE_NODE_FIELD(relation);
1375  COMPARE_STRING_FIELD(accessMethod);
1376  COMPARE_STRING_FIELD(tableSpace);
1377  COMPARE_NODE_FIELD(indexParams);
1378  COMPARE_NODE_FIELD(indexIncludingParams);
1380  COMPARE_NODE_FIELD(whereClause);
1381  COMPARE_NODE_FIELD(excludeOpNames);
1382  COMPARE_STRING_FIELD(idxcomment);
1383  COMPARE_SCALAR_FIELD(indexOid);
1384  COMPARE_SCALAR_FIELD(oldNode);
1385  COMPARE_SCALAR_FIELD(oldCreateSubid);
1386  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1387  COMPARE_SCALAR_FIELD(unique);
1388  COMPARE_SCALAR_FIELD(primary);
1389  COMPARE_SCALAR_FIELD(isconstraint);
1390  COMPARE_SCALAR_FIELD(deferrable);
1391  COMPARE_SCALAR_FIELD(initdeferred);
1392  COMPARE_SCALAR_FIELD(transformed);
1393  COMPARE_SCALAR_FIELD(concurrent);
1394  COMPARE_SCALAR_FIELD(if_not_exists);
1395  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1396 
1397  return true;
1398 }
#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 2861 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2862 {
2863  COMPARE_NODE_FIELD(indexElems);
2864  COMPARE_NODE_FIELD(whereClause);
2865  COMPARE_STRING_FIELD(conname);
2866  COMPARE_LOCATION_FIELD(location);
2867 
2868  return true;
2869 }
#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 760 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

761 {
762  COMPARE_NODE_FIELD(expr);
763  COMPARE_SCALAR_FIELD(infercollid);
764  COMPARE_SCALAR_FIELD(inferopclass);
765 
766  return true;
767 }
#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 1018 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1019 {
1020  COMPARE_NODE_FIELD(relation);
1021  COMPARE_NODE_FIELD(cols);
1022  COMPARE_NODE_FIELD(selectStmt);
1023  COMPARE_NODE_FIELD(onConflictClause);
1024  COMPARE_NODE_FIELD(returningList);
1025  COMPARE_NODE_FIELD(withClause);
1026  COMPARE_SCALAR_FIELD(override);
1027 
1028  return true;
1029 }
#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 792 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

793 {
794  COMPARE_SCALAR_FIELD(jointype);
795  COMPARE_SCALAR_FIELD(isNatural);
796  COMPARE_NODE_FIELD(larg);
797  COMPARE_NODE_FIELD(rarg);
798  COMPARE_NODE_FIELD(usingClause);
799  COMPARE_NODE_FIELD(join_using_alias);
800  COMPARE_NODE_FIELD(quals);
801  COMPARE_NODE_FIELD(alias);
802  COMPARE_SCALAR_FIELD(rtindex);
803 
804  return true;
805 }
#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 3024 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().

3025 {
3026  const ListCell *item_a;
3027  const ListCell *item_b;
3028 
3029  /*
3030  * Try to reject by simple scalar checks before grovelling through all the
3031  * list elements...
3032  */
3034  COMPARE_SCALAR_FIELD(length);
3035 
3036  /*
3037  * We place the switch outside the loop for the sake of efficiency; this
3038  * may not be worth doing...
3039  */
3040  switch (a->type)
3041  {
3042  case T_List:
3043  forboth(item_a, a, item_b, b)
3044  {
3045  if (!equal(lfirst(item_a), lfirst(item_b)))
3046  return false;
3047  }
3048  break;
3049  case T_IntList:
3050  forboth(item_a, a, item_b, b)
3051  {
3052  if (lfirst_int(item_a) != lfirst_int(item_b))
3053  return false;
3054  }
3055  break;
3056  case T_OidList:
3057  forboth(item_a, a, item_b, b)
3058  {
3059  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3060  return false;
3061  }
3062  break;
3063  default:
3064  elog(ERROR, "unrecognized list node type: %d",
3065  (int) a->type);
3066  return false; /* keep compiler quiet */
3067  }
3068 
3069  /*
3070  * If we got here, we should have run out of elements of both lists
3071  */
3072  Assert(item_a == NULL);
3073  Assert(item_b == NULL);
3074 
3075  return true;
3076 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:446
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3113
#define ERROR
Definition: elog.h:46
#define lfirst_int(lc)
Definition: pg_list.h:170
Definition: nodes.h:305
#define Assert(condition)
Definition: c.h:804
#define lfirst(lc)
Definition: pg_list.h:169
NodeTag type
Definition: pg_list.h:52
#define elog(elevel,...)
Definition: elog.h:232
#define lfirst_oid(lc)
Definition: pg_list.h:171
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalListenStmt()

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

Definition at line 1558 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1559 {
1560  COMPARE_STRING_FIELD(conditionname);
1561 
1562  return true;
1563 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalLoadStmt()

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

Definition at line 1639 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1640 {
1642 
1643  return true;
1644 }
#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 2707 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2708 {
2709  COMPARE_NODE_FIELD(lockedRels);
2710  COMPARE_SCALAR_FIELD(strength);
2711  COMPARE_SCALAR_FIELD(waitPolicy);
2712 
2713  return true;
2714 }
#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 2150 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2151 {
2152  COMPARE_NODE_FIELD(relations);
2154  COMPARE_SCALAR_FIELD(nowait);
2155 
2156  return true;
2157 }
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 645 of file equalfuncs.c.

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

Referenced by equal().

646 {
647  COMPARE_SCALAR_FIELD(minmaxtype);
648  COMPARE_SCALAR_FIELD(minmaxcollid);
649  COMPARE_SCALAR_FIELD(inputcollid);
652  COMPARE_LOCATION_FIELD(location);
653 
654  return true;
655 }
#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 2474 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and source.

Referenced by equal().

2475 {
2477  COMPARE_SCALAR_FIELD(colno);
2478  COMPARE_SCALAR_FIELD(ncolumns);
2479 
2480  return true;
2481 }
static rewind_source * source
Definition: pg_rewind.c:79
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNamedArgExpr()

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

Definition at line 307 of file equalfuncs.c.

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

Referenced by equal().

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

◆ _equalNextValueExpr()

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

Definition at line 751 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

752 {
753  COMPARE_SCALAR_FIELD(seqid);
754  COMPARE_SCALAR_FIELD(typeId);
755 
756  return true;
757 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1549 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1550 {
1551  COMPARE_STRING_FIELD(conditionname);
1552  COMPARE_STRING_FIELD(payload);
1553 
1554  return true;
1555 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalNullIfExpr()

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

Definition at line 370 of file equalfuncs.c.

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

Referenced by equal().

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

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

686 {
688  COMPARE_SCALAR_FIELD(nulltesttype);
689  COMPARE_SCALAR_FIELD(argisrow);
690  COMPARE_LOCATION_FIELD(location);
691 
692  return true;
693 }
#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 1181 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1182 {
1183  COMPARE_NODE_FIELD(objname);
1184  COMPARE_NODE_FIELD(objargs);
1185  COMPARE_SCALAR_FIELD(args_unspecified);
1186 
1187  return true;
1188 }
#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 2872 of file equalfuncs.c.

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

Referenced by equal().

2873 {
2875  COMPARE_NODE_FIELD(infer);
2876  COMPARE_NODE_FIELD(targetList);
2877  COMPARE_NODE_FIELD(whereClause);
2878  COMPARE_LOCATION_FIELD(location);
2879 
2880  return true;
2881 }
#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 817 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

818 {
820  COMPARE_NODE_FIELD(arbiterElems);
821  COMPARE_NODE_FIELD(arbiterWhere);
822  COMPARE_SCALAR_FIELD(constraint);
823  COMPARE_NODE_FIELD(onConflictSet);
824  COMPARE_NODE_FIELD(onConflictWhere);
825  COMPARE_SCALAR_FIELD(exclRelIndex);
826  COMPARE_NODE_FIELD(exclRelTlist);
827 
828  return true;
829 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalOpExpr()

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

Definition at line 318 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2393 {
2394  COMPARE_SCALAR_FIELD(number);
2395  COMPARE_LOCATION_FIELD(location);
2396 
2397  return true;
2398 }
#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 2985 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2986 {
2987  COMPARE_SCALAR_FIELD(strategy);
2988  COMPARE_SCALAR_FIELD(is_default);
2989  COMPARE_SCALAR_FIELD(modulus);
2990  COMPARE_SCALAR_FIELD(remainder);
2991  COMPARE_NODE_FIELD(listdatums);
2992  COMPARE_NODE_FIELD(lowerdatums);
2993  COMPARE_NODE_FIELD(upperdatums);
2994  COMPARE_LOCATION_FIELD(location);
2995 
2996  return true;
2997 }
#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 3010 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

3011 {
3013  COMPARE_NODE_FIELD(bound);
3014  COMPARE_SCALAR_FIELD(concurrent);
3015 
3016  return true;
3017 }
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionElem()

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

Definition at line 2963 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2964 {
2966  COMPARE_NODE_FIELD(expr);
2967  COMPARE_NODE_FIELD(collation);
2968  COMPARE_NODE_FIELD(opclass);
2969  COMPARE_LOCATION_FIELD(location);
2970 
2971  return true;
2972 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalPartitionRangeDatum()

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

Definition at line 3000 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

3001 {
3002  COMPARE_SCALAR_FIELD(kind);
3004  COMPARE_LOCATION_FIELD(location);
3005 
3006  return true;
3007 }
static struct @142 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 2975 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2976 {
2977  COMPARE_STRING_FIELD(strategy);
2978  COMPARE_NODE_FIELD(partParams);
2979  COMPARE_LOCATION_FIELD(location);
2980 
2981  return true;
2982 }
#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 836 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

837 {
838  /* We assume pointer equality is sufficient to compare the eclasses */
839  COMPARE_SCALAR_FIELD(pk_eclass);
840  COMPARE_SCALAR_FIELD(pk_opfamily);
841  COMPARE_SCALAR_FIELD(pk_strategy);
842  COMPARE_SCALAR_FIELD(pk_nulls_first);
843 
844  return true;
845 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPlaceHolderInfo()

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

Definition at line 925 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

926 {
927  COMPARE_SCALAR_FIELD(phid);
928  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
929  COMPARE_BITMAPSET_FIELD(ph_eval_at);
930  COMPARE_BITMAPSET_FIELD(ph_lateral);
931  COMPARE_BITMAPSET_FIELD(ph_needed);
932  COMPARE_SCALAR_FIELD(ph_width);
933 
934  return true;
935 }
#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 867 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPLAssignStmt()

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

Definition at line 1107 of file equalfuncs.c.

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

Referenced by equal().

1108 {
1110  COMPARE_NODE_FIELD(indirection);
1111  COMPARE_SCALAR_FIELD(nnames);
1113  COMPARE_LOCATION_FIELD(location);
1114 
1115  return true;
1116 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPrepareStmt()

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

Definition at line 2215 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2216 {
2218  COMPARE_NODE_FIELD(argtypes);
2219  COMPARE_NODE_FIELD(query);
2220 
2221  return true;
2222 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalQuery()

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

Definition at line 962 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2557 {
2558  COMPARE_SCALAR_FIELD(lateral);
2559  COMPARE_SCALAR_FIELD(ordinality);
2560  COMPARE_SCALAR_FIELD(is_rowsfrom);
2562  COMPARE_NODE_FIELD(alias);
2563  COMPARE_NODE_FIELD(coldeflist);
2564 
2565  return true;
2566 }
static const struct fns functions
Definition: regcomp.c:313
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeSubselect()

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

Definition at line 2546 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2547 {
2548  COMPARE_SCALAR_FIELD(lateral);
2549  COMPARE_NODE_FIELD(subquery);
2550  COMPARE_NODE_FIELD(alias);
2551 
2552  return true;
2553 }
#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 2581 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2582 {
2583  COMPARE_SCALAR_FIELD(lateral);
2584  COMPARE_NODE_FIELD(docexpr);
2585  COMPARE_NODE_FIELD(rowexpr);
2586  COMPARE_NODE_FIELD(namespaces);
2587  COMPARE_NODE_FIELD(columns);
2588  COMPARE_NODE_FIELD(alias);
2589  COMPARE_LOCATION_FIELD(location);
2590 
2591  return true;
2592 }
#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 2595 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2596 {
2597  COMPARE_STRING_FIELD(colname);
2598  COMPARE_NODE_FIELD(typeName);
2599  COMPARE_SCALAR_FIELD(for_ordinality);
2600  COMPARE_SCALAR_FIELD(is_not_null);
2601  COMPARE_NODE_FIELD(colexpr);
2602  COMPARE_NODE_FIELD(coldefexpr);
2603  COMPARE_LOCATION_FIELD(location);
2604 
2605  return true;
2606 }
#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 2569 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2570 {
2571  COMPARE_NODE_FIELD(relation);
2572  COMPARE_NODE_FIELD(method);
2574  COMPARE_NODE_FIELD(repeatable);
2575  COMPARE_LOCATION_FIELD(location);
2576 
2577  return true;
2578 }
#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 2717 of file equalfuncs.c.

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

Referenced by equal().

2718 {
2719  COMPARE_SCALAR_FIELD(rtekind);
2720  COMPARE_SCALAR_FIELD(relid);
2721  COMPARE_SCALAR_FIELD(relkind);
2722  COMPARE_SCALAR_FIELD(rellockmode);
2723  COMPARE_NODE_FIELD(tablesample);
2724  COMPARE_NODE_FIELD(subquery);
2725  COMPARE_SCALAR_FIELD(security_barrier);
2726  COMPARE_SCALAR_FIELD(jointype);
2727  COMPARE_SCALAR_FIELD(joinmergedcols);
2728  COMPARE_NODE_FIELD(joinaliasvars);
2729  COMPARE_NODE_FIELD(joinleftcols);
2730  COMPARE_NODE_FIELD(joinrightcols);
2731  COMPARE_NODE_FIELD(join_using_alias);
2733  COMPARE_SCALAR_FIELD(funcordinality);
2734  COMPARE_NODE_FIELD(tablefunc);
2735  COMPARE_NODE_FIELD(values_lists);
2736  COMPARE_STRING_FIELD(ctename);
2737  COMPARE_SCALAR_FIELD(ctelevelsup);
2738  COMPARE_SCALAR_FIELD(self_reference);
2739  COMPARE_NODE_FIELD(coltypes);
2740  COMPARE_NODE_FIELD(coltypmods);
2741  COMPARE_NODE_FIELD(colcollations);
2742  COMPARE_STRING_FIELD(enrname);
2743  COMPARE_SCALAR_FIELD(enrtuples);
2744  COMPARE_NODE_FIELD(alias);
2745  COMPARE_NODE_FIELD(eref);
2746  COMPARE_SCALAR_FIELD(lateral);
2747  COMPARE_SCALAR_FIELD(inh);
2748  COMPARE_SCALAR_FIELD(inFromCl);
2749  COMPARE_SCALAR_FIELD(requiredPerms);
2750  COMPARE_SCALAR_FIELD(checkAsUser);
2751  COMPARE_BITMAPSET_FIELD(selectedCols);
2752  COMPARE_BITMAPSET_FIELD(insertedCols);
2753  COMPARE_BITMAPSET_FIELD(updatedCols);
2754  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2755  COMPARE_NODE_FIELD(securityQuals);
2756 
2757  return true;
2758 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60
static const struct fns functions
Definition: regcomp.c:313
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRangeTblFunction()

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

Definition at line 2761 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2762 {
2763  COMPARE_NODE_FIELD(funcexpr);
2764  COMPARE_SCALAR_FIELD(funccolcount);
2765  COMPARE_NODE_FIELD(funccolnames);
2766  COMPARE_NODE_FIELD(funccoltypes);
2767  COMPARE_NODE_FIELD(funccoltypmods);
2768  COMPARE_NODE_FIELD(funccolcollations);
2769  COMPARE_BITMAPSET_FIELD(funcparams);
2770 
2771  return true;
2772 }
#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 784 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

785 {
786  COMPARE_SCALAR_FIELD(rtindex);
787 
788  return true;
789 }
#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 1008 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1009 {
1010  COMPARE_NODE_FIELD(stmt);
1011  COMPARE_LOCATION_FIELD(stmt_location);
1012  COMPARE_SCALAR_FIELD(stmt_len);
1013 
1014  return true;
1015 }
#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 2251 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2252 {
2253  COMPARE_NODE_FIELD(roles);
2254  COMPARE_NODE_FIELD(newrole);
2255 
2256  return true;
2257 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRefreshMatViewStmt()

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

Definition at line 1782 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1783 {
1784  COMPARE_SCALAR_FIELD(concurrent);
1785  COMPARE_SCALAR_FIELD(skipData);
1786  COMPARE_NODE_FIELD(relation);
1787 
1788  return true;
1789 }
#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 2169 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2170 {
2171  COMPARE_SCALAR_FIELD(kind);
2172  COMPARE_NODE_FIELD(relation);
2174  COMPARE_NODE_FIELD(params);
2175 
2176  return true;
2177 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalRelabelType()

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

Definition at line 503 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1468 {
1469  COMPARE_SCALAR_FIELD(renameType);
1470  COMPARE_SCALAR_FIELD(relationType);
1471  COMPARE_NODE_FIELD(relation);
1472  COMPARE_NODE_FIELD(object);
1474  COMPARE_STRING_FIELD(newname);
1475  COMPARE_SCALAR_FIELD(behavior);
1476  COMPARE_SCALAR_FIELD(missing_ok);
1477 
1478  return true;
1479 }
#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 1792 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1793 {
1794  COMPARE_SCALAR_FIELD(identity_type);
1796 
1797  return true;
1798 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
const char * name
Definition: encode.c:515
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalResTarget()

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

Definition at line 2463 of file equalfuncs.c.

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

Referenced by equal().

2464 {
2466  COMPARE_NODE_FIELD(indirection);
2468  COMPARE_LOCATION_FIELD(location);
2469 
2470  return true;
2471 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
const char * name
Definition: encode.c:515
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
long val
Definition: informix.c:664

◆ _equalRestrictInfo()

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

Definition at line 848 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

849 {
850  COMPARE_NODE_FIELD(clause);
851  COMPARE_SCALAR_FIELD(is_pushed_down);
852  COMPARE_SCALAR_FIELD(outerjoin_delayed);
853  COMPARE_SCALAR_FIELD(security_level);
854  COMPARE_BITMAPSET_FIELD(required_relids);
855  COMPARE_BITMAPSET_FIELD(outer_relids);
856  COMPARE_BITMAPSET_FIELD(nullable_relids);
857 
858  /*
859  * We ignore all the remaining fields, since they may not be set yet, and
860  * should be derivable from the clause anyway.
861  */
862 
863  return true;
864 }
#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

◆ _equalReturnStmt()

static bool _equalReturnStmt ( const ReturnStmt a,
const ReturnStmt b 
)
static

Definition at line 1099 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1100 {
1101  COMPARE_NODE_FIELD(returnval);
1102 
1103  return true;
1104 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalRoleSpec()

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

Definition at line 2943 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2944 {
2945  COMPARE_SCALAR_FIELD(roletype);
2946