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 _equalA_Expr (const A_Expr *a, const A_Expr *b)
 
static bool _equalColumnRef (const ColumnRef *a, const ColumnRef *b)
 
static bool _equalParamRef (const ParamRef *a, const ParamRef *b)
 
static bool _equalA_Const (const A_Const *a, const A_Const *b)
 
static bool _equalFuncCall (const FuncCall *a, const FuncCall *b)
 
static bool _equalA_Star (const A_Star *a, const A_Star *b)
 
static bool _equalA_Indices (const A_Indices *a, const A_Indices *b)
 
static bool _equalA_Indirection (const A_Indirection *a, const A_Indirection *b)
 
static bool _equalA_ArrayExpr (const A_ArrayExpr *a, const A_ArrayExpr *b)
 
static bool _equalResTarget (const ResTarget *a, const ResTarget *b)
 
static bool _equalMultiAssignRef (const MultiAssignRef *a, const MultiAssignRef *b)
 
static bool _equalTypeName (const TypeName *a, const TypeName *b)
 
static bool _equalTypeCast (const TypeCast *a, const TypeCast *b)
 
static bool _equalCollateClause (const CollateClause *a, const CollateClause *b)
 
static bool _equalSortBy (const SortBy *a, const SortBy *b)
 
static bool _equalWindowDef (const WindowDef *a, const WindowDef *b)
 
static bool _equalRangeSubselect (const RangeSubselect *a, const RangeSubselect *b)
 
static bool _equalRangeFunction (const RangeFunction *a, const RangeFunction *b)
 
static bool _equalRangeTableSample (const RangeTableSample *a, const RangeTableSample *b)
 
static bool _equalRangeTableFunc (const RangeTableFunc *a, const RangeTableFunc *b)
 
static bool _equalRangeTableFuncCol (const RangeTableFuncCol *a, const RangeTableFuncCol *b)
 
static bool _equalIndexElem (const IndexElem *a, const IndexElem *b)
 
static bool _equalStatsElem (const StatsElem *a, const StatsElem *b)
 
static bool _equalColumnDef (const ColumnDef *a, const ColumnDef *b)
 
static bool _equalConstraint (const Constraint *a, const Constraint *b)
 
static bool _equalDefElem (const DefElem *a, const DefElem *b)
 
static bool _equalLockingClause (const LockingClause *a, const LockingClause *b)
 
static bool _equalRangeTblEntry (const RangeTblEntry *a, const RangeTblEntry *b)
 
static bool _equalRangeTblFunction (const RangeTblFunction *a, const RangeTblFunction *b)
 
static bool _equalTableSampleClause (const TableSampleClause *a, const TableSampleClause *b)
 
static bool _equalWithCheckOption (const WithCheckOption *a, const WithCheckOption *b)
 
static bool _equalSortGroupClause (const SortGroupClause *a, const SortGroupClause *b)
 
static bool _equalGroupingSet (const GroupingSet *a, const GroupingSet *b)
 
static bool _equalWindowClause (const WindowClause *a, const WindowClause *b)
 
static bool _equalRowMarkClause (const RowMarkClause *a, const RowMarkClause *b)
 
static bool _equalWithClause (const WithClause *a, const WithClause *b)
 
static bool _equalInferClause (const InferClause *a, const InferClause *b)
 
static bool _equalOnConflictClause (const OnConflictClause *a, const OnConflictClause *b)
 
static bool _equalCTESearchClause (const CTESearchClause *a, const CTESearchClause *b)
 
static bool _equalCTECycleClause (const CTECycleClause *a, const CTECycleClause *b)
 
static bool _equalCommonTableExpr (const CommonTableExpr *a, const CommonTableExpr *b)
 
static bool _equalXmlSerialize (const XmlSerialize *a, const XmlSerialize *b)
 
static bool _equalRoleSpec (const RoleSpec *a, const RoleSpec *b)
 
static bool _equalTriggerTransition (const TriggerTransition *a, const TriggerTransition *b)
 
static bool _equalPartitionElem (const PartitionElem *a, const PartitionElem *b)
 
static bool _equalPartitionSpec (const PartitionSpec *a, const PartitionSpec *b)
 
static bool _equalPartitionBoundSpec (const PartitionBoundSpec *a, const PartitionBoundSpec *b)
 
static bool _equalPartitionRangeDatum (const PartitionRangeDatum *a, const PartitionRangeDatum *b)
 
static bool _equalPartitionCmd (const PartitionCmd *a, const PartitionCmd *b)
 
static bool _equalList (const List *a, const List *b)
 
static bool _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:3122

Definition at line 53 of file equalfuncs.c.

Referenced by _equalA_ArrayExpr(), _equalA_Expr(), _equalA_Indices(), _equalA_Indirection(), _equalAccessPriv(), _equalAggref(), _equalAlias(), _equalAlterCollationStmt(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOperatorStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPolicyStmt(), _equalAlterPublicationStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterStatsStmt(), _equalAlterSubscriptionStmt(), _equalAlterSystemStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _equalAlterTypeStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalBooleanTest(), _equalBoolExpr(), _equalCallStmt(), _equalCaseExpr(), _equalCaseWhen(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnDef(), _equalColumnRef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalCompositeTypeStmt(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateDomainStmt(), _equalCreateEnumStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRangeStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStatsStmt(), _equalCreateStmt(), _equalCreateSubscriptionStmt(), _equalCreateTableAsStmt(), _equalCreateTableSpaceStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCTECycleClause(), _equalCTESearchClause(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExplainStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFromExpr(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalGroupingFunc(), _equalGroupingSet(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferClause(), _equalInferenceElem(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalMultiAssignRef(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalObjectWithArgs(), _equalOnConflictClause(), _equalOnConflictExpr(), _equalOpExpr(), _equalPartitionBoundSpec(), _equalPartitionCmd(), _equalPartitionElem(), _equalPartitionRangeDatum(), _equalPartitionSpec(), _equalPlaceHolderInfo(), _equalPLAssignStmt(), _equalPrepareStmt(), _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 _equalA_Expr(), _equalA_Indices(), _equalAggref(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlterObjectDependsStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterPublicationStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterStatsStmt(), _equalAlterSubscriptionStmt(), _equalAlterTableCmd(), _equalAlterTableMoveAllStmt(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseTestExpr(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceToDomainValue(), _equalCoerceViaIO(), _equalCollateExpr(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConst(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateAmStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreateExtensionStmt(), _equalCreateForeignServerStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreatePLangStmt(), _equalCreatePolicyStmt(), _equalCreatePublicationStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStatsStmt(), _equalCreateStmt(), _equalCreateTableAsStmt(), _equalCreateTransformStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCTECycleClause(), _equalCTESearchClause(), _equalCurrentOfExpr(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDiscardStmt(), _equalDistinctExpr(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropSubscriptionStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalFetchStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalGroupingFunc(), _equalGroupingSet(), _equalImportForeignSchemaStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInferenceElem(), _equalInsertStmt(), _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 2463 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2464 {
2465  COMPARE_NODE_FIELD(elements);
2466  COMPARE_LOCATION_FIELD(location);
2467 
2468  return true;
2469 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalA_Const()

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

Definition at line 2410 of file equalfuncs.c.

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

Referenced by equal().

2411 {
2412  if (!equal(&a->val, &b->val)) /* hack for in-line Value field */
2413  return false;
2414  COMPARE_LOCATION_FIELD(location);
2415 
2416  return true;
2417 }
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3122
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
Value val
Definition: parsenodes.h:298

◆ _equalA_Expr()

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

Definition at line 2380 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

2381 {
2382  COMPARE_SCALAR_FIELD(kind);
2384  COMPARE_NODE_FIELD(lexpr);
2385  COMPARE_NODE_FIELD(rexpr);
2386  COMPARE_LOCATION_FIELD(location);
2387 
2388  return true;
2389 }
#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

◆ _equalA_Indices()

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

Definition at line 2444 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2445 {
2446  COMPARE_SCALAR_FIELD(is_slice);
2447  COMPARE_NODE_FIELD(lidx);
2448  COMPARE_NODE_FIELD(uidx);
2449 
2450  return true;
2451 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalA_Indirection()

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

Definition at line 2454 of file equalfuncs.c.

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

2455 {
2457  COMPARE_NODE_FIELD(indirection);
2458 
2459  return true;
2460 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
void * arg

◆ _equalA_Star()

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

Definition at line 2438 of file equalfuncs.c.

Referenced by equal().

2439 {
2440  return true;
2441 }

◆ _equalAccessPriv()

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

Definition at line 1198 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1199 {
1200  COMPARE_STRING_FIELD(priv_name);
1201  COMPARE_NODE_FIELD(cols);
1202 
1203  return true;
1204 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAggref()

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

Definition at line 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

◆ _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 1150 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1151 {
1152  COMPARE_NODE_FIELD(collname);
1153 
1154  return true;
1155 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1731 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1732 {
1734  COMPARE_NODE_FIELD(setstmt);
1735 
1736  return true;
1737 }
#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 1722 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1723 {
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

◆ _equalAlterDefaultPrivilegesStmt()

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

Definition at line 1220 of file equalfuncs.c.

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

1221 {
1224 
1225  return true;
1226 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterDomainStmt()

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

Definition at line 1158 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1159 {
1160  COMPARE_SCALAR_FIELD(subtype);
1161  COMPARE_NODE_FIELD(typeName);
1163  COMPARE_NODE_FIELD(def);
1164  COMPARE_SCALAR_FIELD(behavior);
1165  COMPARE_SCALAR_FIELD(missing_ok);
1166 
1167  return true;
1168 }
#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 1622 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1623 {
1624  COMPARE_NODE_FIELD(typeName);
1625  COMPARE_STRING_FIELD(oldVal);
1626  COMPARE_STRING_FIELD(newVal);
1627  COMPARE_STRING_FIELD(newValNeighbor);
1628  COMPARE_SCALAR_FIELD(newValIsAfter);
1629  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1630 
1631  return true;
1632 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterEventTrigStmt()

static bool _equalAlterEventTrigStmt ( const AlterEventTrigStmt a,
const AlterEventTrigStmt b 
)
static

Definition at line 2098 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2099 {
2100  COMPARE_STRING_FIELD(trigname);
2101  COMPARE_SCALAR_FIELD(tgenabled);
2102 
2103  return true;
2104 }
#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 1932 of file equalfuncs.c.

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

Referenced by equal().

1933 {
1934  COMPARE_STRING_FIELD(extname);
1936  COMPARE_SCALAR_FIELD(objtype);
1937  COMPARE_NODE_FIELD(object);
1938 
1939  return true;
1940 }
#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 1923 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1924 {
1925  COMPARE_STRING_FIELD(extname);
1927 
1928  return true;
1929 }
#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 1953 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1954 {
1955  COMPARE_STRING_FIELD(fdwname);
1956  COMPARE_NODE_FIELD(func_options);
1958 
1959  return true;
1960 }
#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 1976 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1977 {
1978  COMPARE_STRING_FIELD(servername);
1979  COMPARE_STRING_FIELD(version);
1981  COMPARE_SCALAR_FIELD(has_version);
1982 
1983  return true;
1984 }
#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 1458 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1459 {
1460  COMPARE_SCALAR_FIELD(objtype);
1461  COMPARE_NODE_FIELD(func);
1462  COMPARE_NODE_FIELD(actions);
1463 
1464  return true;
1465 }
#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 478 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

479 {
480  COMPARE_NODE_FIELD(subplans);
481 
482  return true;
483 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1491 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1492 {
1493  COMPARE_SCALAR_FIELD(objectType);
1494  COMPARE_NODE_FIELD(relation);
1495  COMPARE_NODE_FIELD(object);
1496  COMPARE_NODE_FIELD(extname);
1497  COMPARE_SCALAR_FIELD(remove);
1498 
1499  return true;
1500 }
#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 1503 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1504 {
1505  COMPARE_SCALAR_FIELD(objectType);
1506  COMPARE_NODE_FIELD(relation);
1507  COMPARE_NODE_FIELD(object);
1508  COMPARE_STRING_FIELD(newschema);
1509  COMPARE_SCALAR_FIELD(missing_ok);
1510 
1511  return true;
1512 }
#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 1526 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1702 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1703 {
1704  COMPARE_NODE_FIELD(opfamilyname);
1705  COMPARE_STRING_FIELD(amname);
1706  COMPARE_SCALAR_FIELD(isDrop);
1707  COMPARE_NODE_FIELD(items);
1708 
1709  return true;
1710 }
#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 1515 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1516 {
1517  COMPARE_SCALAR_FIELD(objectType);
1518  COMPARE_NODE_FIELD(relation);
1519  COMPARE_NODE_FIELD(object);
1520  COMPARE_NODE_FIELD(newowner);
1521 
1522  return true;
1523 }
#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 2368 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2141 {
2142  COMPARE_NODE_FIELD(role);
2143  COMPARE_STRING_FIELD(database);
2144  COMPARE_NODE_FIELD(setstmt);
2145 
2146  return true;
2147 }
#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 2130 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2131 {
2132  COMPARE_NODE_FIELD(role);
2135 
2136  return true;
2137 }
#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 1831 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1832 {
1833  COMPARE_NODE_FIELD(sequence);
1835  COMPARE_SCALAR_FIELD(for_identity);
1836  COMPARE_SCALAR_FIELD(missing_ok);
1837 
1838  return true;
1839 }
#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 1423 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1424 {
1425  COMPARE_NODE_FIELD(defnames);
1426  COMPARE_SCALAR_FIELD(stxstattarget);
1427  COMPARE_SCALAR_FIELD(missing_ok);
1428 
1429  return true;
1430 }
#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 2330 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2332 {
2333  COMPARE_SCALAR_FIELD(kind);
2335  COMPARE_STRING_FIELD(conninfo);
2336  COMPARE_NODE_FIELD(publication);
2338 
2339  return true;
2340 }
#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 1810 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1811 {
1812  COMPARE_NODE_FIELD(setstmt);
1813 
1814  return true;
1815 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTableCmd()

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

Definition at line 1136 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1137 {
1138  COMPARE_SCALAR_FIELD(subtype);
1140  COMPARE_SCALAR_FIELD(num);
1141  COMPARE_NODE_FIELD(newowner);
1142  COMPARE_NODE_FIELD(def);
1143  COMPARE_SCALAR_FIELD(behavior);
1144  COMPARE_SCALAR_FIELD(missing_ok);
1145 
1146  return true;
1147 }
#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 1900 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1902 {
1903  COMPARE_STRING_FIELD(orig_tablespacename);
1904  COMPARE_SCALAR_FIELD(objtype);
1905  COMPARE_NODE_FIELD(roles);
1906  COMPARE_STRING_FIELD(new_tablespacename);
1907  COMPARE_SCALAR_FIELD(nowait);
1908 
1909  return true;
1910 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalAlterTableSpaceOptionsStmt()

static bool _equalAlterTableSpaceOptionsStmt ( const AlterTableSpaceOptionsStmt a,
const AlterTableSpaceOptionsStmt b 
)
static

Definition at line 1889 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1891 {
1892  COMPARE_STRING_FIELD(tablespacename);
1894  COMPARE_SCALAR_FIELD(isReset);
1895 
1896  return true;
1897 }
#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 1125 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1126 {
1127  COMPARE_NODE_FIELD(relation);
1128  COMPARE_NODE_FIELD(cmds);
1129  COMPARE_SCALAR_FIELD(objtype);
1130  COMPARE_SCALAR_FIELD(missing_ok);
1131 
1132  return true;
1133 }
#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 2278 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2280 {
2281  COMPARE_SCALAR_FIELD(kind);
2282  COMPARE_NODE_FIELD(cfgname);
2283  COMPARE_NODE_FIELD(tokentype);
2284  COMPARE_NODE_FIELD(dicts);
2285  COMPARE_SCALAR_FIELD(override);
2286  COMPARE_SCALAR_FIELD(replace);
2287  COMPARE_SCALAR_FIELD(missing_ok);
2288 
2289  return true;
2290 }
#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 2269 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

2270 {
2271  COMPARE_NODE_FIELD(dictname);
2273 
2274  return true;
2275 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterTypeStmt()

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

Definition at line 1535 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1536 {
1537  COMPARE_NODE_FIELD(typeName);
1539 
1540  return true;
1541 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalAlterUserMappingStmt()

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

Definition at line 1998 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1999 {
2001  COMPARE_STRING_FIELD(servername);
2003 
2004  return true;
2005 }
#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 916 of file equalfuncs.c.

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

Referenced by equal().

917 {
918  COMPARE_SCALAR_FIELD(parent_relid);
919  COMPARE_SCALAR_FIELD(child_relid);
920  COMPARE_SCALAR_FIELD(parent_reltype);
921  COMPARE_SCALAR_FIELD(child_reltype);
922  COMPARE_NODE_FIELD(translated_vars);
923  COMPARE_SCALAR_FIELD(num_child_cols);
924  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
925  COMPARE_SCALAR_FIELD(parent_reloid);
926 
927  return true;
928 }
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 534 of file equalfuncs.c.

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

Referenced by equal().

535 {
537  COMPARE_NODE_FIELD(elemexpr);
538  COMPARE_SCALAR_FIELD(resulttype);
539  COMPARE_SCALAR_FIELD(resulttypmod);
540  COMPARE_SCALAR_FIELD(resultcollid);
541  COMPARE_COERCIONFORM_FIELD(coerceformat);
542  COMPARE_LOCATION_FIELD(location);
543 
544  return true;
545 }
#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 602 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

603 {
604  COMPARE_SCALAR_FIELD(array_typeid);
605  COMPARE_SCALAR_FIELD(array_collid);
606  COMPARE_SCALAR_FIELD(element_typeid);
607  COMPARE_NODE_FIELD(elements);
608  COMPARE_SCALAR_FIELD(multidims);
609  COMPARE_LOCATION_FIELD(location);
610 
611  return true;
612 }
#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

◆ _equalBooleanTest()

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

Definition at line 702 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

703 {
705  COMPARE_SCALAR_FIELD(booltesttype);
706  COMPARE_LOCATION_FIELD(location);
707 
708  return true;
709 }
#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 432 of file equalfuncs.c.

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

Referenced by equal().

433 {
436  COMPARE_LOCATION_FIELD(location);
437 
438  return true;
439 }
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 1247 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1248 {
1249  COMPARE_NODE_FIELD(funccall);
1250  COMPARE_NODE_FIELD(funcexpr);
1251  COMPARE_NODE_FIELD(outargs);
1252 
1253  return true;
1254 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCaseExpr()

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

Definition at line 569 of file equalfuncs.c.

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

Referenced by equal().

570 {
571  COMPARE_SCALAR_FIELD(casetype);
572  COMPARE_SCALAR_FIELD(casecollid);
575  COMPARE_NODE_FIELD(defresult);
576  COMPARE_LOCATION_FIELD(location);
577 
578  return true;
579 }
#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 592 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

593 {
594  COMPARE_SCALAR_FIELD(typeId);
595  COMPARE_SCALAR_FIELD(typeMod);
596  COMPARE_SCALAR_FIELD(collation);
597 
598  return true;
599 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCaseWhen()

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

Definition at line 582 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

583 {
584  COMPARE_NODE_FIELD(expr);
585  COMPARE_NODE_FIELD(result);
586  COMPARE_LOCATION_FIELD(location);
587 
588  return true;
589 }
#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 1239 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1240 {
1241  COMPARE_STRING_FIELD(portalname);
1242 
1243  return true;
1244 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

◆ _equalClusterStmt()

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

Definition at line 1257 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1258 {
1259  COMPARE_NODE_FIELD(relation);
1260  COMPARE_STRING_FIELD(indexname);
1261  COMPARE_NODE_FIELD(params);
1262 
1263  return true;
1264 }
#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 640 of file equalfuncs.c.

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

Referenced by equal().

641 {
642  COMPARE_SCALAR_FIELD(coalescetype);
643  COMPARE_SCALAR_FIELD(coalescecollid);
645  COMPARE_LOCATION_FIELD(location);
646 
647  return true;
648 }
#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 712 of file equalfuncs.c.

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

Referenced by equal().

713 {
715  COMPARE_SCALAR_FIELD(resulttype);
716  COMPARE_SCALAR_FIELD(resulttypmod);
717  COMPARE_SCALAR_FIELD(resultcollid);
718  COMPARE_COERCIONFORM_FIELD(coercionformat);
719  COMPARE_LOCATION_FIELD(location);
720 
721  return true;
722 }
#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 725 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

726 {
727  COMPARE_SCALAR_FIELD(typeId);
728  COMPARE_SCALAR_FIELD(typeMod);
729  COMPARE_SCALAR_FIELD(collation);
730  COMPARE_LOCATION_FIELD(location);
731 
732  return true;
733 }
#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 522 of file equalfuncs.c.

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

Referenced by equal().

523 {
525  COMPARE_SCALAR_FIELD(resulttype);
526  COMPARE_SCALAR_FIELD(resultcollid);
527  COMPARE_COERCIONFORM_FIELD(coerceformat);
528  COMPARE_LOCATION_FIELD(location);
529 
530  return true;
531 }
#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 2518 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2519 {
2521  COMPARE_NODE_FIELD(collname);
2522  COMPARE_LOCATION_FIELD(location);
2523 
2524  return true;
2525 }
#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 559 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

560 {
562  COMPARE_SCALAR_FIELD(collOid);
563  COMPARE_LOCATION_FIELD(location);
564 
565  return true;
566 }
#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 2644 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2645 {
2646  COMPARE_STRING_FIELD(colname);
2647  COMPARE_NODE_FIELD(typeName);
2648  COMPARE_STRING_FIELD(compression);
2649  COMPARE_SCALAR_FIELD(inhcount);
2650  COMPARE_SCALAR_FIELD(is_local);
2651  COMPARE_SCALAR_FIELD(is_not_null);
2652  COMPARE_SCALAR_FIELD(is_from_type);
2653  COMPARE_SCALAR_FIELD(storage);
2654  COMPARE_NODE_FIELD(raw_default);
2655  COMPARE_NODE_FIELD(cooked_default);
2656  COMPARE_SCALAR_FIELD(identity);
2657  COMPARE_NODE_FIELD(identitySequence);
2658  COMPARE_SCALAR_FIELD(generated);
2659  COMPARE_NODE_FIELD(collClause);
2660  COMPARE_SCALAR_FIELD(collOid);
2661  COMPARE_NODE_FIELD(constraints);
2662  COMPARE_NODE_FIELD(fdwoptions);
2663  COMPARE_LOCATION_FIELD(location);
2664 
2665  return true;
2666 }
#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 2392 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1348 {
1349  COMPARE_SCALAR_FIELD(objtype);
1350  COMPARE_NODE_FIELD(object);
1351  COMPARE_STRING_FIELD(comment);
1352 
1353  return true;
1354 }
#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 2921 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2922 {
2923  COMPARE_STRING_FIELD(ctename);
2924  COMPARE_NODE_FIELD(aliascolnames);
2925  COMPARE_SCALAR_FIELD(ctematerialized);
2926  COMPARE_NODE_FIELD(ctequery);
2927  COMPARE_NODE_FIELD(search_clause);
2928  COMPARE_NODE_FIELD(cycle_clause);
2929  COMPARE_LOCATION_FIELD(location);
2930  COMPARE_SCALAR_FIELD(cterecursive);
2931  COMPARE_SCALAR_FIELD(cterefcount);
2932  COMPARE_NODE_FIELD(ctecolnames);
2933  COMPARE_NODE_FIELD(ctecoltypes);
2934  COMPARE_NODE_FIELD(ctecoltypmods);
2935  COMPARE_NODE_FIELD(ctecolcollations);
2936 
2937  return true;
2938 }
#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 1595 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1596 {
1597  COMPARE_NODE_FIELD(typevar);
1598  COMPARE_NODE_FIELD(coldeflist);
1599 
1600  return true;
1601 }
#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 2669 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2670 {
2671  COMPARE_SCALAR_FIELD(contype);
2672  COMPARE_STRING_FIELD(conname);
2673  COMPARE_SCALAR_FIELD(deferrable);
2674  COMPARE_SCALAR_FIELD(initdeferred);
2675  COMPARE_LOCATION_FIELD(location);
2676  COMPARE_SCALAR_FIELD(is_no_inherit);
2677  COMPARE_NODE_FIELD(raw_expr);
2678  COMPARE_STRING_FIELD(cooked_expr);
2679  COMPARE_SCALAR_FIELD(generated_when);
2680  COMPARE_NODE_FIELD(keys);
2681  COMPARE_NODE_FIELD(including);
2682  COMPARE_NODE_FIELD(exclusions);
2684  COMPARE_STRING_FIELD(indexname);
2685  COMPARE_STRING_FIELD(indexspace);
2686  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2687  COMPARE_STRING_FIELD(access_method);
2688  COMPARE_NODE_FIELD(where_clause);
2689  COMPARE_NODE_FIELD(pktable);
2690  COMPARE_NODE_FIELD(fk_attrs);
2691  COMPARE_NODE_FIELD(pk_attrs);
2692  COMPARE_SCALAR_FIELD(fk_matchtype);
2693  COMPARE_SCALAR_FIELD(fk_upd_action);
2694  COMPARE_SCALAR_FIELD(fk_del_action);
2695  COMPARE_NODE_FIELD(old_conpfeqop);
2696  COMPARE_SCALAR_FIELD(old_pktable_oid);
2697  COMPARE_SCALAR_FIELD(skip_validation);
2698  COMPARE_SCALAR_FIELD(initially_valid);
2699 
2700  return true;
2701 }
#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 2169 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2170 {
2171  COMPARE_NODE_FIELD(constraints);
2172  COMPARE_SCALAR_FIELD(deferred);
2173 
2174  return true;
2175 }
#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 548 of file equalfuncs.c.

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

Referenced by equal().

549 {
551  COMPARE_SCALAR_FIELD(resulttype);
552  COMPARE_COERCIONFORM_FIELD(convertformat);
553  COMPARE_LOCATION_FIELD(location);
554 
555  return true;
556 }
#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 1267 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1268 {
1269  COMPARE_NODE_FIELD(relation);
1270  COMPARE_NODE_FIELD(query);
1271  COMPARE_NODE_FIELD(attlist);
1272  COMPARE_SCALAR_FIELD(is_from);
1273  COMPARE_SCALAR_FIELD(is_program);
1276  COMPARE_NODE_FIELD(whereClause);
1277 
1278  return true;
1279 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
static char * filename
Definition: pg_dumpall.c:92
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateAmStmt()

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

Definition at line 2055 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2056 {
2057  COMPARE_STRING_FIELD(amname);
2058  COMPARE_NODE_FIELD(handler_name);
2059  COMPARE_SCALAR_FIELD(amtype);
2060 
2061  return true;
2062 }
#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 2212 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2213 {
2214  COMPARE_NODE_FIELD(sourcetype);
2215  COMPARE_NODE_FIELD(targettype);
2216  COMPARE_NODE_FIELD(func);
2217  COMPARE_SCALAR_FIELD(context);
2218  COMPARE_SCALAR_FIELD(inout);
2219 
2220  return true;
2221 }
#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 2200 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2201 {
2202  COMPARE_NODE_FIELD(conversion_name);
2203  COMPARE_STRING_FIELD(for_encoding_name);
2204  COMPARE_STRING_FIELD(to_encoding_name);
2205  COMPARE_NODE_FIELD(func_name);
2206  COMPARE_SCALAR_FIELD(def);
2207 
2208  return true;
2209 }
#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 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

◆ _equalCreateDomainStmt()

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

Definition at line 1656 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1657 {
1658  COMPARE_NODE_FIELD(domainname);
1659  COMPARE_NODE_FIELD(typeName);
1660  COMPARE_NODE_FIELD(collClause);
1661  COMPARE_NODE_FIELD(constraints);
1662 
1663  return true;
1664 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEnumStmt()

static bool _equalCreateEnumStmt ( const CreateEnumStmt a,
const CreateEnumStmt 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(vals);
1608 
1609  return true;
1610 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalCreateEventTrigStmt()

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

Definition at line 2087 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2088 {
2089  COMPARE_STRING_FIELD(trigname);
2090  COMPARE_STRING_FIELD(eventname);
2091  COMPARE_NODE_FIELD(whenclause);
2092  COMPARE_NODE_FIELD(funcname);
2093 
2094  return true;
2095 }
#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 1913 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1964 {
1965  COMPARE_STRING_FIELD(servername);
1966  COMPARE_STRING_FIELD(servertype);
1967  COMPARE_STRING_FIELD(version);
1968  COMPARE_STRING_FIELD(fdwname);
1969  COMPARE_SCALAR_FIELD(if_not_exists);
1971 
1972  return true;
1973 }
#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 2018 of file equalfuncs.c.

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

Referenced by equal().

2019 {
2020  if (!_equalCreateStmt(&a->base, &b->base))
2021  return false;
2022 
2023  COMPARE_STRING_FIELD(servername);
2025 
2026  return true;
2027 }
#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:1282

◆ _equalCreateFunctionStmt()

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

Definition at line 1433 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1434 {
1435  COMPARE_SCALAR_FIELD(is_procedure);
1436  COMPARE_SCALAR_FIELD(replace);
1437  COMPARE_NODE_FIELD(funcname);
1438  COMPARE_NODE_FIELD(parameters);
1439  COMPARE_NODE_FIELD(returnType);
1441  COMPARE_NODE_FIELD(sql_body);
1442 
1443  return true;
1444 }
#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 1680 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

1681 {
1682  COMPARE_SCALAR_FIELD(itemtype);
1684  COMPARE_SCALAR_FIELD(number);
1685  COMPARE_NODE_FIELD(order_family);
1686  COMPARE_NODE_FIELD(class_args);
1687  COMPARE_NODE_FIELD(storedtype);
1688 
1689  return true;
1690 }
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 1667 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1668 {
1669  COMPARE_NODE_FIELD(opclassname);
1670  COMPARE_NODE_FIELD(opfamilyname);
1671  COMPARE_STRING_FIELD(amname);
1672  COMPARE_NODE_FIELD(datatype);
1673  COMPARE_NODE_FIELD(items);
1674  COMPARE_SCALAR_FIELD(isDefault);
1675 
1676  return true;
1677 }
#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 1693 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2108 {
2109  COMPARE_SCALAR_FIELD(replace);
2110  COMPARE_STRING_FIELD(plname);
2111  COMPARE_NODE_FIELD(plhandler);
2112  COMPARE_NODE_FIELD(plinline);
2113  COMPARE_NODE_FIELD(plvalidator);
2114  COMPARE_SCALAR_FIELD(pltrusted);
2115 
2116  return true;
2117 }
#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 2354 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2355 {
2356  COMPARE_STRING_FIELD(policy_name);
2357  COMPARE_NODE_FIELD(table);
2358  COMPARE_STRING_FIELD(cmd_name);
2359  COMPARE_SCALAR_FIELD(permissive);
2360  COMPARE_NODE_FIELD(roles);
2361  COMPARE_NODE_FIELD(qual);
2362  COMPARE_NODE_FIELD(with_check);
2363 
2364  return true;
2365 }
#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 2293 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2295 {
2296  COMPARE_STRING_FIELD(pubname);
2298  COMPARE_NODE_FIELD(tables);
2299  COMPARE_SCALAR_FIELD(for_all_tables);
2300 
2301  return true;
2302 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalCreateRangeStmt()

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

Definition at line 1613 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalCreateRoleStmt()

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

Definition at line 2120 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2121 {
2122  COMPARE_SCALAR_FIELD(stmt_type);
2123  COMPARE_STRING_FIELD(role);
2125 
2126  return true;
2127 }
#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 2189 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2190 {
2191  COMPARE_STRING_FIELD(schemaname);
2192  COMPARE_NODE_FIELD(authrole);
2193  COMPARE_NODE_FIELD(schemaElts);
2194  COMPARE_SCALAR_FIELD(if_not_exists);
2195 
2196  return true;
2197 }
#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 1819 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1820 {
1821  COMPARE_NODE_FIELD(sequence);
1823  COMPARE_SCALAR_FIELD(ownerId);
1824  COMPARE_SCALAR_FIELD(for_identity);
1825  COMPARE_SCALAR_FIELD(if_not_exists);
1826 
1827  return true;
1828 }
#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 1409 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1410 {
1411  COMPARE_NODE_FIELD(defnames);
1412  COMPARE_NODE_FIELD(stat_types);
1413  COMPARE_NODE_FIELD(exprs);
1414  COMPARE_NODE_FIELD(relations);
1415  COMPARE_STRING_FIELD(stxcomment);
1416  COMPARE_SCALAR_FIELD(transformed);
1417  COMPARE_SCALAR_FIELD(if_not_exists);
1418 
1419  return true;
1420 }
#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 1282 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

1283 {
1284  COMPARE_NODE_FIELD(relation);
1285  COMPARE_NODE_FIELD(tableElts);
1286  COMPARE_NODE_FIELD(inhRelations);
1287  COMPARE_NODE_FIELD(partbound);
1288  COMPARE_NODE_FIELD(partspec);
1289  COMPARE_NODE_FIELD(ofTypename);
1290  COMPARE_NODE_FIELD(constraints);
1292  COMPARE_SCALAR_FIELD(oncommit);
1293  COMPARE_STRING_FIELD(tablespacename);
1294  COMPARE_STRING_FIELD(accessMethod);
1295  COMPARE_SCALAR_FIELD(if_not_exists);
1296 
1297  return true;
1298 }
#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 2318 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2320 {
2322  COMPARE_STRING_FIELD(conninfo);
2323  COMPARE_NODE_FIELD(publication);
2325 
2326  return true;
2327 }
#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 1779 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1780 {
1781  COMPARE_NODE_FIELD(query);
1782  COMPARE_NODE_FIELD(into);
1783  COMPARE_SCALAR_FIELD(objtype);
1784  COMPARE_SCALAR_FIELD(is_select_into);
1785  COMPARE_SCALAR_FIELD(if_not_exists);
1786 
1787  return true;
1788 }
#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 1869 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1870 {
1871  COMPARE_STRING_FIELD(tablespacename);
1872  COMPARE_NODE_FIELD(owner);
1873  COMPARE_STRING_FIELD(location);
1875 
1876  return true;
1877 }
#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 2043 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2044 {
2045  COMPARE_SCALAR_FIELD(replace);
2046  COMPARE_NODE_FIELD(type_name);
2047  COMPARE_STRING_FIELD(lang);
2048  COMPARE_NODE_FIELD(fromsql);
2049  COMPARE_NODE_FIELD(tosql);
2050 
2051  return true;
2052 }
#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 2065 of file equalfuncs.c.

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

Referenced by equal().

2066 {
2067  COMPARE_SCALAR_FIELD(replace);
2068  COMPARE_SCALAR_FIELD(isconstraint);
2069  COMPARE_STRING_FIELD(trigname);
2070  COMPARE_NODE_FIELD(relation);
2071  COMPARE_NODE_FIELD(funcname);
2073  COMPARE_SCALAR_FIELD(row);
2074  COMPARE_SCALAR_FIELD(timing);
2075  COMPARE_SCALAR_FIELD(events);
2076  COMPARE_NODE_FIELD(columns);
2077  COMPARE_NODE_FIELD(whenClause);
2078  COMPARE_NODE_FIELD(transitionRels);
2079  COMPARE_SCALAR_FIELD(deferrable);
2080  COMPARE_SCALAR_FIELD(initdeferred);
2081  COMPARE_NODE_FIELD(constrrel);
2082 
2083  return true;
2084 }
#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 1987 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

1988 {
1990  COMPARE_STRING_FIELD(servername);
1991  COMPARE_SCALAR_FIELD(if_not_exists);
1993 
1994  return true;
1995 }
#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 2904 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2905 {
2906  COMPARE_NODE_FIELD(cycle_col_list);
2907  COMPARE_STRING_FIELD(cycle_mark_column);
2908  COMPARE_NODE_FIELD(cycle_mark_value);
2909  COMPARE_NODE_FIELD(cycle_mark_default);
2910  COMPARE_STRING_FIELD(cycle_path_column);
2911  COMPARE_LOCATION_FIELD(location);
2912  COMPARE_SCALAR_FIELD(cycle_mark_type);
2913  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
2914  COMPARE_SCALAR_FIELD(cycle_mark_collation);
2915  COMPARE_SCALAR_FIELD(cycle_mark_neop);
2916 
2917  return true;
2918 }
#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 2893 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2894 {
2895  COMPARE_NODE_FIELD(search_col_list);
2896  COMPARE_SCALAR_FIELD(search_breadth_first);
2897  COMPARE_STRING_FIELD(search_seq_column);
2898  COMPARE_LOCATION_FIELD(location);
2899 
2900  return true;
2901 }
#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 747 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

748 {
749  COMPARE_SCALAR_FIELD(cvarno);
750  COMPARE_STRING_FIELD(cursor_name);
751  COMPARE_SCALAR_FIELD(cursor_param);
752 
753  return true;
754 }
#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 2243 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

2244 {
2246 
2247  return true;
2248 }
#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 1229 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1230 {
1231  COMPARE_STRING_FIELD(portalname);
1233  COMPARE_NODE_FIELD(query);
1234 
1235  return true;
1236 }
#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 2704 of file equalfuncs.c.

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

Referenced by equal().

2705 {
2706  COMPARE_STRING_FIELD(defnamespace);
2707  COMPARE_STRING_FIELD(defname);
2709  COMPARE_SCALAR_FIELD(defaction);
2710  COMPARE_LOCATION_FIELD(location);
2711 
2712  return true;
2713 }
#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 1311 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1312 {
1313  COMPARE_SCALAR_FIELD(kind);
1314  COMPARE_SCALAR_FIELD(oldstyle);
1315  COMPARE_NODE_FIELD(defnames);
1317  COMPARE_NODE_FIELD(definition);
1318  COMPARE_SCALAR_FIELD(if_not_exists);
1319  COMPARE_SCALAR_FIELD(replace);
1320 
1321  return true;
1322 }
#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 1038 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1039 {
1040  COMPARE_NODE_FIELD(relation);
1041  COMPARE_NODE_FIELD(usingClause);
1042  COMPARE_NODE_FIELD(whereClause);
1043  COMPARE_NODE_FIELD(returningList);
1044  COMPARE_NODE_FIELD(withClause);
1045 
1046  return true;
1047 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDiscardStmt()

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

Definition at line 1861 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

1862 {
1863  COMPARE_SCALAR_FIELD(target);
1864 
1865  return true;
1866 }
#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 1468 of file equalfuncs.c.

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

1469 {
1471 
1472  return true;
1473 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalDropdbStmt()

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

Definition at line 1740 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

1741 {
1743  COMPARE_SCALAR_FIELD(missing_ok);
1745 
1746  return true;
1747 }
#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 2251 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2252 {
2253  COMPARE_NODE_FIELD(roles);
2254  COMPARE_SCALAR_FIELD(behavior);
2255 
2256  return true;
2257 }
#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 2150 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2151 {
2152  COMPARE_NODE_FIELD(roles);
2153  COMPARE_SCALAR_FIELD(missing_ok);
2154 
2155  return true;
2156 }
#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 1325 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1326 {
1327  COMPARE_NODE_FIELD(objects);
1328  COMPARE_SCALAR_FIELD(removeType);
1329  COMPARE_SCALAR_FIELD(behavior);
1330  COMPARE_SCALAR_FIELD(missing_ok);
1331  COMPARE_SCALAR_FIELD(concurrent);
1332 
1333  return true;
1334 }
#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 2343 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

2345 {
2347  COMPARE_SCALAR_FIELD(missing_ok);
2348  COMPARE_SCALAR_FIELD(behavior);
2349 
2350  return true;
2351 }
#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 1880 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1881 {
1882  COMPARE_STRING_FIELD(tablespacename);
1883  COMPARE_SCALAR_FIELD(missing_ok);
1884 
1885  return true;
1886 }
#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 2008 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

2009 {
2011  COMPARE_STRING_FIELD(servername);
2012  COMPARE_SCALAR_FIELD(missing_ok);
2013 
2014  return true;
2015 }
#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 2234 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2235 {
2237  COMPARE_NODE_FIELD(params);
2238 
2239  return true;
2240 }
#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 1770 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

1771 {
1772  COMPARE_NODE_FIELD(query);
1774 
1775  return true;
1776 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalExtensibleNode()

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

Definition at line 947 of file equalfuncs.c.

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

Referenced by equal().

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

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1369 {
1370  COMPARE_SCALAR_FIELD(direction);
1371  COMPARE_SCALAR_FIELD(howMany);
1372  COMPARE_STRING_FIELD(portalname);
1373  COMPARE_SCALAR_FIELD(ismove);
1374 
1375  return true;
1376 }
#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 486 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

487 {
489  COMPARE_SCALAR_FIELD(fieldnum);
490  COMPARE_SCALAR_FIELD(resulttype);
491  COMPARE_SCALAR_FIELD(resulttypmod);
492  COMPARE_SCALAR_FIELD(resultcollid);
493 
494  return true;
495 }
#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 498 of file equalfuncs.c.

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

499 {
501  COMPARE_NODE_FIELD(newvals);
502  COMPARE_NODE_FIELD(fieldnums);
503  COMPARE_SCALAR_FIELD(resulttype);
504 
505  return true;
506 }
#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 814 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

815 {
816  COMPARE_NODE_FIELD(fromlist);
817  COMPARE_NODE_FIELD(quals);
818 
819  return true;
820 }
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalFuncCall()

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

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

2421 {
2422  COMPARE_NODE_FIELD(funcname);
2424  COMPARE_NODE_FIELD(agg_order);
2425  COMPARE_NODE_FIELD(agg_filter);
2426  COMPARE_NODE_FIELD(over);
2427  COMPARE_SCALAR_FIELD(agg_within_group);
2428  COMPARE_SCALAR_FIELD(agg_star);
2429  COMPARE_SCALAR_FIELD(agg_distinct);
2430  COMPARE_SCALAR_FIELD(func_variadic);
2431  COMPARE_COERCIONFORM_FIELD(funcformat);
2432  COMPARE_LOCATION_FIELD(location);
2433 
2434  return true;
2435 }
#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

◆ _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 1447 of file equalfuncs.c.

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

Referenced by equal().

1448 {
1450  COMPARE_NODE_FIELD(argType);
1452  COMPARE_NODE_FIELD(defexpr);
1453 
1454  return true;
1455 }
static PgChecksumMode mode
Definition: pg_checksums.c:65
#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 1207 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1208 {
1209  COMPARE_NODE_FIELD(granted_roles);
1210  COMPARE_NODE_FIELD(grantee_roles);
1211  COMPARE_SCALAR_FIELD(is_grant);
1212  COMPARE_SCALAR_FIELD(admin_opt);
1213  COMPARE_NODE_FIELD(grantor);
1214  COMPARE_SCALAR_FIELD(behavior);
1215 
1216  return true;
1217 }
#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 1171 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1172 {
1173  COMPARE_SCALAR_FIELD(is_grant);
1174  COMPARE_SCALAR_FIELD(targtype);
1175  COMPARE_SCALAR_FIELD(objtype);
1176  COMPARE_NODE_FIELD(objects);
1177  COMPARE_NODE_FIELD(privileges);
1178  COMPARE_NODE_FIELD(grantees);
1179  COMPARE_SCALAR_FIELD(grant_option);
1180  COMPARE_NODE_FIELD(grantor);
1181  COMPARE_SCALAR_FIELD(behavior);
1182 
1183  return true;
1184 }
#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 2818 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2819 {
2820  COMPARE_SCALAR_FIELD(kind);
2821  COMPARE_NODE_FIELD(content);
2822  COMPARE_LOCATION_FIELD(location);
2823 
2824  return true;
2825 }
#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 2030 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2031 {
2032  COMPARE_STRING_FIELD(server_name);
2033  COMPARE_STRING_FIELD(remote_schema);
2034  COMPARE_STRING_FIELD(local_schema);
2035  COMPARE_SCALAR_FIELD(list_type);
2036  COMPARE_NODE_FIELD(table_list);
2038 
2039  return true;
2040 }
#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 2619 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2620 {
2622  COMPARE_NODE_FIELD(expr);
2623  COMPARE_STRING_FIELD(indexcolname);
2624  COMPARE_NODE_FIELD(collation);
2625  COMPARE_NODE_FIELD(opclass);
2626  COMPARE_NODE_FIELD(opclassopts);
2627  COMPARE_SCALAR_FIELD(ordering);
2628  COMPARE_SCALAR_FIELD(nulls_ordering);
2629 
2630  return true;
2631 }
#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 1379 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

1380 {
1381  COMPARE_STRING_FIELD(idxname);
1382  COMPARE_NODE_FIELD(relation);
1383  COMPARE_STRING_FIELD(accessMethod);
1384  COMPARE_STRING_FIELD(tableSpace);
1385  COMPARE_NODE_FIELD(indexParams);
1386  COMPARE_NODE_FIELD(indexIncludingParams);
1388  COMPARE_NODE_FIELD(whereClause);
1389  COMPARE_NODE_FIELD(excludeOpNames);
1390  COMPARE_STRING_FIELD(idxcomment);
1391  COMPARE_SCALAR_FIELD(indexOid);
1392  COMPARE_SCALAR_FIELD(oldNode);
1393  COMPARE_SCALAR_FIELD(oldCreateSubid);
1394  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1395  COMPARE_SCALAR_FIELD(unique);
1396  COMPARE_SCALAR_FIELD(primary);
1397  COMPARE_SCALAR_FIELD(isconstraint);
1398  COMPARE_SCALAR_FIELD(deferrable);
1399  COMPARE_SCALAR_FIELD(initdeferred);
1400  COMPARE_SCALAR_FIELD(transformed);
1401  COMPARE_SCALAR_FIELD(concurrent);
1402  COMPARE_SCALAR_FIELD(if_not_exists);
1403  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1404 
1405  return true;
1406 }
#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 2870 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2871 {
2872  COMPARE_NODE_FIELD(indexElems);
2873  COMPARE_NODE_FIELD(whereClause);
2874  COMPARE_STRING_FIELD(conname);
2875  COMPARE_LOCATION_FIELD(location);
2876 
2877  return true;
2878 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

◆ _equalInferenceElem()

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

Definition at line 766 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

767 {
768  COMPARE_NODE_FIELD(expr);
769  COMPARE_SCALAR_FIELD(infercollid);
770  COMPARE_SCALAR_FIELD(inferopclass);
771 
772  return true;
773 }
#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 1024 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1025 {
1026  COMPARE_NODE_FIELD(relation);
1027  COMPARE_NODE_FIELD(cols);
1028  COMPARE_NODE_FIELD(selectStmt);
1029  COMPARE_NODE_FIELD(onConflictClause);
1030  COMPARE_NODE_FIELD(returningList);
1031  COMPARE_NODE_FIELD(withClause);
1032  COMPARE_SCALAR_FIELD(override);
1033 
1034  return true;
1035 }
#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 798 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

799 {
800  COMPARE_SCALAR_FIELD(jointype);
801  COMPARE_SCALAR_FIELD(isNatural);
802  COMPARE_NODE_FIELD(larg);
803  COMPARE_NODE_FIELD(rarg);
804  COMPARE_NODE_FIELD(usingClause);
805  COMPARE_NODE_FIELD(join_using_alias);
806  COMPARE_NODE_FIELD(quals);
807  COMPARE_NODE_FIELD(alias);
808  COMPARE_SCALAR_FIELD(rtindex);
809 
810  return true;
811 }
#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 3033 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().

3034 {
3035  const ListCell *item_a;
3036  const ListCell *item_b;
3037 
3038  /*
3039  * Try to reject by simple scalar checks before grovelling through all the
3040  * list elements...
3041  */
3043  COMPARE_SCALAR_FIELD(length);
3044 
3045  /*
3046  * We place the switch outside the loop for the sake of efficiency; this
3047  * may not be worth doing...
3048  */
3049  switch (a->type)
3050  {
3051  case T_List:
3052  forboth(item_a, a, item_b, b)
3053  {
3054  if (!equal(lfirst(item_a), lfirst(item_b)))
3055  return false;
3056  }
3057  break;
3058  case T_IntList:
3059  forboth(item_a, a, item_b, b)
3060  {
3061  if (lfirst_int(item_a) != lfirst_int(item_b))
3062  return false;
3063  }
3064  break;
3065  case T_OidList:
3066  forboth(item_a, a, item_b, b)
3067  {
3068  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3069  return false;
3070  }
3071  break;
3072  default:
3073  elog(ERROR, "unrecognized list node type: %d",
3074  (int) a->type);
3075  return false; /* keep compiler quiet */
3076  }
3077 
3078  /*
3079  * If we got here, we should have run out of elements of both lists
3080  */
3081  Assert(item_a == NULL);
3082  Assert(item_b == NULL);
3083 
3084  return true;
3085 }
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:446
bool equal(const void *a, const void *b)
Definition: equalfuncs.c:3122
#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 1567 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

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

◆ _equalLoadStmt()

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

Definition at line 1648 of file equalfuncs.c.

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

1649 {
1651 
1652  return true;
1653 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67
static char * filename
Definition: pg_dumpall.c:92

◆ _equalLockingClause()

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

Definition at line 2716 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2717 {
2718  COMPARE_NODE_FIELD(lockedRels);
2719  COMPARE_SCALAR_FIELD(strength);
2720  COMPARE_SCALAR_FIELD(waitPolicy);
2721 
2722  return true;
2723 }
#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 2159 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

2160 {
2161  COMPARE_NODE_FIELD(relations);
2163  COMPARE_SCALAR_FIELD(nowait);
2164 
2165  return true;
2166 }
static PgChecksumMode mode
Definition: pg_checksums.c:65
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalMinMaxExpr()

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

Definition at line 651 of file equalfuncs.c.

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

Referenced by equal().

652 {
653  COMPARE_SCALAR_FIELD(minmaxtype);
654  COMPARE_SCALAR_FIELD(minmaxcollid);
655  COMPARE_SCALAR_FIELD(inputcollid);
658  COMPARE_LOCATION_FIELD(location);
659 
660  return true;
661 }
#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 2483 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and source.

Referenced by equal().

2484 {
2486  COMPARE_SCALAR_FIELD(colno);
2487  COMPARE_SCALAR_FIELD(ncolumns);
2488 
2489  return true;
2490 }
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 757 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

758 {
759  COMPARE_SCALAR_FIELD(seqid);
760  COMPARE_SCALAR_FIELD(typeId);
761 
762  return true;
763 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalNotifyStmt()

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

Definition at line 1558 of file equalfuncs.c.

References COMPARE_STRING_FIELD.

Referenced by equal().

1559 {
1560  COMPARE_STRING_FIELD(conditionname);
1561  COMPARE_STRING_FIELD(payload);
1562 
1563  return true;
1564 }
#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 691 of file equalfuncs.c.

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

692 {
694  COMPARE_SCALAR_FIELD(nulltesttype);
695  COMPARE_SCALAR_FIELD(argisrow);
696  COMPARE_LOCATION_FIELD(location);
697 
698  return true;
699 }
#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 1187 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1188 {
1189  COMPARE_NODE_FIELD(objname);
1190  COMPARE_NODE_FIELD(objargs);
1191  COMPARE_NODE_FIELD(objfuncargs);
1192  COMPARE_SCALAR_FIELD(args_unspecified);
1193 
1194  return true;
1195 }
#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 2881 of file equalfuncs.c.

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

Referenced by equal().

2882 {
2884  COMPARE_NODE_FIELD(infer);
2885  COMPARE_NODE_FIELD(targetList);
2886  COMPARE_NODE_FIELD(whereClause);
2887  COMPARE_LOCATION_FIELD(location);
2888 
2889  return true;
2890 }
#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 823 of file equalfuncs.c.

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

824 {
826  COMPARE_NODE_FIELD(arbiterElems);
827  COMPARE_NODE_FIELD(arbiterWhere);
828  COMPARE_SCALAR_FIELD(constraint);
829  COMPARE_NODE_FIELD(onConflictSet);
830  COMPARE_NODE_FIELD(onConflictWhere);
831  COMPARE_SCALAR_FIELD(exclRelIndex);
832  COMPARE_NODE_FIELD(exclRelTlist);
833 
834  return true;
835 }
#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 2401 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2402 {
2403  COMPARE_SCALAR_FIELD(number);
2404  COMPARE_LOCATION_FIELD(location);
2405 
2406  return true;
2407 }
#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 2994 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2995 {
2996  COMPARE_SCALAR_FIELD(strategy);
2997  COMPARE_SCALAR_FIELD(is_default);
2998  COMPARE_SCALAR_FIELD(modulus);
2999  COMPARE_SCALAR_FIELD(remainder);
3000  COMPARE_NODE_FIELD(listdatums);
3001  COMPARE_NODE_FIELD(lowerdatums);
3002  COMPARE_NODE_FIELD(upperdatums);
3003  COMPARE_LOCATION_FIELD(location);
3004 
3005  return true;
3006 }
#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 3019 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

3020 {
3022  COMPARE_NODE_FIELD(bound);
3023  COMPARE_SCALAR_FIELD(concurrent);
3024 
3025  return true;
3026 }
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 2972 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2973 {
2975  COMPARE_NODE_FIELD(expr);
2976  COMPARE_NODE_FIELD(collation);
2977  COMPARE_NODE_FIELD(opclass);
2978  COMPARE_LOCATION_FIELD(location);
2979 
2980  return true;
2981 }
#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 3009 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

3010 {
3011  COMPARE_SCALAR_FIELD(kind);
3013  COMPARE_LOCATION_FIELD(location);
3014 
3015  return true;
3016 }
static struct @143 value
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:85
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPartitionSpec()

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

Definition at line 2984 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2985 {
2986  COMPARE_STRING_FIELD(strategy);
2987  COMPARE_NODE_FIELD(partParams);
2988  COMPARE_LOCATION_FIELD(location);
2989 
2990  return true;
2991 }
#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 842 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

843 {
844  /* We assume pointer equality is sufficient to compare the eclasses */
845  COMPARE_SCALAR_FIELD(pk_eclass);
846  COMPARE_SCALAR_FIELD(pk_opfamily);
847  COMPARE_SCALAR_FIELD(pk_strategy);
848  COMPARE_SCALAR_FIELD(pk_nulls_first);
849 
850  return true;
851 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

◆ _equalPlaceHolderInfo()

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

Definition at line 931 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

932 {
933  COMPARE_SCALAR_FIELD(phid);
934  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
935  COMPARE_BITMAPSET_FIELD(ph_eval_at);
936  COMPARE_BITMAPSET_FIELD(ph_lateral);
937  COMPARE_BITMAPSET_FIELD(ph_needed);
938  COMPARE_SCALAR_FIELD(ph_width);
939 
940  return true;
941 }
#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 873 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

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

◆ _equalPLAssignStmt()

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

Definition at line 1113 of file equalfuncs.c.

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

Referenced by equal().

1114 {
1116  COMPARE_NODE_FIELD(indirection);
1117  COMPARE_SCALAR_FIELD(nnames);
1119  COMPARE_LOCATION_FIELD(location);
1120 
1121  return true;
1122 }
#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 2224 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2225 {
2227  COMPARE_NODE_FIELD(argtypes);
2228  COMPARE_NODE_FIELD(query);
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

◆ _equalQuery()

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

Definition at line 968 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

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

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

2566 {
2567  COMPARE_SCALAR_FIELD(lateral);
2568  COMPARE_SCALAR_FIELD(ordinality);
2569  COMPARE_SCALAR_FIELD(is_rowsfrom);
2571  COMPARE_NODE_FIELD(alias);
2572  COMPARE_NODE_FIELD(coldeflist);
2573 
2574  return true;
2575 }
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 2555 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2556 {
2557  COMPARE_SCALAR_FIELD(lateral);
2558  COMPARE_NODE_FIELD(subquery);
2559  COMPARE_NODE_FIELD(alias);
2560 
2561  return true;
2562 }
#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 2590 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2591 {
2592  COMPARE_SCALAR_FIELD(lateral);
2593  COMPARE_NODE_FIELD(docexpr);
2594  COMPARE_NODE_FIELD(rowexpr);
2595  COMPARE_NODE_FIELD(namespaces);
2596  COMPARE_NODE_FIELD(columns);
2597  COMPARE_NODE_FIELD(alias);
2598  COMPARE_LOCATION_FIELD(location);
2599 
2600  return true;
2601 }
#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 2604 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

2605 {
2606  COMPARE_STRING_FIELD(colname);
2607  COMPARE_NODE_FIELD(typeName);
2608  COMPARE_SCALAR_FIELD(for_ordinality);
2609  COMPARE_SCALAR_FIELD(is_not_null);
2610  COMPARE_NODE_FIELD(colexpr);
2611  COMPARE_NODE_FIELD(coldefexpr);
2612  COMPARE_LOCATION_FIELD(location);
2613 
2614  return true;
2615 }
#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 2578 of file equalfuncs.c.

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

2579 {
2580  COMPARE_NODE_FIELD(relation);
2581  COMPARE_NODE_FIELD(method);
2583  COMPARE_NODE_FIELD(repeatable);
2584  COMPARE_LOCATION_FIELD(location);
2585 
2586  return true;
2587 }
#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 2726 of file equalfuncs.c.

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

Referenced by equal().

2727 {
2728  COMPARE_SCALAR_FIELD(rtekind);
2729  COMPARE_SCALAR_FIELD(relid);
2730  COMPARE_SCALAR_FIELD(relkind);
2731  COMPARE_SCALAR_FIELD(rellockmode);
2732  COMPARE_NODE_FIELD(tablesample);
2733  COMPARE_NODE_FIELD(subquery);
2734  COMPARE_SCALAR_FIELD(security_barrier);
2735  COMPARE_SCALAR_FIELD(jointype);
2736  COMPARE_SCALAR_FIELD(joinmergedcols);
2737  COMPARE_NODE_FIELD(joinaliasvars);
2738  COMPARE_NODE_FIELD(joinleftcols);
2739  COMPARE_NODE_FIELD(joinrightcols);
2740  COMPARE_NODE_FIELD(join_using_alias);
2742  COMPARE_SCALAR_FIELD(funcordinality);
2743  COMPARE_NODE_FIELD(tablefunc);
2744  COMPARE_NODE_FIELD(values_lists);
2745  COMPARE_STRING_FIELD(ctename);
2746  COMPARE_SCALAR_FIELD(ctelevelsup);
2747  COMPARE_SCALAR_FIELD(self_reference);
2748  COMPARE_NODE_FIELD(coltypes);
2749  COMPARE_NODE_FIELD(coltypmods);
2750  COMPARE_NODE_FIELD(colcollations);
2751  COMPARE_STRING_FIELD(enrname);
2752  COMPARE_SCALAR_FIELD(enrtuples);
2753  COMPARE_NODE_FIELD(alias);
2754  COMPARE_NODE_FIELD(eref);
2755  COMPARE_SCALAR_FIELD(lateral);
2756  COMPARE_SCALAR_FIELD(inh);
2757  COMPARE_SCALAR_FIELD(inFromCl);
2758  COMPARE_SCALAR_FIELD(requiredPerms);
2759  COMPARE_SCALAR_FIELD(checkAsUser);
2760  COMPARE_BITMAPSET_FIELD(selectedCols);
2761  COMPARE_BITMAPSET_FIELD(insertedCols);
2762  COMPARE_BITMAPSET_FIELD(updatedCols);
2763  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2764  COMPARE_NODE_FIELD(securityQuals);
2765 
2766  return true;
2767 }
#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 2770 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

2771 {
2772  COMPARE_NODE_FIELD(funcexpr);
2773  COMPARE_SCALAR_FIELD(funccolcount);
2774  COMPARE_NODE_FIELD(funccolnames);
2775  COMPARE_NODE_FIELD(funccoltypes);
2776  COMPARE_NODE_FIELD(funccoltypmods);
2777  COMPARE_NODE_FIELD(funccolcollations);
2778  COMPARE_BITMAPSET_FIELD(funcparams);
2779 
2780  return true;
2781 }
#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 790 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD.

Referenced by equal().

791 {
792  COMPARE_SCALAR_FIELD(rtindex);
793 
794  return true;
795 }
#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 1014 of file equalfuncs.c.

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1015 {
1016  COMPARE_NODE_FIELD(stmt);
1017  COMPARE_LOCATION_FIELD(stmt_location);
1018  COMPARE_SCALAR_FIELD(stmt_len);
1019 
1020  return true;
1021 }
#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 2260 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalRefreshMatViewStmt()

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

Definition at line 1791 of file equalfuncs.c.

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

1792 {
1793  COMPARE_SCALAR_FIELD(concurrent);
1794  COMPARE_SCALAR_FIELD(skipData);
1795  COMPARE_NODE_FIELD(relation);
1796 
1797  return true;
1798 }
#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 2178 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

2179 {
2180  COMPARE_SCALAR_FIELD(kind);
2181  COMPARE_NODE_FIELD(relation);
2183  COMPARE_NODE_FIELD(params);
2184 
2185  return true;
2186 }
#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 509 of file equalfuncs.c.

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

Referenced by equal().

510 {
512  COMPARE_SCALAR_FIELD(resulttype);
513  COMPARE_SCALAR_FIELD(resulttypmod);
514  COMPARE_SCALAR_FIELD(resultcollid);
515  COMPARE_COERCIONFORM_FIELD(relabelformat);
516  COMPARE_LOCATION_FIELD(location);
517 
518  return true;
519 }
#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 1476 of file equalfuncs.c.

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

1477 {
1478  COMPARE_SCALAR_FIELD(renameType);
1479  COMPARE_SCALAR_FIELD(relationType);
1480  COMPARE_NODE_FIELD(relation);
1481  COMPARE_NODE_FIELD(object);
1483  COMPARE_STRING_FIELD(newname);
1484  COMPARE_SCALAR_FIELD(behavior);
1485  COMPARE_SCALAR_FIELD(missing_ok);
1486 
1487  return true;
1488 }
#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 1801 of file equalfuncs.c.

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

1802 {
1803  COMPARE_SCALAR_FIELD(identity_type);
1805 
1806  return true;
1807 }
#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 2472 of file equalfuncs.c.

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

Referenced by equal().

2473 {
2475  COMPARE_NODE_FIELD(indirection);
2477  COMPARE_LOCATION_FIELD(location);
2478 
2479  return true;
2480 }
#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 854 of file equalfuncs.c.

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

855 {
856  COMPARE_NODE_FIELD(clause);
857  COMPARE_SCALAR_FIELD(is_pushed_down);
858  COMPARE_SCALAR_FIELD(outerjoin_delayed);
859  COMPARE_SCALAR_FIELD(security_level);
860  COMPARE_BITMAPSET_FIELD(required_relids);
861  COMPARE_BITMAPSET_FIELD(outer_relids);
862  COMPARE_BITMAPSET_FIELD(nullable_relids);
863 
864  /*
865  * We ignore all the remaining fields, since they may not be set yet, and
866  * should be derivable from the clause anyway.
867  */
868 
869  return true;
870 }
#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 1105 of file equalfuncs.c.

References COMPARE_NODE_FIELD.

Referenced by equal().

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

◆ _equalRoleSpec()

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