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_ARRAY_FIELD(fldname)
 
#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 _equalPublicationObject (const PublicationObjSpec *a, const PublicationObjSpec *b)
 
static bool _equalPublicationTable (const PublicationTable *a, const PublicationTable *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 _equalInteger (const Integer *a, const Integer *b)
 
static bool _equalFloat (const Float *a, const Float *b)
 
static bool _equalBoolean (const Boolean *a, const Boolean *b)
 
static bool _equalString (const String *a, const String *b)
 
static bool _equalBitString (const BitString *a, const BitString *b)
 
bool equal (const void *a, const void *b)
 

Macro Definition Documentation

◆ COMPARE_ARRAY_FIELD

#define COMPARE_ARRAY_FIELD (   fldname)
Value:
do { \
if (memcmp(a->fldname, b->fldname, sizeof(a->fldname)) != 0) \
return false; \
} while (0)
int b
Definition: isn.c:70
int a
Definition: isn.c:69

Definition at line 78 of file equalfuncs.c.

◆ 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.

◆ COMPARE_COERCIONFORM_FIELD

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

Definition at line 96 of file equalfuncs.c.

◆ COMPARE_LOCATION_FIELD

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

Definition at line 92 of file equalfuncs.c.

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

Definition at line 53 of file equalfuncs.c.

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

◆ 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.

◆ 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.

◆ equalstr

#define equalstr (   a,
  b 
)     (((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 2496 of file equalfuncs.c.

2497 {
2498  COMPARE_NODE_FIELD(elements);
2499  COMPARE_LOCATION_FIELD(location);
2500 
2501  return true;
2502 }
#define COMPARE_LOCATION_FIELD(fldname)
Definition: equalfuncs.c:92
#define COMPARE_NODE_FIELD(fldname)
Definition: equalfuncs.c:53

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalA_Const()

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

Definition at line 2437 of file equalfuncs.c.

2438 {
2439  /*
2440  * Hack for in-line val field. Also val is not valid is isnull is
2441  * true.
2442  */
2443  if (!a->isnull && !b->isnull &&
2444  !equal(&a->val, &b->val))
2445  return false;
2446  COMPARE_SCALAR_FIELD(isnull);
2447  COMPARE_LOCATION_FIELD(location);
2448 
2449  return true;
2450 }
#define COMPARE_SCALAR_FIELD(fldname)
Definition: equalfuncs.c:46

References a, b, COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and equal().

Referenced by equal().

◆ _equalA_Expr()

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

Definition at line 2407 of file equalfuncs.c.

2408 {
2409  COMPARE_SCALAR_FIELD(kind);
2411  COMPARE_NODE_FIELD(lexpr);
2412  COMPARE_NODE_FIELD(rexpr);
2413  COMPARE_LOCATION_FIELD(location);
2414 
2415  return true;
2416 }
const char * name
Definition: encode.c:561

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

◆ _equalA_Indices()

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

Definition at line 2477 of file equalfuncs.c.

2478 {
2479  COMPARE_SCALAR_FIELD(is_slice);
2480  COMPARE_NODE_FIELD(lidx);
2481  COMPARE_NODE_FIELD(uidx);
2482 
2483  return true;
2484 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalA_Indirection()

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

Definition at line 2487 of file equalfuncs.c.

2488 {
2490  COMPARE_NODE_FIELD(indirection);
2491 
2492  return true;
2493 }
void * arg

References arg, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalA_Star()

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

Definition at line 2471 of file equalfuncs.c.

2472 {
2473  return true;
2474 }

Referenced by equal().

◆ _equalAccessPriv()

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

Definition at line 1205 of file equalfuncs.c.

1206 {
1207  COMPARE_STRING_FIELD(priv_name);
1208  COMPARE_NODE_FIELD(cols);
1209 
1210  return true;
1211 }
#define COMPARE_STRING_FIELD(fldname)
Definition: equalfuncs.c:67

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAggref()

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

Definition at line 224 of file equalfuncs.c.

225 {
226  COMPARE_SCALAR_FIELD(aggfnoid);
227  COMPARE_SCALAR_FIELD(aggtype);
228  COMPARE_SCALAR_FIELD(aggcollid);
229  COMPARE_SCALAR_FIELD(inputcollid);
230  /* ignore aggtranstype since it might not be set yet */
231  COMPARE_NODE_FIELD(aggargtypes);
232  COMPARE_NODE_FIELD(aggdirectargs);
234  COMPARE_NODE_FIELD(aggorder);
235  COMPARE_NODE_FIELD(aggdistinct);
236  COMPARE_NODE_FIELD(aggfilter);
237  COMPARE_SCALAR_FIELD(aggstar);
238  COMPARE_SCALAR_FIELD(aggvariadic);
239  COMPARE_SCALAR_FIELD(aggkind);
240  COMPARE_SCALAR_FIELD(agglevelsup);
241  COMPARE_SCALAR_FIELD(aggsplit);
242  COMPARE_SCALAR_FIELD(aggno);
243  COMPARE_SCALAR_FIELD(aggtransno);
244  COMPARE_LOCATION_FIELD(location);
245 
246  return true;
247 }

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

Referenced by equal().

◆ _equalAlias()

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

Definition at line 105 of file equalfuncs.c.

106 {
107  COMPARE_STRING_FIELD(aliasname);
108  COMPARE_NODE_FIELD(colnames);
109 
110  return true;
111 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterCollationStmt()

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

Definition at line 1157 of file equalfuncs.c.

1158 {
1159  COMPARE_NODE_FIELD(collname);
1160 
1161  return true;
1162 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 1738 of file equalfuncs.c.

1739 {
1741  COMPARE_NODE_FIELD(setstmt);
1742 
1743  return true;
1744 }
char * dbname
Definition: streamutil.c:51

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

◆ _equalAlterDatabaseStmt()

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

Definition at line 1729 of file equalfuncs.c.

1730 {
1733 
1734  return true;
1735 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

◆ _equalAlterDefaultPrivilegesStmt()

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

Definition at line 1227 of file equalfuncs.c.

1228 {
1231 
1232  return true;
1233 }

References generate_unaccent_rules::action, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterDomainStmt()

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

Definition at line 1165 of file equalfuncs.c.

1166 {
1167  COMPARE_SCALAR_FIELD(subtype);
1168  COMPARE_NODE_FIELD(typeName);
1170  COMPARE_NODE_FIELD(def);
1171  COMPARE_SCALAR_FIELD(behavior);
1172  COMPARE_SCALAR_FIELD(missing_ok);
1173 
1174  return true;
1175 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalAlterEnumStmt()

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

Definition at line 1629 of file equalfuncs.c.

1630 {
1631  COMPARE_NODE_FIELD(typeName);
1632  COMPARE_STRING_FIELD(oldVal);
1633  COMPARE_STRING_FIELD(newVal);
1634  COMPARE_STRING_FIELD(newValNeighbor);
1635  COMPARE_SCALAR_FIELD(newValIsAfter);
1636  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1637 
1638  return true;
1639 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterEventTrigStmt()

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

Definition at line 2105 of file equalfuncs.c.

2106 {
2107  COMPARE_STRING_FIELD(trigname);
2108  COMPARE_SCALAR_FIELD(tgenabled);
2109 
2110  return true;
2111 }

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterExtensionContentsStmt()

static bool _equalAlterExtensionContentsStmt ( const AlterExtensionContentsStmt a,
const AlterExtensionContentsStmt b 
)
static

Definition at line 1939 of file equalfuncs.c.

1940 {
1941  COMPARE_STRING_FIELD(extname);
1943  COMPARE_SCALAR_FIELD(objtype);
1944  COMPARE_NODE_FIELD(object);
1945 
1946  return true;
1947 }

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

Referenced by equal().

◆ _equalAlterExtensionStmt()

static bool _equalAlterExtensionStmt ( const AlterExtensionStmt a,
const AlterExtensionStmt b 
)
static

Definition at line 1930 of file equalfuncs.c.

1931 {
1932  COMPARE_STRING_FIELD(extname);
1934 
1935  return true;
1936 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterFdwStmt()

static bool _equalAlterFdwStmt ( const AlterFdwStmt a,
const AlterFdwStmt b 
)
static

Definition at line 1960 of file equalfuncs.c.

1961 {
1962  COMPARE_STRING_FIELD(fdwname);
1963  COMPARE_NODE_FIELD(func_options);
1965 
1966  return true;
1967 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterForeignServerStmt()

static bool _equalAlterForeignServerStmt ( const AlterForeignServerStmt a,
const AlterForeignServerStmt b 
)
static

Definition at line 1983 of file equalfuncs.c.

1984 {
1985  COMPARE_STRING_FIELD(servername);
1986  COMPARE_STRING_FIELD(version);
1988  COMPARE_SCALAR_FIELD(has_version);
1989 
1990  return true;
1991 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterFunctionStmt()

static bool _equalAlterFunctionStmt ( const AlterFunctionStmt a,
const AlterFunctionStmt b 
)
static

Definition at line 1465 of file equalfuncs.c.

1466 {
1467  COMPARE_SCALAR_FIELD(objtype);
1468  COMPARE_NODE_FIELD(func);
1469  COMPARE_NODE_FIELD(actions);
1470 
1471  return true;
1472 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlternativeSubPlan()

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

Definition at line 485 of file equalfuncs.c.

486 {
487  COMPARE_NODE_FIELD(subplans);
488 
489  return true;
490 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1498 of file equalfuncs.c.

1499 {
1500  COMPARE_SCALAR_FIELD(objectType);
1501  COMPARE_NODE_FIELD(relation);
1502  COMPARE_NODE_FIELD(object);
1503  COMPARE_NODE_FIELD(extname);
1504  COMPARE_SCALAR_FIELD(remove);
1505 
1506  return true;
1507 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterObjectSchemaStmt()

static bool _equalAlterObjectSchemaStmt ( const AlterObjectSchemaStmt a,
const AlterObjectSchemaStmt b 
)
static

Definition at line 1510 of file equalfuncs.c.

1511 {
1512  COMPARE_SCALAR_FIELD(objectType);
1513  COMPARE_NODE_FIELD(relation);
1514  COMPARE_NODE_FIELD(object);
1515  COMPARE_STRING_FIELD(newschema);
1516  COMPARE_SCALAR_FIELD(missing_ok);
1517 
1518  return true;
1519 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterOperatorStmt()

static bool _equalAlterOperatorStmt ( const AlterOperatorStmt a,
const AlterOperatorStmt b 
)
static

Definition at line 1533 of file equalfuncs.c.

1534 {
1535  COMPARE_NODE_FIELD(opername);
1537 
1538  return true;
1539 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterOpFamilyStmt()

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

Definition at line 1709 of file equalfuncs.c.

1710 {
1711  COMPARE_NODE_FIELD(opfamilyname);
1712  COMPARE_STRING_FIELD(amname);
1713  COMPARE_SCALAR_FIELD(isDrop);
1714  COMPARE_NODE_FIELD(items);
1715 
1716  return true;
1717 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterOwnerStmt()

static bool _equalAlterOwnerStmt ( const AlterOwnerStmt a,
const AlterOwnerStmt b 
)
static

Definition at line 1522 of file equalfuncs.c.

1523 {
1524  COMPARE_SCALAR_FIELD(objectType);
1525  COMPARE_NODE_FIELD(relation);
1526  COMPARE_NODE_FIELD(object);
1527  COMPARE_NODE_FIELD(newowner);
1528 
1529  return true;
1530 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterPolicyStmt()

static bool _equalAlterPolicyStmt ( const AlterPolicyStmt a,
const AlterPolicyStmt b 
)
static

Definition at line 2395 of file equalfuncs.c.

2396 {
2397  COMPARE_STRING_FIELD(policy_name);
2398  COMPARE_NODE_FIELD(table);
2399  COMPARE_NODE_FIELD(roles);
2400  COMPARE_NODE_FIELD(qual);
2401  COMPARE_NODE_FIELD(with_check);
2402 
2403  return true;
2404 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterPublicationStmt()

static bool _equalAlterPublicationStmt ( const AlterPublicationStmt a,
const AlterPublicationStmt b 
)
static

Definition at line 2332 of file equalfuncs.c.

2334 {
2335  COMPARE_STRING_FIELD(pubname);
2337  COMPARE_NODE_FIELD(pubobjects);
2338  COMPARE_SCALAR_FIELD(for_all_tables);
2340 
2341  return true;
2342 }

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

Referenced by equal().

◆ _equalAlterRoleSetStmt()

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

Definition at line 2147 of file equalfuncs.c.

2148 {
2149  COMPARE_NODE_FIELD(role);
2150  COMPARE_STRING_FIELD(database);
2151  COMPARE_NODE_FIELD(setstmt);
2152 
2153  return true;
2154 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterRoleStmt()

static bool _equalAlterRoleStmt ( const AlterRoleStmt a,
const AlterRoleStmt b 
)
static

Definition at line 2137 of file equalfuncs.c.

2138 {
2139  COMPARE_NODE_FIELD(role);
2142 
2143  return true;
2144 }

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterSeqStmt()

static bool _equalAlterSeqStmt ( const AlterSeqStmt a,
const AlterSeqStmt b 
)
static

Definition at line 1838 of file equalfuncs.c.

1839 {
1840  COMPARE_NODE_FIELD(sequence);
1842  COMPARE_SCALAR_FIELD(for_identity);
1843  COMPARE_SCALAR_FIELD(missing_ok);
1844 
1845  return true;
1846 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterStatsStmt()

static bool _equalAlterStatsStmt ( const AlterStatsStmt a,
const AlterStatsStmt b 
)
static

Definition at line 1430 of file equalfuncs.c.

1431 {
1432  COMPARE_NODE_FIELD(defnames);
1433  COMPARE_SCALAR_FIELD(stxstattarget);
1434  COMPARE_SCALAR_FIELD(missing_ok);
1435 
1436  return true;
1437 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterSubscriptionStmt()

static bool _equalAlterSubscriptionStmt ( const AlterSubscriptionStmt a,
const AlterSubscriptionStmt b 
)
static

Definition at line 2357 of file equalfuncs.c.

2359 {
2360  COMPARE_SCALAR_FIELD(kind);
2362  COMPARE_STRING_FIELD(conninfo);
2363  COMPARE_NODE_FIELD(publication);
2365 
2366  return true;
2367 }
NameData subname

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

◆ _equalAlterSystemStmt()

static bool _equalAlterSystemStmt ( const AlterSystemStmt a,
const AlterSystemStmt b 
)
static

Definition at line 1817 of file equalfuncs.c.

1818 {
1819  COMPARE_NODE_FIELD(setstmt);
1820 
1821  return true;
1822 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterTableCmd()

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

Definition at line 1143 of file equalfuncs.c.

1144 {
1145  COMPARE_SCALAR_FIELD(subtype);
1147  COMPARE_SCALAR_FIELD(num);
1148  COMPARE_NODE_FIELD(newowner);
1149  COMPARE_NODE_FIELD(def);
1150  COMPARE_SCALAR_FIELD(behavior);
1151  COMPARE_SCALAR_FIELD(missing_ok);
1152 
1153  return true;
1154 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalAlterTableMoveAllStmt()

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

Definition at line 1907 of file equalfuncs.c.

1909 {
1910  COMPARE_STRING_FIELD(orig_tablespacename);
1911  COMPARE_SCALAR_FIELD(objtype);
1912  COMPARE_NODE_FIELD(roles);
1913  COMPARE_STRING_FIELD(new_tablespacename);
1914  COMPARE_SCALAR_FIELD(nowait);
1915 
1916  return true;
1917 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterTableSpaceOptionsStmt()

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

Definition at line 1896 of file equalfuncs.c.

1898 {
1899  COMPARE_STRING_FIELD(tablespacename);
1901  COMPARE_SCALAR_FIELD(isReset);
1902 
1903  return true;
1904 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalAlterTableStmt()

static bool _equalAlterTableStmt ( const AlterTableStmt a,
const AlterTableStmt b 
)
static

Definition at line 1132 of file equalfuncs.c.

1133 {
1134  COMPARE_NODE_FIELD(relation);
1135  COMPARE_NODE_FIELD(cmds);
1136  COMPARE_SCALAR_FIELD(objtype);
1137  COMPARE_SCALAR_FIELD(missing_ok);
1138 
1139  return true;
1140 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterTSConfigurationStmt()

static bool _equalAlterTSConfigurationStmt ( const AlterTSConfigurationStmt a,
const AlterTSConfigurationStmt b 
)
static

Definition at line 2285 of file equalfuncs.c.

2287 {
2288  COMPARE_SCALAR_FIELD(kind);
2289  COMPARE_NODE_FIELD(cfgname);
2290  COMPARE_NODE_FIELD(tokentype);
2291  COMPARE_NODE_FIELD(dicts);
2292  COMPARE_SCALAR_FIELD(override);
2293  COMPARE_SCALAR_FIELD(replace);
2294  COMPARE_SCALAR_FIELD(missing_ok);
2295 
2296  return true;
2297 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalAlterTSDictionaryStmt()

static bool _equalAlterTSDictionaryStmt ( const AlterTSDictionaryStmt a,
const AlterTSDictionaryStmt b 
)
static

Definition at line 2276 of file equalfuncs.c.

2277 {
2278  COMPARE_NODE_FIELD(dictname);
2280 
2281  return true;
2282 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterTypeStmt()

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

Definition at line 1542 of file equalfuncs.c.

1543 {
1544  COMPARE_NODE_FIELD(typeName);
1546 
1547  return true;
1548 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterUserMappingStmt()

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

Definition at line 2005 of file equalfuncs.c.

2006 {
2008  COMPARE_STRING_FIELD(servername);
2010 
2011  return true;
2012 }
static char * user
Definition: pg_regress.c:95

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

◆ _equalAppendRelInfo()

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

Definition at line 923 of file equalfuncs.c.

924 {
925  COMPARE_SCALAR_FIELD(parent_relid);
926  COMPARE_SCALAR_FIELD(child_relid);
927  COMPARE_SCALAR_FIELD(parent_reltype);
928  COMPARE_SCALAR_FIELD(child_reltype);
929  COMPARE_NODE_FIELD(translated_vars);
930  COMPARE_SCALAR_FIELD(num_child_cols);
931  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
932  COMPARE_SCALAR_FIELD(parent_reloid);
933 
934  return true;
935 }
int16 AttrNumber
Definition: attnum.h:21
#define COMPARE_POINTER_FIELD(fldname, sz)
Definition: equalfuncs.c:85

References a, COMPARE_NODE_FIELD, COMPARE_POINTER_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalArrayCoerceExpr()

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

Definition at line 541 of file equalfuncs.c.

542 {
544  COMPARE_NODE_FIELD(elemexpr);
545  COMPARE_SCALAR_FIELD(resulttype);
546  COMPARE_SCALAR_FIELD(resulttypmod);
547  COMPARE_SCALAR_FIELD(resultcollid);
548  COMPARE_COERCIONFORM_FIELD(coerceformat);
549  COMPARE_LOCATION_FIELD(location);
550 
551  return true;
552 }
#define COMPARE_COERCIONFORM_FIELD(fldname)
Definition: equalfuncs.c:96

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

Referenced by equal().

◆ _equalArrayExpr()

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

Definition at line 609 of file equalfuncs.c.

610 {
611  COMPARE_SCALAR_FIELD(array_typeid);
612  COMPARE_SCALAR_FIELD(array_collid);
613  COMPARE_SCALAR_FIELD(element_typeid);
614  COMPARE_NODE_FIELD(elements);
615  COMPARE_SCALAR_FIELD(multidims);
616  COMPARE_LOCATION_FIELD(location);
617 
618  return true;
619 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalBitString()

static bool _equalBitString ( const BitString a,
const BitString b 
)
static

Definition at line 3158 of file equalfuncs.c.

3159 {
3160  COMPARE_STRING_FIELD(bsval);
3161 
3162  return true;
3163 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalBoolean()

static bool _equalBoolean ( const Boolean a,
const Boolean b 
)
static

Definition at line 3142 of file equalfuncs.c.

3143 {
3144  COMPARE_SCALAR_FIELD(boolval);
3145 
3146  return true;
3147 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalBooleanTest()

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

Definition at line 709 of file equalfuncs.c.

710 {
712  COMPARE_SCALAR_FIELD(booltesttype);
713  COMPARE_LOCATION_FIELD(location);
714 
715  return true;
716 }

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalBoolExpr()

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

Definition at line 439 of file equalfuncs.c.

440 {
443  COMPARE_LOCATION_FIELD(location);
444 
445  return true;
446 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:419

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

Referenced by equal().

◆ _equalCallStmt()

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

Definition at line 1254 of file equalfuncs.c.

1255 {
1256  COMPARE_NODE_FIELD(funccall);
1257  COMPARE_NODE_FIELD(funcexpr);
1258  COMPARE_NODE_FIELD(outargs);
1259 
1260  return true;
1261 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCaseExpr()

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

Definition at line 576 of file equalfuncs.c.

577 {
578  COMPARE_SCALAR_FIELD(casetype);
579  COMPARE_SCALAR_FIELD(casecollid);
582  COMPARE_NODE_FIELD(defresult);
583  COMPARE_LOCATION_FIELD(location);
584 
585  return true;
586 }

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

Referenced by equal().

◆ _equalCaseTestExpr()

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

Definition at line 599 of file equalfuncs.c.

600 {
601  COMPARE_SCALAR_FIELD(typeId);
602  COMPARE_SCALAR_FIELD(typeMod);
603  COMPARE_SCALAR_FIELD(collation);
604 
605  return true;
606 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCaseWhen()

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

Definition at line 589 of file equalfuncs.c.

590 {
591  COMPARE_NODE_FIELD(expr);
592  COMPARE_NODE_FIELD(result);
593  COMPARE_LOCATION_FIELD(location);
594 
595  return true;
596 }

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalClosePortalStmt()

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

Definition at line 1246 of file equalfuncs.c.

1247 {
1248  COMPARE_STRING_FIELD(portalname);
1249 
1250  return true;
1251 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalClusterStmt()

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

Definition at line 1264 of file equalfuncs.c.

1265 {
1266  COMPARE_NODE_FIELD(relation);
1267  COMPARE_STRING_FIELD(indexname);
1268  COMPARE_NODE_FIELD(params);
1269 
1270  return true;
1271 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCoalesceExpr()

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

Definition at line 647 of file equalfuncs.c.

648 {
649  COMPARE_SCALAR_FIELD(coalescetype);
650  COMPARE_SCALAR_FIELD(coalescecollid);
652  COMPARE_LOCATION_FIELD(location);
653 
654  return true;
655 }

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

Referenced by equal().

◆ _equalCoerceToDomain()

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

Definition at line 719 of file equalfuncs.c.

720 {
722  COMPARE_SCALAR_FIELD(resulttype);
723  COMPARE_SCALAR_FIELD(resulttypmod);
724  COMPARE_SCALAR_FIELD(resultcollid);
725  COMPARE_COERCIONFORM_FIELD(coercionformat);
726  COMPARE_LOCATION_FIELD(location);
727 
728  return true;
729 }

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

Referenced by equal().

◆ _equalCoerceToDomainValue()

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

Definition at line 732 of file equalfuncs.c.

733 {
734  COMPARE_SCALAR_FIELD(typeId);
735  COMPARE_SCALAR_FIELD(typeMod);
736  COMPARE_SCALAR_FIELD(collation);
737  COMPARE_LOCATION_FIELD(location);
738 
739  return true;
740 }

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCoerceViaIO()

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

Definition at line 529 of file equalfuncs.c.

530 {
532  COMPARE_SCALAR_FIELD(resulttype);
533  COMPARE_SCALAR_FIELD(resultcollid);
534  COMPARE_COERCIONFORM_FIELD(coerceformat);
535  COMPARE_LOCATION_FIELD(location);
536 
537  return true;
538 }

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

Referenced by equal().

◆ _equalCollateClause()

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

Definition at line 2551 of file equalfuncs.c.

2552 {
2554  COMPARE_NODE_FIELD(collname);
2555  COMPARE_LOCATION_FIELD(location);
2556 
2557  return true;
2558 }

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCollateExpr()

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

Definition at line 566 of file equalfuncs.c.

567 {
569  COMPARE_SCALAR_FIELD(collOid);
570  COMPARE_LOCATION_FIELD(location);
571 
572  return true;
573 }

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalColumnDef()

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

Definition at line 2677 of file equalfuncs.c.

2678 {
2679  COMPARE_STRING_FIELD(colname);
2680  COMPARE_NODE_FIELD(typeName);
2681  COMPARE_STRING_FIELD(compression);
2682  COMPARE_SCALAR_FIELD(inhcount);
2683  COMPARE_SCALAR_FIELD(is_local);
2684  COMPARE_SCALAR_FIELD(is_not_null);
2685  COMPARE_SCALAR_FIELD(is_from_type);
2686  COMPARE_SCALAR_FIELD(storage);
2687  COMPARE_NODE_FIELD(raw_default);
2688  COMPARE_NODE_FIELD(cooked_default);
2689  COMPARE_SCALAR_FIELD(identity);
2690  COMPARE_NODE_FIELD(identitySequence);
2691  COMPARE_SCALAR_FIELD(generated);
2692  COMPARE_NODE_FIELD(collClause);
2693  COMPARE_SCALAR_FIELD(collOid);
2694  COMPARE_NODE_FIELD(constraints);
2695  COMPARE_NODE_FIELD(fdwoptions);
2696  COMPARE_LOCATION_FIELD(location);
2697 
2698  return true;
2699 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalColumnRef()

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

Definition at line 2419 of file equalfuncs.c.

2420 {
2421  COMPARE_NODE_FIELD(fields);
2422  COMPARE_LOCATION_FIELD(location);
2423 
2424  return true;
2425 }

References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCommentStmt()

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

Definition at line 1354 of file equalfuncs.c.

1355 {
1356  COMPARE_SCALAR_FIELD(objtype);
1357  COMPARE_NODE_FIELD(object);
1358  COMPARE_STRING_FIELD(comment);
1359 
1360  return true;
1361 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCommonTableExpr()

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

Definition at line 2955 of file equalfuncs.c.

2956 {
2957  COMPARE_STRING_FIELD(ctename);
2958  COMPARE_NODE_FIELD(aliascolnames);
2959  COMPARE_SCALAR_FIELD(ctematerialized);
2960  COMPARE_NODE_FIELD(ctequery);
2961  COMPARE_NODE_FIELD(search_clause);
2962  COMPARE_NODE_FIELD(cycle_clause);
2963  COMPARE_LOCATION_FIELD(location);
2964  COMPARE_SCALAR_FIELD(cterecursive);
2965  COMPARE_SCALAR_FIELD(cterefcount);
2966  COMPARE_NODE_FIELD(ctecolnames);
2967  COMPARE_NODE_FIELD(ctecoltypes);
2968  COMPARE_NODE_FIELD(ctecoltypmods);
2969  COMPARE_NODE_FIELD(ctecolcollations);
2970 
2971  return true;
2972 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCompositeTypeStmt()

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

Definition at line 1602 of file equalfuncs.c.

1603 {
1604  COMPARE_NODE_FIELD(typevar);
1605  COMPARE_NODE_FIELD(coldeflist);
1606 
1607  return true;
1608 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalConst()

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

Definition at line 190 of file equalfuncs.c.

191 {
192  COMPARE_SCALAR_FIELD(consttype);
193  COMPARE_SCALAR_FIELD(consttypmod);
194  COMPARE_SCALAR_FIELD(constcollid);
195  COMPARE_SCALAR_FIELD(constlen);
196  COMPARE_SCALAR_FIELD(constisnull);
197  COMPARE_SCALAR_FIELD(constbyval);
198  COMPARE_LOCATION_FIELD(location);
199 
200  /*
201  * We treat all NULL constants of the same type as equal. Someday this
202  * might need to change? But datumIsEqual doesn't work on nulls, so...
203  */
204  if (a->constisnull)
205  return true;
206  return datumIsEqual(a->constvalue, b->constvalue,
207  a->constbyval, a->constlen);
208 }
bool datumIsEqual(Datum value1, Datum value2, bool typByVal, int typLen)
Definition: datum.c:223

References a, b, COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and datumIsEqual().

Referenced by equal().

◆ _equalConstraint()

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

Definition at line 2702 of file equalfuncs.c.

2703 {
2704  COMPARE_SCALAR_FIELD(contype);
2705  COMPARE_STRING_FIELD(conname);
2706  COMPARE_SCALAR_FIELD(deferrable);
2707  COMPARE_SCALAR_FIELD(initdeferred);
2708  COMPARE_LOCATION_FIELD(location);
2709  COMPARE_SCALAR_FIELD(is_no_inherit);
2710  COMPARE_NODE_FIELD(raw_expr);
2711  COMPARE_STRING_FIELD(cooked_expr);
2712  COMPARE_SCALAR_FIELD(generated_when);
2713  COMPARE_NODE_FIELD(keys);
2714  COMPARE_NODE_FIELD(including);
2715  COMPARE_NODE_FIELD(exclusions);
2717  COMPARE_STRING_FIELD(indexname);
2718  COMPARE_STRING_FIELD(indexspace);
2719  COMPARE_SCALAR_FIELD(reset_default_tblspc);
2720  COMPARE_STRING_FIELD(access_method);
2721  COMPARE_NODE_FIELD(where_clause);
2722  COMPARE_NODE_FIELD(pktable);
2723  COMPARE_NODE_FIELD(fk_attrs);
2724  COMPARE_NODE_FIELD(pk_attrs);
2725  COMPARE_SCALAR_FIELD(fk_matchtype);
2726  COMPARE_SCALAR_FIELD(fk_upd_action);
2727  COMPARE_SCALAR_FIELD(fk_del_action);
2728  COMPARE_NODE_FIELD(fk_del_set_cols);
2729  COMPARE_NODE_FIELD(old_conpfeqop);
2730  COMPARE_SCALAR_FIELD(old_pktable_oid);
2731  COMPARE_SCALAR_FIELD(skip_validation);
2732  COMPARE_SCALAR_FIELD(initially_valid);
2733 
2734  return true;
2735 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalConstraintsSetStmt()

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

Definition at line 2176 of file equalfuncs.c.

2177 {
2178  COMPARE_NODE_FIELD(constraints);
2179  COMPARE_SCALAR_FIELD(deferred);
2180 
2181  return true;
2182 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalConvertRowtypeExpr()

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

Definition at line 555 of file equalfuncs.c.

556 {
558  COMPARE_SCALAR_FIELD(resulttype);
559  COMPARE_COERCIONFORM_FIELD(convertformat);
560  COMPARE_LOCATION_FIELD(location);
561 
562  return true;
563 }

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

Referenced by equal().

◆ _equalCopyStmt()

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

Definition at line 1274 of file equalfuncs.c.

1275 {
1276  COMPARE_NODE_FIELD(relation);
1277  COMPARE_NODE_FIELD(query);
1278  COMPARE_NODE_FIELD(attlist);
1279  COMPARE_SCALAR_FIELD(is_from);
1280  COMPARE_SCALAR_FIELD(is_program);
1283  COMPARE_NODE_FIELD(whereClause);
1284 
1285  return true;
1286 }
static char * filename
Definition: pg_dumpall.c:92

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.

Referenced by equal().

◆ _equalCreateAmStmt()

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

Definition at line 2062 of file equalfuncs.c.

2063 {
2064  COMPARE_STRING_FIELD(amname);
2065  COMPARE_NODE_FIELD(handler_name);
2066  COMPARE_SCALAR_FIELD(amtype);
2067 
2068  return true;
2069 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateCastStmt()

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

Definition at line 2219 of file equalfuncs.c.

2220 {
2221  COMPARE_NODE_FIELD(sourcetype);
2222  COMPARE_NODE_FIELD(targettype);
2223  COMPARE_NODE_FIELD(func);
2224  COMPARE_SCALAR_FIELD(context);
2225  COMPARE_SCALAR_FIELD(inout);
2226 
2227  return true;
2228 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCreateConversionStmt()

static bool _equalCreateConversionStmt ( const CreateConversionStmt a,
const CreateConversionStmt b 
)
static

Definition at line 2207 of file equalfuncs.c.

2208 {
2209  COMPARE_NODE_FIELD(conversion_name);
2210  COMPARE_STRING_FIELD(for_encoding_name);
2211  COMPARE_STRING_FIELD(to_encoding_name);
2212  COMPARE_NODE_FIELD(func_name);
2213  COMPARE_SCALAR_FIELD(def);
2214 
2215  return true;
2216 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreatedbStmt()

static bool _equalCreatedbStmt ( const CreatedbStmt a,
const CreatedbStmt b 
)
static

Definition at line 1720 of file equalfuncs.c.

1721 {
1724 
1725  return true;
1726 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

◆ _equalCreateDomainStmt()

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

Definition at line 1663 of file equalfuncs.c.

1664 {
1665  COMPARE_NODE_FIELD(domainname);
1666  COMPARE_NODE_FIELD(typeName);
1667  COMPARE_NODE_FIELD(collClause);
1668  COMPARE_NODE_FIELD(constraints);
1669 
1670  return true;
1671 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateEnumStmt()

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

Definition at line 1611 of file equalfuncs.c.

1612 {
1613  COMPARE_NODE_FIELD(typeName);
1614  COMPARE_NODE_FIELD(vals);
1615 
1616  return true;
1617 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateEventTrigStmt()

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

Definition at line 2094 of file equalfuncs.c.

2095 {
2096  COMPARE_STRING_FIELD(trigname);
2097  COMPARE_STRING_FIELD(eventname);
2098  COMPARE_NODE_FIELD(whenclause);
2099  COMPARE_NODE_FIELD(funcname);
2100 
2101  return true;
2102 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateExtensionStmt()

static bool _equalCreateExtensionStmt ( const CreateExtensionStmt a,
const CreateExtensionStmt b 
)
static

Definition at line 1920 of file equalfuncs.c.

1921 {
1922  COMPARE_STRING_FIELD(extname);
1923  COMPARE_SCALAR_FIELD(if_not_exists);
1925 
1926  return true;
1927 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateFdwStmt()

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

Definition at line 1950 of file equalfuncs.c.

1951 {
1952  COMPARE_STRING_FIELD(fdwname);
1953  COMPARE_NODE_FIELD(func_options);
1955 
1956  return true;
1957 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateForeignServerStmt()

static bool _equalCreateForeignServerStmt ( const CreateForeignServerStmt a,
const CreateForeignServerStmt b 
)
static

Definition at line 1970 of file equalfuncs.c.

1971 {
1972  COMPARE_STRING_FIELD(servername);
1973  COMPARE_STRING_FIELD(servertype);
1974  COMPARE_STRING_FIELD(version);
1975  COMPARE_STRING_FIELD(fdwname);
1976  COMPARE_SCALAR_FIELD(if_not_exists);
1978 
1979  return true;
1980 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateForeignTableStmt()

static bool _equalCreateForeignTableStmt ( const CreateForeignTableStmt a,
const CreateForeignTableStmt b 
)
static

Definition at line 2025 of file equalfuncs.c.

2026 {
2027  if (!_equalCreateStmt(&a->base, &b->base))
2028  return false;
2029 
2030  COMPARE_STRING_FIELD(servername);
2032 
2033  return true;
2034 }
static bool _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
Definition: equalfuncs.c:1289

References _equalCreateStmt(), a, b, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateFunctionStmt()

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

Definition at line 1440 of file equalfuncs.c.

1441 {
1442  COMPARE_SCALAR_FIELD(is_procedure);
1443  COMPARE_SCALAR_FIELD(replace);
1444  COMPARE_NODE_FIELD(funcname);
1445  COMPARE_NODE_FIELD(parameters);
1446  COMPARE_NODE_FIELD(returnType);
1448  COMPARE_NODE_FIELD(sql_body);
1449 
1450  return true;
1451 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCreateOpClassItem()

static bool _equalCreateOpClassItem ( const CreateOpClassItem a,
const CreateOpClassItem b 
)
static

Definition at line 1687 of file equalfuncs.c.

1688 {
1689  COMPARE_SCALAR_FIELD(itemtype);
1691  COMPARE_SCALAR_FIELD(number);
1692  COMPARE_NODE_FIELD(order_family);
1693  COMPARE_NODE_FIELD(class_args);
1694  COMPARE_NODE_FIELD(storedtype);
1695 
1696  return true;
1697 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

◆ _equalCreateOpClassStmt()

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

Definition at line 1674 of file equalfuncs.c.

1675 {
1676  COMPARE_NODE_FIELD(opclassname);
1677  COMPARE_NODE_FIELD(opfamilyname);
1678  COMPARE_STRING_FIELD(amname);
1679  COMPARE_NODE_FIELD(datatype);
1680  COMPARE_NODE_FIELD(items);
1681  COMPARE_SCALAR_FIELD(isDefault);
1682 
1683  return true;
1684 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateOpFamilyStmt()

static bool _equalCreateOpFamilyStmt ( const CreateOpFamilyStmt a,
const CreateOpFamilyStmt b 
)
static

Definition at line 1700 of file equalfuncs.c.

1701 {
1702  COMPARE_NODE_FIELD(opfamilyname);
1703  COMPARE_STRING_FIELD(amname);
1704 
1705  return true;
1706 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreatePLangStmt()

static bool _equalCreatePLangStmt ( const CreatePLangStmt a,
const CreatePLangStmt b 
)
static

Definition at line 2114 of file equalfuncs.c.

2115 {
2116  COMPARE_SCALAR_FIELD(replace);
2117  COMPARE_STRING_FIELD(plname);
2118  COMPARE_NODE_FIELD(plhandler);
2119  COMPARE_NODE_FIELD(plinline);
2120  COMPARE_NODE_FIELD(plvalidator);
2121  COMPARE_SCALAR_FIELD(pltrusted);
2122 
2123  return true;
2124 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreatePolicyStmt()

static bool _equalCreatePolicyStmt ( const CreatePolicyStmt a,
const CreatePolicyStmt b 
)
static

Definition at line 2381 of file equalfuncs.c.

2382 {
2383  COMPARE_STRING_FIELD(policy_name);
2384  COMPARE_NODE_FIELD(table);
2385  COMPARE_STRING_FIELD(cmd_name);
2386  COMPARE_SCALAR_FIELD(permissive);
2387  COMPARE_NODE_FIELD(roles);
2388  COMPARE_NODE_FIELD(qual);
2389  COMPARE_NODE_FIELD(with_check);
2390 
2391  return true;
2392 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreatePublicationStmt()

static bool _equalCreatePublicationStmt ( const CreatePublicationStmt a,
const CreatePublicationStmt b 
)
static

Definition at line 2320 of file equalfuncs.c.

2322 {
2323  COMPARE_STRING_FIELD(pubname);
2325  COMPARE_NODE_FIELD(pubobjects);
2326  COMPARE_SCALAR_FIELD(for_all_tables);
2327 
2328  return true;
2329 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateRangeStmt()

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

Definition at line 1620 of file equalfuncs.c.

1621 {
1622  COMPARE_NODE_FIELD(typeName);
1623  COMPARE_NODE_FIELD(params);
1624 
1625  return true;
1626 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateRoleStmt()

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

Definition at line 2127 of file equalfuncs.c.

2128 {
2129  COMPARE_SCALAR_FIELD(stmt_type);
2130  COMPARE_STRING_FIELD(role);
2132 
2133  return true;
2134 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateSchemaStmt()

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

Definition at line 2196 of file equalfuncs.c.

2197 {
2198  COMPARE_STRING_FIELD(schemaname);
2199  COMPARE_NODE_FIELD(authrole);
2200  COMPARE_NODE_FIELD(schemaElts);
2201  COMPARE_SCALAR_FIELD(if_not_exists);
2202 
2203  return true;
2204 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateSeqStmt()

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

Definition at line 1826 of file equalfuncs.c.

1827 {
1828  COMPARE_NODE_FIELD(sequence);
1830  COMPARE_SCALAR_FIELD(ownerId);
1831  COMPARE_SCALAR_FIELD(for_identity);
1832  COMPARE_SCALAR_FIELD(if_not_exists);
1833 
1834  return true;
1835 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCreateStatsStmt()

static bool _equalCreateStatsStmt ( const CreateStatsStmt a,
const CreateStatsStmt b 
)
static

Definition at line 1416 of file equalfuncs.c.

1417 {
1418  COMPARE_NODE_FIELD(defnames);
1419  COMPARE_NODE_FIELD(stat_types);
1420  COMPARE_NODE_FIELD(exprs);
1421  COMPARE_NODE_FIELD(relations);
1422  COMPARE_STRING_FIELD(stxcomment);
1423  COMPARE_SCALAR_FIELD(transformed);
1424  COMPARE_SCALAR_FIELD(if_not_exists);
1425 
1426  return true;
1427 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateStmt()

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

Definition at line 1289 of file equalfuncs.c.

1290 {
1291  COMPARE_NODE_FIELD(relation);
1292  COMPARE_NODE_FIELD(tableElts);
1293  COMPARE_NODE_FIELD(inhRelations);
1294  COMPARE_NODE_FIELD(partbound);
1295  COMPARE_NODE_FIELD(partspec);
1296  COMPARE_NODE_FIELD(ofTypename);
1297  COMPARE_NODE_FIELD(constraints);
1299  COMPARE_SCALAR_FIELD(oncommit);
1300  COMPARE_STRING_FIELD(tablespacename);
1301  COMPARE_STRING_FIELD(accessMethod);
1302  COMPARE_SCALAR_FIELD(if_not_exists);
1303 
1304  return true;
1305 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by _equalCreateForeignTableStmt(), and equal().

◆ _equalCreateSubscriptionStmt()

static bool _equalCreateSubscriptionStmt ( const CreateSubscriptionStmt a,
const CreateSubscriptionStmt b 
)
static

Definition at line 2345 of file equalfuncs.c.

2347 {
2349  COMPARE_STRING_FIELD(conninfo);
2350  COMPARE_NODE_FIELD(publication);
2352 
2353  return true;
2354 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

◆ _equalCreateTableAsStmt()

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

Definition at line 1786 of file equalfuncs.c.

1787 {
1788  COMPARE_NODE_FIELD(query);
1789  COMPARE_NODE_FIELD(into);
1790  COMPARE_SCALAR_FIELD(objtype);
1791  COMPARE_SCALAR_FIELD(is_select_into);
1792  COMPARE_SCALAR_FIELD(if_not_exists);
1793 
1794  return true;
1795 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCreateTableSpaceStmt()

static bool _equalCreateTableSpaceStmt ( const CreateTableSpaceStmt a,
const CreateTableSpaceStmt b 
)
static

Definition at line 1876 of file equalfuncs.c.

1877 {
1878  COMPARE_STRING_FIELD(tablespacename);
1879  COMPARE_NODE_FIELD(owner);
1880  COMPARE_STRING_FIELD(location);
1882 
1883  return true;
1884 }

References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateTransformStmt()

static bool _equalCreateTransformStmt ( const CreateTransformStmt a,
const CreateTransformStmt b 
)
static

Definition at line 2050 of file equalfuncs.c.

2051 {
2052  COMPARE_SCALAR_FIELD(replace);
2053  COMPARE_NODE_FIELD(type_name);
2054  COMPARE_STRING_FIELD(lang);
2055  COMPARE_NODE_FIELD(fromsql);
2056  COMPARE_NODE_FIELD(tosql);
2057 
2058  return true;
2059 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCreateTrigStmt()

static bool _equalCreateTrigStmt ( const CreateTrigStmt a,
const CreateTrigStmt b 
)
static

Definition at line 2072 of file equalfuncs.c.

2073 {
2074  COMPARE_SCALAR_FIELD(replace);
2075  COMPARE_SCALAR_FIELD(isconstraint);
2076  COMPARE_STRING_FIELD(trigname);
2077  COMPARE_NODE_FIELD(relation);
2078  COMPARE_NODE_FIELD(funcname);
2080  COMPARE_SCALAR_FIELD(row);
2081  COMPARE_SCALAR_FIELD(timing);
2082  COMPARE_SCALAR_FIELD(events);
2083  COMPARE_NODE_FIELD(columns);
2084  COMPARE_NODE_FIELD(whenClause);
2085  COMPARE_NODE_FIELD(transitionRels);
2086  COMPARE_SCALAR_FIELD(deferrable);
2087  COMPARE_SCALAR_FIELD(initdeferred);
2088  COMPARE_NODE_FIELD(constrrel);
2089 
2090  return true;
2091 }

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

Referenced by equal().

◆ _equalCreateUserMappingStmt()

static bool _equalCreateUserMappingStmt ( const CreateUserMappingStmt a,
const CreateUserMappingStmt b 
)
static

Definition at line 1994 of file equalfuncs.c.

1995 {
1997  COMPARE_STRING_FIELD(servername);
1998  COMPARE_SCALAR_FIELD(if_not_exists);
2000 
2001  return true;
2002 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

◆ _equalCTECycleClause()

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

Definition at line 2938 of file equalfuncs.c.

2939 {
2940  COMPARE_NODE_FIELD(cycle_col_list);
2941  COMPARE_STRING_FIELD(cycle_mark_column);
2942  COMPARE_NODE_FIELD(cycle_mark_value);
2943  COMPARE_NODE_FIELD(cycle_mark_default);
2944  COMPARE_STRING_FIELD(cycle_path_column);
2945  COMPARE_LOCATION_FIELD(location);
2946  COMPARE_SCALAR_FIELD(cycle_mark_type);
2947  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
2948  COMPARE_SCALAR_FIELD(cycle_mark_collation);
2949  COMPARE_SCALAR_FIELD(cycle_mark_neop);
2950 
2951  return true;
2952 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCTESearchClause()

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

Definition at line 2927 of file equalfuncs.c.

2928 {
2929  COMPARE_NODE_FIELD(search_col_list);
2930  COMPARE_SCALAR_FIELD(search_breadth_first);
2931  COMPARE_STRING_FIELD(search_seq_column);
2932  COMPARE_LOCATION_FIELD(location);
2933 
2934  return true;
2935 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalCurrentOfExpr()

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

Definition at line 754 of file equalfuncs.c.

755 {
756  COMPARE_SCALAR_FIELD(cvarno);
757  COMPARE_STRING_FIELD(cursor_name);
758  COMPARE_SCALAR_FIELD(cursor_param);
759 
760  return true;
761 }

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalDeallocateStmt()

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

Definition at line 2250 of file equalfuncs.c.

2251 {
2253 
2254  return true;
2255 }

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalDeclareCursorStmt()

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

Definition at line 1236 of file equalfuncs.c.

1237 {
1238  COMPARE_STRING_FIELD(portalname);
1240  COMPARE_NODE_FIELD(query);
1241 
1242  return true;
1243 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalDefElem()

static bool _equalDefElem ( const DefElem a,
const DefElem b 
)
static

Definition at line 2738 of file equalfuncs.c.

2739 {
2740  COMPARE_STRING_FIELD(defnamespace);
2741  COMPARE_STRING_FIELD(defname);
2743  COMPARE_SCALAR_FIELD(defaction);
2744  COMPARE_LOCATION_FIELD(location);
2745 
2746  return true;
2747 }

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

Referenced by equal().

◆ _equalDefineStmt()

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

Definition at line 1318 of file equalfuncs.c.

1319 {
1320  COMPARE_SCALAR_FIELD(kind);
1321  COMPARE_SCALAR_FIELD(oldstyle);
1322  COMPARE_NODE_FIELD(defnames);
1324  COMPARE_NODE_FIELD(definition);
1325  COMPARE_SCALAR_FIELD(if_not_exists);
1326  COMPARE_SCALAR_FIELD(replace);
1327 
1328  return true;
1329 }

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDeleteStmt()

static bool _equalDeleteStmt ( const DeleteStmt a,
const DeleteStmt b 
)
static

Definition at line 1045 of file equalfuncs.c.

1046 {
1047  COMPARE_NODE_FIELD(relation);
1048  COMPARE_NODE_FIELD(usingClause);
1049  COMPARE_NODE_FIELD(whereClause);
1050  COMPARE_NODE_FIELD(returningList);
1051  COMPARE_NODE_FIELD(withClause);
1052 
1053  return true;
1054 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalDiscardStmt()

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

Definition at line 1868 of file equalfuncs.c.

1869 {
1870  COMPARE_SCALAR_FIELD(target);
1871 
1872  return true;
1873 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDistinctExpr()

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

Definition at line 351 of file equalfuncs.c.

352 {
353  COMPARE_SCALAR_FIELD(opno);
354 
355  /*
356  * Special-case opfuncid: it is allowable for it to differ if one node
357  * contains zero and the other doesn't. This just means that the one node
358  * isn't as far along in the parse/plan pipeline and hasn't had the
359  * opfuncid cache filled yet.
360  */
361  if (a->opfuncid != b->opfuncid &&
362  a->opfuncid != 0 &&
363  b->opfuncid != 0)
364  return false;
365 
366  COMPARE_SCALAR_FIELD(opresulttype);
367  COMPARE_SCALAR_FIELD(opretset);
368  COMPARE_SCALAR_FIELD(opcollid);
369  COMPARE_SCALAR_FIELD(inputcollid);
371  COMPARE_LOCATION_FIELD(location);
372 
373  return true;
374 }

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

Referenced by equal().

◆ _equalDoStmt()

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

Definition at line 1475 of file equalfuncs.c.

1476 {
1478 
1479  return true;
1480 }

References generate_unaccent_rules::args, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalDropdbStmt()

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

Definition at line 1747 of file equalfuncs.c.

1748 {
1750  COMPARE_SCALAR_FIELD(missing_ok);
1752 
1753  return true;
1754 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

◆ _equalDropOwnedStmt()

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

Definition at line 2258 of file equalfuncs.c.

2259 {
2260  COMPARE_NODE_FIELD(roles);
2261  COMPARE_SCALAR_FIELD(behavior);
2262 
2263  return true;
2264 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDropRoleStmt()

static bool _equalDropRoleStmt ( const DropRoleStmt a,
const DropRoleStmt b 
)
static

Definition at line 2157 of file equalfuncs.c.

2158 {
2159  COMPARE_NODE_FIELD(roles);
2160  COMPARE_SCALAR_FIELD(missing_ok);
2161 
2162  return true;
2163 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDropStmt()

static bool _equalDropStmt ( const DropStmt a,
const DropStmt b 
)
static

Definition at line 1332 of file equalfuncs.c.

1333 {
1334  COMPARE_NODE_FIELD(objects);
1335  COMPARE_SCALAR_FIELD(removeType);
1336  COMPARE_SCALAR_FIELD(behavior);
1337  COMPARE_SCALAR_FIELD(missing_ok);
1338  COMPARE_SCALAR_FIELD(concurrent);
1339 
1340  return true;
1341 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDropSubscriptionStmt()

static bool _equalDropSubscriptionStmt ( const DropSubscriptionStmt a,
const DropSubscriptionStmt b 
)
static

Definition at line 2370 of file equalfuncs.c.

2372 {
2374  COMPARE_SCALAR_FIELD(missing_ok);
2375  COMPARE_SCALAR_FIELD(behavior);
2376 
2377  return true;
2378 }

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

◆ _equalDropTableSpaceStmt()

static bool _equalDropTableSpaceStmt ( const DropTableSpaceStmt a,
const DropTableSpaceStmt b 
)
static

Definition at line 1887 of file equalfuncs.c.

1888 {
1889  COMPARE_STRING_FIELD(tablespacename);
1890  COMPARE_SCALAR_FIELD(missing_ok);
1891 
1892  return true;
1893 }

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalDropUserMappingStmt()

static bool _equalDropUserMappingStmt ( const DropUserMappingStmt a,
const DropUserMappingStmt b 
)
static

Definition at line 2015 of file equalfuncs.c.

2016 {
2018  COMPARE_STRING_FIELD(servername);
2019  COMPARE_SCALAR_FIELD(missing_ok);
2020 
2021  return true;
2022 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and user.

Referenced by equal().

◆ _equalExecuteStmt()

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

Definition at line 2241 of file equalfuncs.c.

2242 {
2244  COMPARE_NODE_FIELD(params);
2245 
2246  return true;
2247 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalExplainStmt()

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

Definition at line 1777 of file equalfuncs.c.

1778 {
1779  COMPARE_NODE_FIELD(query);
1781 
1782  return true;
1783 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalExtensibleNode()

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

Definition at line 954 of file equalfuncs.c.

955 {
956  const ExtensibleNodeMethods *methods;
957 
958  COMPARE_STRING_FIELD(extnodename);
959 
960  /* At this point, we know extnodename is the same for both nodes. */
961  methods = GetExtensibleNodeMethods(a->extnodename, false);
962 
963  /* compare the private fields */
964  if (!methods->nodeEqual(a, b))
965  return false;
966 
967  return true;
968 }
const ExtensibleNodeMethods * GetExtensibleNodeMethods(const char *extnodename, bool missing_ok)
Definition: extensible.c:125
bool(* nodeEqual)(const struct ExtensibleNode *a, const struct ExtensibleNode *b)
Definition: extensible.h:66

References a, b, COMPARE_STRING_FIELD, GetExtensibleNodeMethods(), and ExtensibleNodeMethods::nodeEqual.

Referenced by equal().

◆ _equalFetchStmt()

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

Definition at line 1375 of file equalfuncs.c.

1376 {
1377  COMPARE_SCALAR_FIELD(direction);
1378  COMPARE_SCALAR_FIELD(howMany);
1379  COMPARE_STRING_FIELD(portalname);
1380  COMPARE_SCALAR_FIELD(ismove);
1381 
1382  return true;
1383 }

References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalFieldSelect()

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

Definition at line 493 of file equalfuncs.c.

494 {
496  COMPARE_SCALAR_FIELD(fieldnum);
497  COMPARE_SCALAR_FIELD(resulttype);
498  COMPARE_SCALAR_FIELD(resulttypmod);
499  COMPARE_SCALAR_FIELD(resultcollid);
500 
501  return true;
502 }

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalFieldStore()

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

Definition at line 505 of file equalfuncs.c.

506 {
508  COMPARE_NODE_FIELD(newvals);
509  COMPARE_NODE_FIELD(fieldnums);
510  COMPARE_SCALAR_FIELD(resulttype);
511 
512  return true;
513 }

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalFloat()

static bool _equalFloat ( const Float a,
const Float b 
)
static

Definition at line 3134 of file equalfuncs.c.

3135 {
3136  COMPARE_STRING_FIELD(fval);
3137 
3138  return true;
3139 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalFromExpr()

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

Definition at line 821 of file equalfuncs.c.

822 {
823  COMPARE_NODE_FIELD(fromlist);
824  COMPARE_NODE_FIELD(quals);
825 
826  return true;
827 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalFuncCall()

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

Definition at line 2453 of file equalfuncs.c.

2454 {
2455  COMPARE_NODE_FIELD(funcname);
2457  COMPARE_NODE_FIELD(agg_order);
2458  COMPARE_NODE_FIELD(agg_filter);
2459  COMPARE_NODE_FIELD(over);
2460  COMPARE_SCALAR_FIELD(agg_within_group);
2461  COMPARE_SCALAR_FIELD(agg_star);
2462  COMPARE_SCALAR_FIELD(agg_distinct);
2463  COMPARE_SCALAR_FIELD(func_variadic);
2464  COMPARE_COERCIONFORM_FIELD(funcformat);
2465  COMPARE_LOCATION_FIELD(location);
2466 
2467  return true;
2468 }

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

Referenced by equal().

◆ _equalFuncExpr()

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

Definition at line 298 of file equalfuncs.c.

299 {
300  COMPARE_SCALAR_FIELD(funcid);
301  COMPARE_SCALAR_FIELD(funcresulttype);
302  COMPARE_SCALAR_FIELD(funcretset);
303  COMPARE_SCALAR_FIELD(funcvariadic);
304  COMPARE_COERCIONFORM_FIELD(funcformat);
305  COMPARE_SCALAR_FIELD(funccollid);
306  COMPARE_SCALAR_FIELD(inputcollid);
308  COMPARE_LOCATION_FIELD(location);
309 
310  return true;
311 }

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

Referenced by equal().

◆ _equalFunctionParameter()

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

Definition at line 1454 of file equalfuncs.c.

1455 {
1457  COMPARE_NODE_FIELD(argType);
1459  COMPARE_NODE_FIELD(defexpr);
1460 
1461  return true;
1462 }
static PgChecksumMode mode
Definition: pg_checksums.c:65

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

Referenced by equal().

◆ _equalGrantRoleStmt()

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

Definition at line 1214 of file equalfuncs.c.

1215 {
1216  COMPARE_NODE_FIELD(granted_roles);
1217  COMPARE_NODE_FIELD(grantee_roles);
1218  COMPARE_SCALAR_FIELD(is_grant);
1219  COMPARE_SCALAR_FIELD(admin_opt);
1220  COMPARE_NODE_FIELD(grantor);
1221  COMPARE_SCALAR_FIELD(behavior);
1222 
1223  return true;
1224 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalGrantStmt()

static bool _equalGrantStmt ( const GrantStmt a,
const GrantStmt b 
)
static

Definition at line 1178 of file equalfuncs.c.

1179 {
1180  COMPARE_SCALAR_FIELD(is_grant);
1181  COMPARE_SCALAR_FIELD(targtype);
1182  COMPARE_SCALAR_FIELD(objtype);
1183  COMPARE_NODE_FIELD(objects);
1184  COMPARE_NODE_FIELD(privileges);
1185  COMPARE_NODE_FIELD(grantees);
1186  COMPARE_SCALAR_FIELD(grant_option);
1187  COMPARE_NODE_FIELD(grantor);
1188  COMPARE_SCALAR_FIELD(behavior);
1189 
1190  return true;
1191 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalGroupingFunc()

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

Definition at line 250 of file equalfuncs.c.

251 {
253 
254  /*
255  * We must not compare the refs or cols field
256  */
257 
258  COMPARE_SCALAR_FIELD(agglevelsup);
259  COMPARE_LOCATION_FIELD(location);
260 
261  return true;
262 }

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

Referenced by equal().

◆ _equalGroupingSet()

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

Definition at line 2852 of file equalfuncs.c.

2853 {
2854  COMPARE_SCALAR_FIELD(kind);
2855  COMPARE_NODE_FIELD(content);
2856  COMPARE_LOCATION_FIELD(location);
2857 
2858  return true;
2859 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalImportForeignSchemaStmt()

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

Definition at line 2037 of file equalfuncs.c.

2038 {
2039  COMPARE_STRING_FIELD(server_name);
2040  COMPARE_STRING_FIELD(remote_schema);
2041  COMPARE_STRING_FIELD(local_schema);
2042  COMPARE_SCALAR_FIELD(list_type);
2043  COMPARE_NODE_FIELD(table_list);
2045 
2046  return true;
2047 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalIndexElem()

static bool _equalIndexElem ( const IndexElem a,
const IndexElem b 
)
static

Definition at line 2652 of file equalfuncs.c.

2653 {
2655  COMPARE_NODE_FIELD(expr);
2656  COMPARE_STRING_FIELD(indexcolname);
2657  COMPARE_NODE_FIELD(collation);
2658  COMPARE_NODE_FIELD(opclass);
2659  COMPARE_NODE_FIELD(opclassopts);
2660  COMPARE_SCALAR_FIELD(ordering);
2661  COMPARE_SCALAR_FIELD(nulls_ordering);
2662 
2663  return true;
2664 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalIndexStmt()

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

Definition at line 1386 of file equalfuncs.c.

1387 {
1388  COMPARE_STRING_FIELD(idxname);
1389  COMPARE_NODE_FIELD(relation);
1390  COMPARE_STRING_FIELD(accessMethod);
1391  COMPARE_STRING_FIELD(tableSpace);
1392  COMPARE_NODE_FIELD(indexParams);
1393  COMPARE_NODE_FIELD(indexIncludingParams);
1395  COMPARE_NODE_FIELD(whereClause);
1396  COMPARE_NODE_FIELD(excludeOpNames);
1397  COMPARE_STRING_FIELD(idxcomment);
1398  COMPARE_SCALAR_FIELD(indexOid);
1399  COMPARE_SCALAR_FIELD(oldNode);
1400  COMPARE_SCALAR_FIELD(oldCreateSubid);
1401  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1402  COMPARE_SCALAR_FIELD(unique);
1403  COMPARE_SCALAR_FIELD(primary);
1404  COMPARE_SCALAR_FIELD(isconstraint);
1405  COMPARE_SCALAR_FIELD(deferrable);
1406  COMPARE_SCALAR_FIELD(initdeferred);
1407  COMPARE_SCALAR_FIELD(transformed);
1408  COMPARE_SCALAR_FIELD(concurrent);
1409  COMPARE_SCALAR_FIELD(if_not_exists);
1410  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1411 
1412  return true;
1413 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalInferClause()

static bool _equalInferClause ( const InferClause a,
const InferClause b 
)
static

Definition at line 2904 of file equalfuncs.c.

2905 {
2906  COMPARE_NODE_FIELD(indexElems);
2907  COMPARE_NODE_FIELD(whereClause);
2908  COMPARE_STRING_FIELD(conname);
2909  COMPARE_LOCATION_FIELD(location);
2910 
2911  return true;
2912 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalInferenceElem()

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

Definition at line 773 of file equalfuncs.c.

774 {
775  COMPARE_NODE_FIELD(expr);
776  COMPARE_SCALAR_FIELD(infercollid);
777  COMPARE_SCALAR_FIELD(inferopclass);
778 
779  return true;
780 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalInsertStmt()

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

Definition at line 1031 of file equalfuncs.c.

1032 {
1033  COMPARE_NODE_FIELD(relation);
1034  COMPARE_NODE_FIELD(cols);
1035  COMPARE_NODE_FIELD(selectStmt);
1036  COMPARE_NODE_FIELD(onConflictClause);
1037  COMPARE_NODE_FIELD(returningList);
1038  COMPARE_NODE_FIELD(withClause);
1039  COMPARE_SCALAR_FIELD(override);
1040 
1041  return true;
1042 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalInteger()

static bool _equalInteger ( const Integer a,
const Integer b 
)
static

Definition at line 3126 of file equalfuncs.c.

3127 {
3128  COMPARE_SCALAR_FIELD(ival);
3129 
3130  return true;
3131 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalIntoClause()

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

Definition at line 148 of file equalfuncs.c.

149 {
150  COMPARE_NODE_FIELD(rel);
151  COMPARE_NODE_FIELD(colNames);
152  COMPARE_STRING_FIELD(accessMethod);
154  COMPARE_SCALAR_FIELD(onCommit);
155  COMPARE_STRING_FIELD(tableSpaceName);
156  COMPARE_NODE_FIELD(viewQuery);
157  COMPARE_SCALAR_FIELD(skipData);
158 
159  return true;
160 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalJoinExpr()

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

Definition at line 805 of file equalfuncs.c.

806 {
807  COMPARE_SCALAR_FIELD(jointype);
808  COMPARE_SCALAR_FIELD(isNatural);
809  COMPARE_NODE_FIELD(larg);
810  COMPARE_NODE_FIELD(rarg);
811  COMPARE_NODE_FIELD(usingClause);
812  COMPARE_NODE_FIELD(join_using_alias);
813  COMPARE_NODE_FIELD(quals);
814  COMPARE_NODE_FIELD(alias);
815  COMPARE_SCALAR_FIELD(rtindex);
816 
817  return true;
818 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalList()

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

Definition at line 3067 of file equalfuncs.c.

3068 {
3069  const ListCell *item_a;
3070  const ListCell *item_b;
3071 
3072  /*
3073  * Try to reject by simple scalar checks before grovelling through all the
3074  * list elements...
3075  */
3077  COMPARE_SCALAR_FIELD(length);
3078 
3079  /*
3080  * We place the switch outside the loop for the sake of efficiency; this
3081  * may not be worth doing...
3082  */
3083  switch (a->type)
3084  {
3085  case T_List:
3086  forboth(item_a, a, item_b, b)
3087  {
3088  if (!equal(lfirst(item_a), lfirst(item_b)))
3089  return false;
3090  }
3091  break;
3092  case T_IntList:
3093  forboth(item_a, a, item_b, b)
3094  {
3095  if (lfirst_int(item_a) != lfirst_int(item_b))
3096  return false;
3097  }
3098  break;
3099  case T_OidList:
3100  forboth(item_a, a, item_b, b)
3101  {
3102  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3103  return false;
3104  }
3105  break;
3106  default:
3107  elog(ERROR, "unrecognized list node type: %d",
3108  (int) a->type);
3109  return false; /* keep compiler quiet */
3110  }
3111 
3112  /*
3113  * If we got here, we should have run out of elements of both lists
3114  */
3115  Assert(item_a == NULL);
3116  Assert(item_b == NULL);
3117 
3118  return true;
3119 }
#define ERROR
Definition: elog.h:33
#define elog(elevel,...)
Definition: elog.h:218
Assert(fmt[strlen(fmt) - 1] !='\n')
@ T_List
Definition: nodes.h:302
@ T_OidList
Definition: nodes.h:304
@ T_IntList
Definition: nodes.h:303
#define lfirst(lc)
Definition: pg_list.h:169
#define forboth(cell1, list1, cell2, list2)
Definition: pg_list.h:446
#define lfirst_int(lc)
Definition: pg_list.h:170
#define lfirst_oid(lc)
Definition: pg_list.h:171

References a, Assert(), b, COMPARE_SCALAR_FIELD, elog, equal(), ERROR, forboth, lfirst, lfirst_int, lfirst_oid, T_IntList, T_List, T_OidList, and generate_unaccent_rules::type.

Referenced by equal().

◆ _equalListenStmt()

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

Definition at line 1574 of file equalfuncs.c.

1575 {
1576  COMPARE_STRING_FIELD(conditionname);
1577 
1578  return true;
1579 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalLoadStmt()

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

Definition at line 1655 of file equalfuncs.c.

1656 {
1658 
1659  return true;
1660 }

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

◆ _equalLockingClause()

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

Definition at line 2750 of file equalfuncs.c.

2751 {
2752  COMPARE_NODE_FIELD(lockedRels);
2753  COMPARE_SCALAR_FIELD(strength);
2754  COMPARE_SCALAR_FIELD(waitPolicy);
2755 
2756  return true;
2757 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalLockStmt()

static bool _equalLockStmt ( const LockStmt a,
const LockStmt b 
)
static

Definition at line 2166 of file equalfuncs.c.

2167 {
2168  COMPARE_NODE_FIELD(relations);
2170  COMPARE_SCALAR_FIELD(nowait);
2171 
2172  return true;
2173 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

◆ _equalMinMaxExpr()

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

Definition at line 658 of file equalfuncs.c.

659 {
660  COMPARE_SCALAR_FIELD(minmaxtype);
661  COMPARE_SCALAR_FIELD(minmaxcollid);
662  COMPARE_SCALAR_FIELD(inputcollid);
665  COMPARE_LOCATION_FIELD(location);
666 
667  return true;
668 }

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

Referenced by equal().

◆ _equalMultiAssignRef()

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

Definition at line 2516 of file equalfuncs.c.

2517 {
2519  COMPARE_SCALAR_FIELD(colno);
2520  COMPARE_SCALAR_FIELD(ncolumns);
2521 
2522  return true;
2523 }
static rewind_source * source
Definition: pg_rewind.c:79

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and source.

Referenced by equal().

◆ _equalNamedArgExpr()

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

Definition at line 314 of file equalfuncs.c.

315 {
318  COMPARE_SCALAR_FIELD(argnumber);
319  COMPARE_LOCATION_FIELD(location);
320 
321  return true;
322 }

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

Referenced by equal().

◆ _equalNextValueExpr()

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

Definition at line 764 of file equalfuncs.c.

765 {
766  COMPARE_SCALAR_FIELD(seqid);
767  COMPARE_SCALAR_FIELD(typeId);
768 
769  return true;
770 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalNotifyStmt()

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

Definition at line 1565 of file equalfuncs.c.

1566 {
1567  COMPARE_STRING_FIELD(conditionname);
1568  COMPARE_STRING_FIELD(payload);
1569 
1570  return true;
1571 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalNullIfExpr()

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

Definition at line 377 of file equalfuncs.c.

378 {
379  COMPARE_SCALAR_FIELD(opno);
380 
381  /*
382  * Special-case opfuncid: it is allowable for it to differ if one node
383  * contains zero and the other doesn't. This just means that the one node
384  * isn't as far along in the parse/plan pipeline and hasn't had the
385  * opfuncid cache filled yet.
386  */
387  if (a->opfuncid != b->opfuncid &&
388  a->opfuncid != 0 &&
389  b->opfuncid != 0)
390  return false;
391 
392  COMPARE_SCALAR_FIELD(opresulttype);
393  COMPARE_SCALAR_FIELD(opretset);
394  COMPARE_SCALAR_FIELD(opcollid);
395  COMPARE_SCALAR_FIELD(inputcollid);
397  COMPARE_LOCATION_FIELD(location);
398 
399  return true;
400 }

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

Referenced by equal().

◆ _equalNullTest()

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

Definition at line 698 of file equalfuncs.c.

699 {
701  COMPARE_SCALAR_FIELD(nulltesttype);
702  COMPARE_SCALAR_FIELD(argisrow);
703  COMPARE_LOCATION_FIELD(location);
704 
705  return true;
706 }

References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalObjectWithArgs()

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

Definition at line 1194 of file equalfuncs.c.

1195 {
1196  COMPARE_NODE_FIELD(objname);
1197  COMPARE_NODE_FIELD(objargs);
1198  COMPARE_NODE_FIELD(objfuncargs);
1199  COMPARE_SCALAR_FIELD(args_unspecified);
1200 
1201  return true;
1202 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalOnConflictClause()

static bool _equalOnConflictClause ( const OnConflictClause a,
const OnConflictClause b 
)
static

Definition at line 2915 of file equalfuncs.c.

2916 {
2918  COMPARE_NODE_FIELD(infer);
2919  COMPARE_NODE_FIELD(targetList);
2920  COMPARE_NODE_FIELD(whereClause);
2921  COMPARE_LOCATION_FIELD(location);
2922 
2923  return true;
2924 }

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

Referenced by equal().

◆ _equalOnConflictExpr()

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

Definition at line 830 of file equalfuncs.c.

831 {
833  COMPARE_NODE_FIELD(arbiterElems);
834  COMPARE_NODE_FIELD(arbiterWhere);
835  COMPARE_SCALAR_FIELD(constraint);
836  COMPARE_NODE_FIELD(onConflictSet);
837  COMPARE_NODE_FIELD(onConflictWhere);
838  COMPARE_SCALAR_FIELD(exclRelIndex);
839  COMPARE_NODE_FIELD(exclRelTlist);
840 
841  return true;
842 }

References generate_unaccent_rules::action, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalOpExpr()

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

Definition at line 325 of file equalfuncs.c.

326 {
327  COMPARE_SCALAR_FIELD(opno);
328 
329  /*
330  * Special-case opfuncid: it is allowable for it to differ if one node
331  * contains zero and the other doesn't. This just means that the one node
332  * isn't as far along in the parse/plan pipeline and hasn't had the
333  * opfuncid cache filled yet.
334  */
335  if (a->opfuncid != b->opfuncid &&
336  a->opfuncid != 0 &&
337  b->opfuncid != 0)
338  return false;
339 
340  COMPARE_SCALAR_FIELD(opresulttype);
341  COMPARE_SCALAR_FIELD(opretset);
342  COMPARE_SCALAR_FIELD(opcollid);
343  COMPARE_SCALAR_FIELD(inputcollid);
345  COMPARE_LOCATION_FIELD(location);
346 
347  return true;
348 }

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

Referenced by equal().

◆ _equalParam()

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

Definition at line 211 of file equalfuncs.c.

212 {
213  COMPARE_SCALAR_FIELD(paramkind);
214  COMPARE_SCALAR_FIELD(paramid);
215  COMPARE_SCALAR_FIELD(paramtype);
216  COMPARE_SCALAR_FIELD(paramtypmod);
217  COMPARE_SCALAR_FIELD(paramcollid);
218  COMPARE_LOCATION_FIELD(location);
219 
220  return true;
221 }

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalParamRef()

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

Definition at line 2428 of file equalfuncs.c.

2429 {
2430  COMPARE_SCALAR_FIELD(number);
2431  COMPARE_LOCATION_FIELD(location);
2432 
2433  return true;
2434 }

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPartitionBoundSpec()

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

Definition at line 3028 of file equalfuncs.c.

3029 {
3030  COMPARE_SCALAR_FIELD(strategy);
3031  COMPARE_SCALAR_FIELD(is_default);
3032  COMPARE_SCALAR_FIELD(modulus);
3033  COMPARE_SCALAR_FIELD(remainder);
3034  COMPARE_NODE_FIELD(listdatums);
3035  COMPARE_NODE_FIELD(lowerdatums);
3036  COMPARE_NODE_FIELD(upperdatums);
3037  COMPARE_LOCATION_FIELD(location);
3038 
3039  return true;
3040 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPartitionCmd()

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

Definition at line 3053 of file equalfuncs.c.

3054 {
3056  COMPARE_NODE_FIELD(bound);
3057  COMPARE_SCALAR_FIELD(concurrent);
3058 
3059  return true;
3060 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.

Referenced by equal().

◆ _equalPartitionElem()

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

Definition at line 3006 of file equalfuncs.c.

3007 {
3009  COMPARE_NODE_FIELD(expr);
3010  COMPARE_NODE_FIELD(collation);
3011  COMPARE_NODE_FIELD(opclass);
3012  COMPARE_LOCATION_FIELD(location);
3013 
3014  return true;
3015 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalPartitionRangeDatum()

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

Definition at line 3043 of file equalfuncs.c.

3044 {
3045  COMPARE_SCALAR_FIELD(kind);
3047  COMPARE_LOCATION_FIELD(location);
3048 
3049  return true;
3050 }
static struct @142 value

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and value.

Referenced by equal().

◆ _equalPartitionSpec()

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

Definition at line 3018 of file equalfuncs.c.

3019 {
3020  COMPARE_STRING_FIELD(strategy);
3021  COMPARE_NODE_FIELD(partParams);
3022  COMPARE_LOCATION_FIELD(location);
3023 
3024  return true;
3025 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalPathKey()

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

Definition at line 849 of file equalfuncs.c.

850 {
851  /* We assume pointer equality is sufficient to compare the eclasses */
852  COMPARE_SCALAR_FIELD(pk_eclass);
853  COMPARE_SCALAR_FIELD(pk_opfamily);
854  COMPARE_SCALAR_FIELD(pk_strategy);
855  COMPARE_SCALAR_FIELD(pk_nulls_first);
856 
857  return true;
858 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPlaceHolderInfo()

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

Definition at line 938 of file equalfuncs.c.

939 {
940  COMPARE_SCALAR_FIELD(phid);
941  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
942  COMPARE_BITMAPSET_FIELD(ph_eval_at);
943  COMPARE_BITMAPSET_FIELD(ph_lateral);
944  COMPARE_BITMAPSET_FIELD(ph_needed);
945  COMPARE_SCALAR_FIELD(ph_width);
946 
947  return true;
948 }
#define COMPARE_BITMAPSET_FIELD(fldname)
Definition: equalfuncs.c:60

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPlaceHolderVar()

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

Definition at line 880 of file equalfuncs.c.

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

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPLAssignStmt()

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

Definition at line 1120 of file equalfuncs.c.

1121 {
1123  COMPARE_NODE_FIELD(indirection);
1124  COMPARE_SCALAR_FIELD(nnames);
1126  COMPARE_LOCATION_FIELD(location);
1127 
1128  return true;
1129 }
long val
Definition: informix.c:664

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

Referenced by equal().

◆ _equalPrepareStmt()

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

Definition at line 2231 of file equalfuncs.c.

2232 {
2234  COMPARE_NODE_FIELD(argtypes);
2235  COMPARE_NODE_FIELD(query);
2236 
2237  return true;
2238 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalPublicationObject()

static bool _equalPublicationObject ( const PublicationObjSpec a,
const PublicationObjSpec b 
)
static

Definition at line 2300 of file equalfuncs.c.

2302 {
2303  COMPARE_SCALAR_FIELD(pubobjtype);
2305  COMPARE_NODE_FIELD(pubtable);
2306  COMPARE_LOCATION_FIELD(location);
2307 
2308  return true;
2309 }

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

Referenced by equal().

◆ _equalPublicationTable()

static bool _equalPublicationTable ( const PublicationTable a,
const PublicationTable b 
)
static

Definition at line 2312 of file equalfuncs.c.

2313 {
2314  COMPARE_NODE_FIELD(relation);
2315 
2316  return true;
2317 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalQuery()

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

Definition at line 975 of file equalfuncs.c.

976 {
977  COMPARE_SCALAR_FIELD(commandType);
978  COMPARE_SCALAR_FIELD(querySource);
979  /* we intentionally ignore queryId, since it might not be set */
980  COMPARE_SCALAR_FIELD(canSetTag);
981  COMPARE_NODE_FIELD(utilityStmt);
982  COMPARE_SCALAR_FIELD(resultRelation);
983  COMPARE_SCALAR_FIELD(hasAggs);
984  COMPARE_SCALAR_FIELD(hasWindowFuncs);
985  COMPARE_SCALAR_FIELD(hasTargetSRFs);
986  COMPARE_SCALAR_FIELD(hasSubLinks);
987  COMPARE_SCALAR_FIELD(hasDistinctOn);
988  COMPARE_SCALAR_FIELD(hasRecursive);
989  COMPARE_SCALAR_FIELD(hasModifyingCTE);
990  COMPARE_SCALAR_FIELD(hasForUpdate);
991  COMPARE_SCALAR_FIELD(hasRowSecurity);
992  COMPARE_SCALAR_FIELD(isReturn);
993  COMPARE_NODE_FIELD(cteList);
994  COMPARE_NODE_FIELD(rtable);
995  COMPARE_NODE_FIELD(jointree);
996  COMPARE_NODE_FIELD(targetList);
997  COMPARE_SCALAR_FIELD(override);
998  COMPARE_NODE_FIELD(onConflict);
999  COMPARE_NODE_FIELD(returningList);
1000  COMPARE_NODE_FIELD(groupClause);
1001  COMPARE_SCALAR_FIELD(groupDistinct);
1002  COMPARE_NODE_FIELD(groupingSets);
1003  COMPARE_NODE_FIELD(havingQual);
1004  COMPARE_NODE_FIELD(windowClause);
1005  COMPARE_NODE_FIELD(distinctClause);
1006  COMPARE_NODE_FIELD(sortClause);
1007  COMPARE_NODE_FIELD(limitOffset);
1008  COMPARE_NODE_FIELD(limitCount);
1009  COMPARE_SCALAR_FIELD(limitOption);
1010  COMPARE_NODE_FIELD(rowMarks);
1011  COMPARE_NODE_FIELD(setOperations);
1012  COMPARE_NODE_FIELD(constraintDeps);
1013  COMPARE_NODE_FIELD(withCheckOptions);
1014  COMPARE_LOCATION_FIELD(stmt_location);
1015  COMPARE_SCALAR_FIELD(stmt_len);
1016 
1017  return true;
1018 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRangeFunction()

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

Definition at line 2598 of file equalfuncs.c.

2599 {
2600  COMPARE_SCALAR_FIELD(lateral);
2601  COMPARE_SCALAR_FIELD(ordinality);
2602  COMPARE_SCALAR_FIELD(is_rowsfrom);
2604  COMPARE_NODE_FIELD(alias);
2605  COMPARE_NODE_FIELD(coldeflist);
2606 
2607  return true;
2608 }
static const struct fns functions
Definition: regcomp.c:313

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and functions.

Referenced by equal().

◆ _equalRangeSubselect()

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

Definition at line 2588 of file equalfuncs.c.

2589 {
2590  COMPARE_SCALAR_FIELD(lateral);
2591  COMPARE_NODE_FIELD(subquery);
2592  COMPARE_NODE_FIELD(alias);
2593 
2594  return true;
2595 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRangeTableFunc()

static bool _equalRangeTableFunc ( const RangeTableFunc a,
const RangeTableFunc b 
)
static

Definition at line 2623 of file equalfuncs.c.

2624 {
2625  COMPARE_SCALAR_FIELD(lateral);
2626  COMPARE_NODE_FIELD(docexpr);
2627  COMPARE_NODE_FIELD(rowexpr);
2628  COMPARE_NODE_FIELD(namespaces);
2629  COMPARE_NODE_FIELD(columns);
2630  COMPARE_NODE_FIELD(alias);
2631  COMPARE_LOCATION_FIELD(location);
2632 
2633  return true;
2634 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRangeTableFuncCol()

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

Definition at line 2637 of file equalfuncs.c.

2638 {
2639  COMPARE_STRING_FIELD(colname);
2640  COMPARE_NODE_FIELD(typeName);
2641  COMPARE_SCALAR_FIELD(for_ordinality);
2642  COMPARE_SCALAR_FIELD(is_not_null);
2643  COMPARE_NODE_FIELD(colexpr);
2644  COMPARE_NODE_FIELD(coldefexpr);
2645  COMPARE_LOCATION_FIELD(location);
2646 
2647  return true;
2648 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalRangeTableSample()

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

Definition at line 2611 of file equalfuncs.c.

2612 {
2613  COMPARE_NODE_FIELD(relation);
2614  COMPARE_NODE_FIELD(method);
2616  COMPARE_NODE_FIELD(repeatable);
2617  COMPARE_LOCATION_FIELD(location);
2618 
2619  return true;
2620 }

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalRangeTblEntry()

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

Definition at line 2760 of file equalfuncs.c.

2761 {
2762  COMPARE_SCALAR_FIELD(rtekind);
2763  COMPARE_SCALAR_FIELD(relid);
2764  COMPARE_SCALAR_FIELD(relkind);
2765  COMPARE_SCALAR_FIELD(rellockmode);
2766  COMPARE_NODE_FIELD(tablesample);
2767  COMPARE_NODE_FIELD(subquery);
2768  COMPARE_SCALAR_FIELD(security_barrier);
2769  COMPARE_SCALAR_FIELD(jointype);
2770  COMPARE_SCALAR_FIELD(joinmergedcols);
2771  COMPARE_NODE_FIELD(joinaliasvars);
2772  COMPARE_NODE_FIELD(joinleftcols);
2773  COMPARE_NODE_FIELD(joinrightcols);
2774  COMPARE_NODE_FIELD(join_using_alias);
2776  COMPARE_SCALAR_FIELD(funcordinality);
2777  COMPARE_NODE_FIELD(tablefunc);
2778  COMPARE_NODE_FIELD(values_lists);
2779  COMPARE_STRING_FIELD(ctename);
2780  COMPARE_SCALAR_FIELD(ctelevelsup);
2781  COMPARE_SCALAR_FIELD(self_reference);
2782  COMPARE_NODE_FIELD(coltypes);
2783  COMPARE_NODE_FIELD(coltypmods);
2784  COMPARE_NODE_FIELD(colcollations);
2785  COMPARE_STRING_FIELD(enrname);
2786  COMPARE_SCALAR_FIELD(enrtuples);
2787  COMPARE_NODE_FIELD(alias);
2788  COMPARE_NODE_FIELD(eref);
2789  COMPARE_SCALAR_FIELD(lateral);
2790  COMPARE_SCALAR_FIELD(inh);
2791  COMPARE_SCALAR_FIELD(inFromCl);
2792  COMPARE_SCALAR_FIELD(requiredPerms);
2793  COMPARE_SCALAR_FIELD(checkAsUser);
2794  COMPARE_BITMAPSET_FIELD(selectedCols);
2795  COMPARE_BITMAPSET_FIELD(insertedCols);
2796  COMPARE_BITMAPSET_FIELD(updatedCols);
2797  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
2798  COMPARE_NODE_FIELD(securityQuals);
2799 
2800  return true;
2801 }

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

Referenced by equal().

◆ _equalRangeTblFunction()

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

Definition at line 2804 of file equalfuncs.c.

2805 {
2806  COMPARE_NODE_FIELD(funcexpr);
2807  COMPARE_SCALAR_FIELD(funccolcount);
2808  COMPARE_NODE_FIELD(funccolnames);
2809  COMPARE_NODE_FIELD(funccoltypes);
2810  COMPARE_NODE_FIELD(funccoltypmods);
2811  COMPARE_NODE_FIELD(funccolcollations);
2812  COMPARE_BITMAPSET_FIELD(funcparams);
2813 
2814  return true;
2815 }

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRangeTblRef()

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

Definition at line 797 of file equalfuncs.c.

798 {
799  COMPARE_SCALAR_FIELD(rtindex);
800 
801  return true;
802 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRangeVar()

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

Definition at line 114 of file equalfuncs.c.

115 {
116  COMPARE_STRING_FIELD(catalogname);
117  COMPARE_STRING_FIELD(schemaname);
120  COMPARE_SCALAR_FIELD(relpersistence);
121  COMPARE_NODE_FIELD(alias);
122  COMPARE_LOCATION_FIELD(location);
123 
124  return true;
125 }
NameData relname
Definition: pg_class.h:38

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

Referenced by equal().

◆ _equalRawStmt()

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

Definition at line 1021 of file equalfuncs.c.

1022 {
1023  COMPARE_NODE_FIELD(stmt);
1024  COMPARE_LOCATION_FIELD(stmt_location);
1025  COMPARE_SCALAR_FIELD(stmt_len);
1026 
1027  return true;
1028 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalReassignOwnedStmt()

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

Definition at line 2267 of file equalfuncs.c.

2268 {
2269  COMPARE_NODE_FIELD(roles);
2270  COMPARE_NODE_FIELD(newrole);
2271 
2272  return true;
2273 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalRefreshMatViewStmt()

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

Definition at line 1798 of file equalfuncs.c.

1799 {
1800  COMPARE_SCALAR_FIELD(concurrent);
1801  COMPARE_SCALAR_FIELD(skipData);
1802  COMPARE_NODE_FIELD(relation);
1803 
1804  return true;
1805 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalReindexStmt()

static bool _equalReindexStmt ( const ReindexStmt a,
const ReindexStmt b 
)
static

Definition at line 2185 of file equalfuncs.c.

2186 {
2187  COMPARE_SCALAR_FIELD(kind);
2188  COMPARE_NODE_FIELD(relation);
2190  COMPARE_NODE_FIELD(params);
2191 
2192  return true;
2193 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalRelabelType()

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

Definition at line 516 of file equalfuncs.c.

517 {
519  COMPARE_SCALAR_FIELD(resulttype);
520  COMPARE_SCALAR_FIELD(resulttypmod);
521  COMPARE_SCALAR_FIELD(resultcollid);
522  COMPARE_COERCIONFORM_FIELD(relabelformat);
523  COMPARE_LOCATION_FIELD(location);
524 
525  return true;
526 }

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

Referenced by equal().

◆ _equalRenameStmt()

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

Definition at line 1483 of file equalfuncs.c.

1484 {
1485  COMPARE_SCALAR_FIELD(renameType);
1486  COMPARE_SCALAR_FIELD(relationType);
1487  COMPARE_NODE_FIELD(relation);
1488  COMPARE_NODE_FIELD(object);
1490  COMPARE_STRING_FIELD(newname);
1491  COMPARE_SCALAR_FIELD(behavior);
1492  COMPARE_SCALAR_FIELD(missing_ok);
1493 
1494  return true;
1495 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and subname.

Referenced by equal().

◆ _equalReplicaIdentityStmt()

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

Definition at line 1808 of file equalfuncs.c.

1809 {
1810  COMPARE_SCALAR_FIELD(identity_type);
1812 
1813  return true;
1814 }

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalResTarget()

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

Definition at line 2505 of file equalfuncs.c.

2506 {
2508  COMPARE_NODE_FIELD(indirection);
2510  COMPARE_LOCATION_FIELD(location);
2511 
2512  return true;
2513 }

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

Referenced by equal().

◆ _equalRestrictInfo()

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

Definition at line 861 of file equalfuncs.c.

862 {
863  COMPARE_NODE_FIELD(clause);
864  COMPARE_SCALAR_FIELD(is_pushed_down);
865  COMPARE_SCALAR_FIELD(outerjoin_delayed);
866  COMPARE_SCALAR_FIELD(security_level);
867  COMPARE_BITMAPSET_FIELD(required_relids);
868  COMPARE_BITMAPSET_FIELD(outer_relids);
869  COMPARE_BITMAPSET_FIELD(nullable_relids);
870 
871  /*
872  * We ignore all the remaining fields, since they may not be set yet, and
873  * should be derivable from the clause anyway.
874  */
875 
876  return true;
877 }

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalReturnStmt()

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

Definition at line 1112 of file equalfuncs.c.

1113 {
1114  COMPARE_NODE_FIELD(returnval);
1115 
1116  return true;
1117 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalRoleSpec()

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

Definition at line 2986 of file equalfuncs.c.

2987 {
2988  COMPARE_SCALAR_FIELD(roletype);
2989  COMPARE_STRING_FIELD(rolename);
2990  COMPARE_LOCATION_FIELD(location);
2991 
2992  return true;
2993 }

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalRowCompareExpr()

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

Definition at line 634 of file equalfuncs.c.

635 {
636  COMPARE_SCALAR_FIELD(rctype);
637  COMPARE_NODE_FIELD(opnos);
638  COMPARE_NODE_FIELD(opfamilies);
639  COMPARE_NODE_FIELD(inputcollids);
640  COMPARE_NODE_FIELD(largs);
641  COMPARE_NODE_FIELD(rargs);
642 
643  return true;
644 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRowExpr()

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

Definition at line 622 of file equalfuncs.c.

623 {
625  COMPARE_SCALAR_FIELD(row_typeid);
626  COMPARE_COERCIONFORM_FIELD(row_format);
627  COMPARE_NODE_FIELD(colnames);
628  COMPARE_LOCATION_FIELD(location);
629 
630  return true;
631 }

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

Referenced by equal().

◆ _equalRowMarkClause()

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

Definition at line 2883 of file equalfuncs.c.

2884 {
2885  COMPARE_SCALAR_FIELD(rti);
2886  COMPARE_SCALAR_FIELD(strength);
2887  COMPARE_SCALAR_FIELD(waitPolicy);
2888  COMPARE_SCALAR_FIELD(pushedDown);
2889 
2890  return true;
2891 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRuleStmt()

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

Definition at line 1551 of file equalfuncs.c.

1552 {
1553  COMPARE_NODE_FIELD(relation);
1554  COMPARE_STRING_FIELD(rulename);
1555  COMPARE_NODE_FIELD(whereClause);
1556  COMPARE_SCALAR_FIELD(event);
1557  COMPARE_SCALAR_FIELD(instead);
1558  COMPARE_NODE_FIELD(actions);
1559  COMPARE_SCALAR_FIELD(replace);
1560 
1561  return true;
1562 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalScalarArrayOpExpr()

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

Definition at line 403 of file equalfuncs.c.

404 {
405  COMPARE_SCALAR_FIELD(opno);
406 
407  /*
408  * Special-case opfuncid: it is allowable for it to differ if one node
409  * contains zero and the other doesn't. This just means that the one node
410  * isn't as far along in the parse/plan pipeline and hasn't had the
411  * opfuncid cache filled yet.
412  */
413  if (a->opfuncid != b->opfuncid &&
414  a->opfuncid != 0 &&
415  b->opfuncid != 0)
416  return false;
417 
418  /* As above, hashfuncid may differ too */
419  if (a->hashfuncid != b->hashfuncid &&
420  a->hashfuncid != 0 &&
421  b->hashfuncid != 0)
422  return false;
423 
424  /* Likewise for the negfuncid */
425  if (a->negfuncid != b->negfuncid &&
426  a->negfuncid != 0 &&
427  b->negfuncid != 0)
428  return false;
429 
430  COMPARE_SCALAR_FIELD(useOr);
431  COMPARE_SCALAR_FIELD(inputcollid);
433  COMPARE_LOCATION_FIELD(location);
434 
435  return true;
436 }

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

Referenced by equal().

◆ _equalSecLabelStmt()

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

Definition at line 1364 of file equalfuncs.c.

1365 {
1366  COMPARE_SCALAR_FIELD(objtype);
1367  COMPARE_NODE_FIELD(object);
1370 
1371  return true;
1372 }
static JitProviderCallbacks provider
Definition: jit.c:43
static char * label

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

Referenced by equal().

◆ _equalSelectStmt()

static bool _equalSelectStmt ( const SelectStmt a,
const SelectStmt b 
)
static

Definition at line 1070 of file equalfuncs.c.

1071 {
1072  COMPARE_NODE_FIELD(distinctClause);
1073  COMPARE_NODE_FIELD(intoClause);
1074  COMPARE_NODE_FIELD(targetList);
1075  COMPARE_NODE_FIELD(fromClause);
1076  COMPARE_NODE_FIELD(whereClause);
1077  COMPARE_NODE_FIELD(groupClause);
1078  COMPARE_SCALAR_FIELD(groupDistinct);
1079  COMPARE_NODE_FIELD(havingClause);
1080  COMPARE_NODE_FIELD(windowClause);
1081  COMPARE_NODE_FIELD(valuesLists);
1082  COMPARE_NODE_FIELD(sortClause);
1083  COMPARE_NODE_FIELD(limitOffset);
1084  COMPARE_NODE_FIELD(limitCount);
1085  COMPARE_SCALAR_FIELD(limitOption);
1086  COMPARE_NODE_FIELD(lockingClause);
1087  COMPARE_NODE_FIELD(withClause);
1089  COMPARE_SCALAR_FIELD(all);
1090  COMPARE_NODE_FIELD(larg);
1091  COMPARE_NODE_FIELD(rarg);
1092 
1093  return true;
1094 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSetOperationStmt()

static bool _equalSetOperationStmt ( const SetOperationStmt a,
const SetOperationStmt b 
)
static

Definition at line 1097 of file equalfuncs.c.

1098 {
1100  COMPARE_SCALAR_FIELD(all);
1101  COMPARE_NODE_FIELD(larg);
1102  COMPARE_NODE_FIELD(rarg);
1103  COMPARE_NODE_FIELD(colTypes);
1104  COMPARE_NODE_FIELD(colTypmods);
1105  COMPARE_NODE_FIELD(colCollations);
1106  COMPARE_NODE_FIELD(groupClauses);
1107 
1108  return true;
1109 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSetToDefault()

static bool _equalSetToDefault ( const SetToDefault a,
const SetToDefault b 
)
static

Definition at line 743 of file equalfuncs.c.

744 {
745  COMPARE_SCALAR_FIELD(typeId);
746  COMPARE_SCALAR_FIELD(typeMod);
747  COMPARE_SCALAR_FIELD(collation);
748  COMPARE_LOCATION_FIELD(location);
749 
750  return true;
751 }

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSortBy()

static bool _equalSortBy ( const SortBy a,
const SortBy b 
)
static

Definition at line 2561 of file equalfuncs.c.

2562 {
2563  COMPARE_NODE_FIELD(node);
2564  COMPARE_SCALAR_FIELD(sortby_dir);
2565  COMPARE_SCALAR_FIELD(sortby_nulls);
2566  COMPARE_NODE_FIELD(useOp);
2567  COMPARE_LOCATION_FIELD(location);
2568 
2569  return true;
2570 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSortGroupClause()

static bool _equalSortGroupClause ( const SortGroupClause a,
const SortGroupClause b 
)
static

Definition at line 2840 of file equalfuncs.c.

2841 {
2842  COMPARE_SCALAR_FIELD(tleSortGroupRef);
2843  COMPARE_SCALAR_FIELD(eqop);
2844  COMPARE_SCALAR_FIELD(sortop);
2845  COMPARE_SCALAR_FIELD(nulls_first);
2846  COMPARE_SCALAR_FIELD(hashable);
2847 
2848  return true;
2849 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSpecialJoinInfo()

static bool _equalSpecialJoinInfo ( const SpecialJoinInfo a,
const SpecialJoinInfo b 
)
static

Definition at line 905 of file equalfuncs.c.

906 {
907  COMPARE_BITMAPSET_FIELD(min_lefthand);
908  COMPARE_BITMAPSET_FIELD(min_righthand);
909  COMPARE_BITMAPSET_FIELD(syn_lefthand);
910  COMPARE_BITMAPSET_FIELD(syn_righthand);
911  COMPARE_SCALAR_FIELD(jointype);
912  COMPARE_SCALAR_FIELD(lhs_strict);
913  COMPARE_SCALAR_FIELD(delay_upper_joins);
914  COMPARE_SCALAR_FIELD(semi_can_btree);
915  COMPARE_SCALAR_FIELD(semi_can_hash);
916  COMPARE_NODE_FIELD(semi_operators);
917  COMPARE_NODE_FIELD(semi_rhs_exprs);
918 
919  return true;
920 }

References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSQLValueFunction()

static bool _equalSQLValueFunction ( const SQLValueFunction a,
const SQLValueFunction b 
)
static

Definition at line 671 of file equalfuncs.c.

672 {
675  COMPARE_SCALAR_FIELD(typmod);
676  COMPARE_LOCATION_FIELD(location);
677 
678  return true;
679 }

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, and generate_unaccent_rules::type.

Referenced by equal().

◆ _equalStatsElem()

static bool _equalStatsElem ( const StatsElem a,
const StatsElem b 
)
static

Definition at line 2668 of file equalfuncs.c.

2669 {
2671  COMPARE_NODE_FIELD(expr);
2672 
2673  return true;
2674 }

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalString()

static bool _equalString ( const String a,
const String b 
)
static

Definition at line 3150 of file equalfuncs.c.

3151 {
3152  COMPARE_STRING_FIELD(sval);
3153 
3154  return true;
3155 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalSubLink()

static bool _equalSubLink ( const SubLink a,
const SubLink b 
)
static

Definition at line 449 of file equalfuncs.c.

450 {
451  COMPARE_SCALAR_FIELD(subLinkType);
452  COMPARE_SCALAR_FIELD(subLinkId);
453  COMPARE_NODE_FIELD(testexpr);
454  COMPARE_NODE_FIELD(operName);
455  COMPARE_NODE_FIELD(subselect);
456  COMPARE_LOCATION_FIELD(location);
457 
458  return true;
459 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSubPlan()

static bool _equalSubPlan ( const SubPlan a,
const SubPlan b 
)
static

Definition at line 462 of file equalfuncs.c.

463 {
464  COMPARE_SCALAR_FIELD(subLinkType);
465  COMPARE_NODE_FIELD(testexpr);
466  COMPARE_NODE_FIELD(paramIds);
467  COMPARE_SCALAR_FIELD(plan_id);
468  COMPARE_STRING_FIELD(plan_name);
469  COMPARE_SCALAR_FIELD(firstColType);
470  COMPARE_SCALAR_FIELD(firstColTypmod);
471  COMPARE_SCALAR_FIELD(firstColCollation);
472  COMPARE_SCALAR_FIELD(useHashTable);
473  COMPARE_SCALAR_FIELD(unknownEqFalse);
474  COMPARE_SCALAR_FIELD(parallel_safe);
475  COMPARE_NODE_FIELD(setParam);
476  COMPARE_NODE_FIELD(parParam);
478  COMPARE_SCALAR_FIELD(startup_cost);
479  COMPARE_SCALAR_FIELD(per_call_cost);
480 
481  return true;
482 }

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

Referenced by equal().

◆ _equalSubscriptingRef()

static bool _equalSubscriptingRef ( const SubscriptingRef a,
const SubscriptingRef b 
)
static

Definition at line 282 of file equalfuncs.c.

283 {
284  COMPARE_SCALAR_FIELD(refcontainertype);
285  COMPARE_SCALAR_FIELD(refelemtype);
286  COMPARE_SCALAR_FIELD(refrestype);
287  COMPARE_SCALAR_FIELD(reftypmod);
288  COMPARE_SCALAR_FIELD(refcollid);
289  COMPARE_NODE_FIELD(refupperindexpr);
290  COMPARE_NODE_FIELD(reflowerindexpr);
291  COMPARE_NODE_FIELD(refexpr);
292  COMPARE_NODE_FIELD(refassgnexpr);
293 
294  return true;
295 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalTableFunc()

static bool _equalTableFunc ( const TableFunc a,
const TableFunc b 
)
static

Definition at line 128 of file equalfuncs.c.

129 {
130  COMPARE_NODE_FIELD(ns_uris);
131  COMPARE_NODE_FIELD(ns_names);
132  COMPARE_NODE_FIELD(docexpr);
133  COMPARE_NODE_FIELD(rowexpr);
134  COMPARE_NODE_FIELD(colnames);
135  COMPARE_NODE_FIELD(coltypes);
136  COMPARE_NODE_FIELD(coltypmods);
137  COMPARE_NODE_FIELD(colcollations);
138  COMPARE_NODE_FIELD(colexprs);
139  COMPARE_NODE_FIELD(coldefexprs);
140  COMPARE_BITMAPSET_FIELD(notnulls);
141  COMPARE_SCALAR_FIELD(ordinalitycol);
142  COMPARE_LOCATION_FIELD(location);
143 
144  return true;
145 }

References COMPARE_BITMAPSET_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalTableLikeClause()

static bool _equalTableLikeClause ( const TableLikeClause a,
const TableLikeClause b 
)
static

Definition at line 1308 of file equalfuncs.c.

1309 {
1310  COMPARE_NODE_FIELD(relation);
1312  COMPARE_SCALAR_FIELD(relationOid);
1313 
1314  return true;
1315 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalTableSampleClause()

static bool _equalTableSampleClause ( const TableSampleClause a,
const TableSampleClause b 
)
static

Definition at line 2818 of file equalfuncs.c.

2819 {
2820  COMPARE_SCALAR_FIELD(tsmhandler);
2822  COMPARE_NODE_FIELD(repeatable);
2823 
2824  return true;
2825 }

References generate_unaccent_rules::args, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalTargetEntry()

static bool _equalTargetEntry ( const TargetEntry a,
const TargetEntry b 
)
static

Definition at line 783 of file equalfuncs.c.

784 {
785  COMPARE_NODE_FIELD(expr);
786  COMPARE_SCALAR_FIELD(resno);
787  COMPARE_STRING_FIELD(resname);
788  COMPARE_SCALAR_FIELD(ressortgroupref);
789  COMPARE_SCALAR_FIELD(resorigtbl);
790  COMPARE_SCALAR_FIELD(resorigcol);
791  COMPARE_SCALAR_FIELD(resjunk);
792 
793  return true;
794 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalTransactionStmt()

static bool _equalTransactionStmt ( const TransactionStmt a,
const TransactionStmt b 
)
static

Definition at line 1590 of file equalfuncs.c.

1591 {
1592  COMPARE_SCALAR_FIELD(kind);
1594  COMPARE_STRING_FIELD(savepoint_name);
1595  COMPARE_STRING_FIELD(gid);
1596  COMPARE_SCALAR_FIELD(chain);
1597 
1598  return true;
1599 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalTriggerTransition()

static bool _equalTriggerTransition ( const TriggerTransition a,
const TriggerTransition b 
)
static

Definition at line 2996 of file equalfuncs.c.

2997 {
2999  COMPARE_SCALAR_FIELD(isNew);
3000  COMPARE_SCALAR_FIELD(isTable);
3001 
3002  return true;
3003 }

References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalTruncateStmt()

static bool _equalTruncateStmt ( const TruncateStmt a,
const TruncateStmt b 
)
static

Definition at line 1344 of file equalfuncs.c.

1345 {
1346  COMPARE_NODE_FIELD(relations);
1347  COMPARE_SCALAR_FIELD(restart_seqs);
1348  COMPARE_SCALAR_FIELD(behavior);
1349 
1350  return true;
1351 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalTypeCast()

static bool _equalTypeCast ( const TypeCast a,
const TypeCast b 
)
static

Definition at line 2541 of file equalfuncs.c.

2542 {
2544  COMPARE_NODE_FIELD(typeName);
2545  COMPARE_LOCATION_FIELD(location);
2546 
2547  return true;
2548 }

References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalTypeName()

static bool _equalTypeName ( const TypeName a,
const TypeName b 
)
static

Definition at line 2526 of file equalfuncs.c.

2527 {
2528  COMPARE_NODE_FIELD(names);
2529  COMPARE_SCALAR_FIELD(typeOid);
2530  COMPARE_SCALAR_FIELD(setof);
2531  COMPARE_SCALAR_FIELD(pct_type);
2532  COMPARE_NODE_FIELD(typmods);
2533  COMPARE_SCALAR_FIELD(typemod);
2534  COMPARE_NODE_FIELD(arrayBounds);
2535  COMPARE_LOCATION_FIELD(location);
2536 
2537  return true;
2538 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalUnlistenStmt()

static bool _equalUnlistenStmt ( const UnlistenStmt a,
const UnlistenStmt b 
)
static

Definition at line 1582 of file equalfuncs.c.

1583 {
1584  COMPARE_STRING_FIELD(conditionname);
1585 
1586  return true;
1587 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalUpdateStmt()

static bool _equalUpdateStmt ( const UpdateStmt a,
const UpdateStmt b 
)
static

Definition at line 1057 of file equalfuncs.c.

1058 {
1059  COMPARE_NODE_FIELD(relation);
1060  COMPARE_NODE_FIELD(targetList);
1061  COMPARE_NODE_FIELD(whereClause);
1062  COMPARE_NODE_FIELD(fromClause);
1063  COMPARE_NODE_FIELD(returningList);
1064  COMPARE_NODE_FIELD(withClause);
1065 
1066  return true;
1067 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalVacuumRelation()

static bool _equalVacuumRelation ( const VacuumRelation a,
const VacuumRelation b 
)
static

Definition at line 1767 of file equalfuncs.c.

1768 {
1769  COMPARE_NODE_FIELD(relation);
1770  COMPARE_SCALAR_FIELD(oid);
1771  COMPARE_NODE_FIELD(va_cols);
1772 
1773  return true;
1774 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalVacuumStmt()

static bool _equalVacuumStmt ( const VacuumStmt a,
const VacuumStmt b 
)
static

Definition at line 1757 of file equalfuncs.c.

1758 {
1760  COMPARE_NODE_FIELD(rels);
1761  COMPARE_SCALAR_FIELD(is_vacuumcmd);
1762 
1763  return true;
1764 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalVar()

static bool _equalVar ( const Var a,
const Var b 
)
static

Definition at line 170 of file equalfuncs.c.

171 {
172  COMPARE_SCALAR_FIELD(varno);
173  COMPARE_SCALAR_FIELD(varattno);
174  COMPARE_SCALAR_FIELD(vartype);
175  COMPARE_SCALAR_FIELD(vartypmod);
176  COMPARE_SCALAR_FIELD(varcollid);
177  COMPARE_SCALAR_FIELD(varlevelsup);
178 
179  /*
180  * varnosyn/varattnosyn are intentionally ignored here, because Vars with
181  * different syntactic identifiers are semantically the same as long as
182  * their varno/varattno match.
183  */
184  COMPARE_LOCATION_FIELD(location);
185 
186  return true;
187 }

References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalVariableSetStmt()

static bool _equalVariableSetStmt ( const VariableSetStmt a,
const VariableSetStmt b 
)
static

Definition at line 1849 of file equalfuncs.c.

1850 {
1851  COMPARE_SCALAR_FIELD(kind);
1854  COMPARE_SCALAR_FIELD(is_local);
1855 
1856  return true;
1857 }

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

Referenced by equal().

◆ _equalVariableShowStmt()

static bool _equalVariableShowStmt ( const VariableShowStmt a,
const VariableShowStmt b 
)
static

Definition at line 1860 of file equalfuncs.c.

1861 {
1863 
1864  return true;
1865 }

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalViewStmt()

static bool _equalViewStmt ( const ViewStmt a,
const ViewStmt b 
)
static

Definition at line 1642 of file equalfuncs.c.

1643 {
1644  COMPARE_NODE_FIELD(view);
1645  COMPARE_NODE_FIELD(aliases);
1646  COMPARE_NODE_FIELD(query);
1647  COMPARE_SCALAR_FIELD(replace);
1649  COMPARE_SCALAR_FIELD(withCheckOption);
1650 
1651  return true;
1652 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalWindowClause()

static bool _equalWindowClause ( const WindowClause a,
const WindowClause b 
)
static

Definition at line 2862 of file equalfuncs.c.

2863 {
2865  COMPARE_STRING_FIELD(refname);
2866  COMPARE_NODE_FIELD(partitionClause);
2867  COMPARE_NODE_FIELD(orderClause);
2868  COMPARE_SCALAR_FIELD(frameOptions);
2869  COMPARE_NODE_FIELD(startOffset);
2870  COMPARE_NODE_FIELD(endOffset);
2871  COMPARE_SCALAR_FIELD(startInRangeFunc);
2872  COMPARE_SCALAR_FIELD(endInRangeFunc);
2873  COMPARE_SCALAR_FIELD(inRangeColl);
2874  COMPARE_SCALAR_FIELD(inRangeAsc);
2875  COMPARE_SCALAR_FIELD(inRangeNullsFirst);
2876  COMPARE_SCALAR_FIELD(winref);
2877  COMPARE_SCALAR_FIELD(copiedOrder);
2878 
2879  return true;
2880 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalWindowDef()

static bool _equalWindowDef ( const WindowDef a,
const WindowDef b 
)
static

Definition at line 2573 of file equalfuncs.c.

2574 {
2576  COMPARE_STRING_FIELD(refname);
2577  COMPARE_NODE_FIELD(partitionClause);
2578  COMPARE_NODE_FIELD(orderClause);
2579  COMPARE_SCALAR_FIELD(frameOptions);
2580  COMPARE_NODE_FIELD(startOffset);
2581  COMPARE_NODE_FIELD(endOffset);
2582  COMPARE_LOCATION_FIELD(location);
2583 
2584  return true;
2585 }

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

Referenced by equal().

◆ _equalWindowFunc()

static bool _equalWindowFunc ( const WindowFunc a,
const WindowFunc b 
)
static

Definition at line 265 of file equalfuncs.c.

266 {
267  COMPARE_SCALAR_FIELD(winfnoid);
268  COMPARE_SCALAR_FIELD(wintype);
269  COMPARE_SCALAR_FIELD(wincollid);
270  COMPARE_SCALAR_FIELD(inputcollid);
272  COMPARE_NODE_FIELD(aggfilter);
273  COMPARE_SCALAR_FIELD(winref);
274  COMPARE_SCALAR_FIELD(winstar);
275  COMPARE_SCALAR_FIELD(winagg);
276  COMPARE_LOCATION_FIELD(location);
277 
278  return true;
279 }

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

Referenced by equal().

◆ _equalWithCheckOption()

static bool _equalWithCheckOption ( const WithCheckOption a,
const WithCheckOption b 
)
static

Definition at line 2828 of file equalfuncs.c.

2829 {
2830  COMPARE_SCALAR_FIELD(kind);
2832  COMPARE_STRING_FIELD(polname);
2833  COMPARE_NODE_FIELD(qual);
2834  COMPARE_SCALAR_FIELD(cascaded);
2835 
2836  return true;
2837 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and relname.

Referenced by equal().

◆ _equalWithClause()

static bool _equalWithClause ( const WithClause a,
const WithClause b 
)
static

Definition at line 2894 of file equalfuncs.c.

2895 {
2896  COMPARE_NODE_FIELD(ctes);
2897  COMPARE_SCALAR_FIELD(recursive);
2898  COMPARE_LOCATION_FIELD(location);
2899 
2900  return true;
2901 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalXmlExpr()

static bool _equalXmlExpr ( const XmlExpr a,
const XmlExpr b 
)
static

Definition at line 682 of file equalfuncs.c.

683 {
686  COMPARE_NODE_FIELD(named_args);
687  COMPARE_NODE_FIELD(arg_names);
691  COMPARE_SCALAR_FIELD(typmod);
692  COMPARE_LOCATION_FIELD(location);
693 
694  return true;
695 }
int xmloption
Definition: xml.c:98

References generate_unaccent_rules::args, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, name, generate_unaccent_rules::type, and xmloption.

Referenced by equal().

◆ _equalXmlSerialize()

static bool _equalXmlSerialize ( const XmlSerialize a,
const XmlSerialize b 
)
static

Definition at line 2975 of file equalfuncs.c.

2976 {
2978  COMPARE_NODE_FIELD(expr);
2979  COMPARE_NODE_FIELD(typeName);
2980  COMPARE_LOCATION_FIELD(location);
2981 
2982  return true;
2983 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and xmloption.

Referenced by equal().

◆ equal()

bool equal ( const void *  a,
const void *  b 
)

Definition at line 3170 of file equalfuncs.c.

3171 {
3172  bool retval;
3173 
3174  if (a == b)
3175  return true;
3176 
3177  /*
3178  * note that a!=b, so only one of them can be NULL
3179  */
3180  if (a == NULL || b == NULL)
3181  return false;
3182 
3183  /*
3184  * are they the same type of nodes?
3185  */
3186  if (nodeTag(a) != nodeTag(b))
3187  return false;
3188 
3189  /* Guard against stack overflow due to overly complex expressions */
3191 
3192  switch (nodeTag(a))
3193  {
3194  /*
3195  * PRIMITIVE NODES
3196  */
3197  case T_Alias:
3198  retval = _equalAlias(a, b);
3199  break;
3200  case T_RangeVar:
3201  retval = _equalRangeVar(a, b);
3202  break;
3203  case T_TableFunc:
3204  retval = _equalTableFunc(a, b);
3205  break;
3206  case T_IntoClause:
3207  retval = _equalIntoClause(a, b);
3208  break;
3209  case T_Var:
3210  retval = _equalVar(a, b);
3211  break;
3212  case T_Const:
3213  retval = _equalConst(a, b);
3214  break;
3215  case T_Param:
3216  retval = _equalParam(a, b);
3217  break;
3218  case T_Aggref:
3219  retval = _equalAggref(a, b);
3220  break;
3221  case T_GroupingFunc:
3222  retval = _equalGroupingFunc(a, b);
3223  break;
3224  case T_WindowFunc:
3225  retval = _equalWindowFunc(a, b);
3226  break;
3227  case T_SubscriptingRef:
3228  retval = _equalSubscriptingRef(a, b);
3229  break;
3230  case T_FuncExpr:
3231  retval = _equalFuncExpr(a, b);
3232  break;
3233  case T_NamedArgExpr:
3234  retval = _equalNamedArgExpr(a, b);
3235  break;
3236  case T_OpExpr:
3237  retval = _equalOpExpr(a, b);
3238  break;
3239  case T_DistinctExpr:
3240  retval = _equalDistinctExpr(a, b);
3241  break;
3242  case T_NullIfExpr:
3243  retval = _equalNullIfExpr(a, b);
3244  break;
3245  case T_ScalarArrayOpExpr:
3246  retval = _equalScalarArrayOpExpr(a, b);
3247  break;
3248  case T_BoolExpr:
3249  retval = _equalBoolExpr(a, b);
3250  break;
3251  case T_SubLink:
3252  retval = _equalSubLink(a, b);
3253  break;
3254  case T_SubPlan:
3255  retval = _equalSubPlan(a, b);
3256  break;
3257  case T_AlternativeSubPlan:
3258  retval = _equalAlternativeSubPlan(a, b);
3259  break;
3260  case T_FieldSelect:
3261  retval = _equalFieldSelect(a, b);
3262  break;
3263  case T_FieldStore:
3264