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 _equalJsonTable (const JsonTable *a, const JsonTable *b)
 
static bool _equalJsonTableColumn (const JsonTableColumn *a, const JsonTableColumn *b)
 
static bool _equalJsonTableParent (const JsonTableParent *a, const JsonTableParent *b)
 
static bool _equalJsonTableSibling (const JsonTableSibling *a, const JsonTableSibling *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 _equalJsonFormat (const JsonFormat *a, const JsonFormat *b)
 
static bool _equalJsonReturning (const JsonReturning *a, const JsonReturning *b)
 
static bool _equalJsonValueExpr (const JsonValueExpr *a, const JsonValueExpr *b)
 
static bool _equalJsonParseExpr (const JsonParseExpr *a, const JsonParseExpr *b)
 
static bool _equalJsonScalarExpr (const JsonScalarExpr *a, const JsonScalarExpr *b)
 
static bool _equalJsonSerializeExpr (const JsonSerializeExpr *a, const JsonSerializeExpr *b)
 
static bool _equalJsonConstructorExpr (const JsonConstructorExpr *a, const JsonConstructorExpr *b)
 
static bool _equalJsonKeyValue (const JsonKeyValue *a, const JsonKeyValue *b)
 
static bool _equalJsonObjectConstructor (const JsonObjectConstructor *a, const JsonObjectConstructor *b)
 
static bool _equalJsonAggConstructor (const JsonAggConstructor *a, const JsonAggConstructor *b)
 
static bool _equalJsonObjectAgg (const JsonObjectAgg *a, const JsonObjectAgg *b)
 
static bool _equalJsonOutput (const JsonOutput *a, const JsonOutput *b)
 
static bool _equalJsonArrayConstructor (const JsonArrayConstructor *a, const JsonArrayConstructor *b)
 
static bool _equalJsonArrayAgg (const JsonArrayAgg *a, const JsonArrayAgg *b)
 
static bool _equalJsonArrayQueryConstructor (const JsonArrayQueryConstructor *a, const JsonArrayQueryConstructor *b)
 
static bool _equalJsonFuncExpr (const JsonFuncExpr *a, const JsonFuncExpr *b)
 
static bool _equalJsonCommon (const JsonCommon *a, const JsonCommon *b)
 
static bool _equalJsonArgument (const JsonArgument *a, const JsonArgument *b)
 
static bool _equalJsonIsPredicate (const JsonIsPredicate *a, const JsonIsPredicate *b)
 
static bool _equalJsonBehavior (const JsonBehavior *a, const JsonBehavior *b)
 
static bool _equalJsonExpr (const JsonExpr *a, const JsonExpr *b)
 
static bool _equalJsonCoercion (const JsonCoercion *a, const JsonCoercion *b)
 
static bool _equalJsonItemCoercions (const JsonItemCoercions *a, const JsonItemCoercions *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 _equalMergeStmt (const MergeStmt *a, const MergeStmt *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 _equalAlterDatabaseRefreshCollStmt (const AlterDatabaseRefreshCollStmt *a, const AlterDatabaseRefreshCollStmt *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 _equalMergeWhenClause (const MergeWhenClause *a, const MergeWhenClause *b)
 
static bool _equalMergeAction (const MergeAction *a, const MergeAction *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:3564

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

2863 {
2864  COMPARE_NODE_FIELD(elements);
2865  COMPARE_LOCATION_FIELD(location);
2866 
2867  return true;
2868 }
#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 2804 of file equalfuncs.c.

2805 {
2806  /*
2807  * Hack for in-line val field. Also val is not valid is isnull is true.
2808  */
2809  if (!a->isnull && !b->isnull &&
2810  !equal(&a->val, &b->val))
2811  return false;
2812  COMPARE_SCALAR_FIELD(isnull);
2813  COMPARE_LOCATION_FIELD(location);
2814 
2815  return true;
2816 }
#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 2774 of file equalfuncs.c.

2775 {
2776  COMPARE_SCALAR_FIELD(kind);
2778  COMPARE_NODE_FIELD(lexpr);
2779  COMPARE_NODE_FIELD(rexpr);
2780  COMPARE_LOCATION_FIELD(location);
2781 
2782  return true;
2783 }
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 2843 of file equalfuncs.c.

2844 {
2845  COMPARE_SCALAR_FIELD(is_slice);
2846  COMPARE_NODE_FIELD(lidx);
2847  COMPARE_NODE_FIELD(uidx);
2848 
2849  return true;
2850 }

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

2854 {
2856  COMPARE_NODE_FIELD(indirection);
2857 
2858  return true;
2859 }
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 2837 of file equalfuncs.c.

2838 {
2839  return true;
2840 }

Referenced by equal().

◆ _equalAccessPriv()

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

Definition at line 1561 of file equalfuncs.c.

1562 {
1563  COMPARE_STRING_FIELD(priv_name);
1564  COMPARE_NODE_FIELD(cols);
1565 
1566  return true;
1567 }
#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 281 of file equalfuncs.c.

282 {
283  COMPARE_SCALAR_FIELD(aggfnoid);
284  COMPARE_SCALAR_FIELD(aggtype);
285  COMPARE_SCALAR_FIELD(aggcollid);
286  COMPARE_SCALAR_FIELD(inputcollid);
287  /* ignore aggtranstype since it might not be set yet */
288  COMPARE_NODE_FIELD(aggargtypes);
289  COMPARE_NODE_FIELD(aggdirectargs);
291  COMPARE_NODE_FIELD(aggorder);
292  COMPARE_NODE_FIELD(aggdistinct);
293  COMPARE_NODE_FIELD(aggfilter);
294  COMPARE_SCALAR_FIELD(aggstar);
295  COMPARE_SCALAR_FIELD(aggvariadic);
296  COMPARE_SCALAR_FIELD(aggkind);
297  COMPARE_SCALAR_FIELD(agglevelsup);
298  COMPARE_SCALAR_FIELD(aggsplit);
299  COMPARE_SCALAR_FIELD(aggno);
300  COMPARE_SCALAR_FIELD(aggtransno);
301  COMPARE_LOCATION_FIELD(location);
302 
303  return true;
304 }

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

1514 {
1515  COMPARE_NODE_FIELD(collname);
1516 
1517  return true;
1518 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterDatabaseRefreshCollStmt()

static bool _equalAlterDatabaseRefreshCollStmt ( const AlterDatabaseRefreshCollStmt a,
const AlterDatabaseRefreshCollStmt b 
)
static

Definition at line 2095 of file equalfuncs.c.

2096 {
2098 
2099  return true;
2100 }
char * dbname
Definition: streamutil.c:51

References COMPARE_STRING_FIELD, and dbname.

Referenced by equal().

◆ _equalAlterDatabaseSetStmt()

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

Definition at line 2103 of file equalfuncs.c.

2104 {
2106  COMPARE_NODE_FIELD(setstmt);
2107 
2108  return true;
2109 }

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

2087 {
2090 
2091  return true;
2092 }

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

1584 {
1587 
1588  return true;
1589 }

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

1522 {
1523  COMPARE_SCALAR_FIELD(subtype);
1524  COMPARE_NODE_FIELD(typeName);
1526  COMPARE_NODE_FIELD(def);
1527  COMPARE_SCALAR_FIELD(behavior);
1528  COMPARE_SCALAR_FIELD(missing_ok);
1529 
1530  return true;
1531 }

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

1987 {
1988  COMPARE_NODE_FIELD(typeName);
1989  COMPARE_STRING_FIELD(oldVal);
1990  COMPARE_STRING_FIELD(newVal);
1991  COMPARE_STRING_FIELD(newValNeighbor);
1992  COMPARE_SCALAR_FIELD(newValIsAfter);
1993  COMPARE_SCALAR_FIELD(skipIfNewValExists);
1994 
1995  return true;
1996 }

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

2471 {
2472  COMPARE_STRING_FIELD(trigname);
2473  COMPARE_SCALAR_FIELD(tgenabled);
2474 
2475  return true;
2476 }

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

2305 {
2306  COMPARE_STRING_FIELD(extname);
2308  COMPARE_SCALAR_FIELD(objtype);
2309  COMPARE_NODE_FIELD(object);
2310 
2311  return true;
2312 }

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

2296 {
2297  COMPARE_STRING_FIELD(extname);
2299 
2300  return true;
2301 }

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

2326 {
2327  COMPARE_STRING_FIELD(fdwname);
2328  COMPARE_NODE_FIELD(func_options);
2330 
2331  return true;
2332 }

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

2349 {
2350  COMPARE_STRING_FIELD(servername);
2351  COMPARE_STRING_FIELD(version);
2353  COMPARE_SCALAR_FIELD(has_version);
2354 
2355  return true;
2356 }

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

1823 {
1824  COMPARE_SCALAR_FIELD(objtype);
1825  COMPARE_NODE_FIELD(func);
1826  COMPARE_NODE_FIELD(actions);
1827 
1828  return true;
1829 }

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

543 {
544  COMPARE_NODE_FIELD(subplans);
545 
546  return true;
547 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterObjectDependsStmt()

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

Definition at line 1855 of file equalfuncs.c.

1856 {
1857  COMPARE_SCALAR_FIELD(objectType);
1858  COMPARE_NODE_FIELD(relation);
1859  COMPARE_NODE_FIELD(object);
1860  COMPARE_NODE_FIELD(extname);
1861  COMPARE_SCALAR_FIELD(remove);
1862 
1863  return true;
1864 }

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

1868 {
1869  COMPARE_SCALAR_FIELD(objectType);
1870  COMPARE_NODE_FIELD(relation);
1871  COMPARE_NODE_FIELD(object);
1872  COMPARE_STRING_FIELD(newschema);
1873  COMPARE_SCALAR_FIELD(missing_ok);
1874 
1875  return true;
1876 }

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

1891 {
1892  COMPARE_NODE_FIELD(opername);
1894 
1895  return true;
1896 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterOpFamilyStmt()

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

Definition at line 2066 of file equalfuncs.c.

2067 {
2068  COMPARE_NODE_FIELD(opfamilyname);
2069  COMPARE_STRING_FIELD(amname);
2070  COMPARE_SCALAR_FIELD(isDrop);
2071  COMPARE_NODE_FIELD(items);
2072 
2073  return true;
2074 }

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

1880 {
1881  COMPARE_SCALAR_FIELD(objectType);
1882  COMPARE_NODE_FIELD(relation);
1883  COMPARE_NODE_FIELD(object);
1884  COMPARE_NODE_FIELD(newowner);
1885 
1886  return true;
1887 }

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

2763 {
2764  COMPARE_STRING_FIELD(policy_name);
2765  COMPARE_NODE_FIELD(table);
2766  COMPARE_NODE_FIELD(roles);
2767  COMPARE_NODE_FIELD(qual);
2768  COMPARE_NODE_FIELD(with_check);
2769 
2770  return true;
2771 }

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

2701 {
2702  COMPARE_STRING_FIELD(pubname);
2704  COMPARE_NODE_FIELD(pubobjects);
2705  COMPARE_SCALAR_FIELD(for_all_tables);
2707 
2708  return true;
2709 }

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

2513 {
2514  COMPARE_NODE_FIELD(role);
2515  COMPARE_STRING_FIELD(database);
2516  COMPARE_NODE_FIELD(setstmt);
2517 
2518  return true;
2519 }

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

2503 {
2504  COMPARE_NODE_FIELD(role);
2507 
2508  return true;
2509 }

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

2204 {
2205  COMPARE_NODE_FIELD(sequence);
2207  COMPARE_SCALAR_FIELD(for_identity);
2208  COMPARE_SCALAR_FIELD(missing_ok);
2209 
2210  return true;
2211 }

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

1788 {
1789  COMPARE_NODE_FIELD(defnames);
1790  COMPARE_SCALAR_FIELD(stxstattarget);
1791  COMPARE_SCALAR_FIELD(missing_ok);
1792 
1793  return true;
1794 }

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

2726 {
2727  COMPARE_SCALAR_FIELD(kind);
2729  COMPARE_STRING_FIELD(conninfo);
2730  COMPARE_NODE_FIELD(publication);
2732 
2733  return true;
2734 }
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 2182 of file equalfuncs.c.

2183 {
2184  COMPARE_NODE_FIELD(setstmt);
2185 
2186  return true;
2187 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterTableCmd()

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

Definition at line 1499 of file equalfuncs.c.

1500 {
1501  COMPARE_SCALAR_FIELD(subtype);
1503  COMPARE_SCALAR_FIELD(num);
1504  COMPARE_NODE_FIELD(newowner);
1505  COMPARE_NODE_FIELD(def);
1506  COMPARE_SCALAR_FIELD(behavior);
1507  COMPARE_SCALAR_FIELD(missing_ok);
1508 
1509  return true;
1510 }

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

2274 {
2275  COMPARE_STRING_FIELD(orig_tablespacename);
2276  COMPARE_SCALAR_FIELD(objtype);
2277  COMPARE_NODE_FIELD(roles);
2278  COMPARE_STRING_FIELD(new_tablespacename);
2279  COMPARE_SCALAR_FIELD(nowait);
2280 
2281  return true;
2282 }

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

2263 {
2264  COMPARE_STRING_FIELD(tablespacename);
2266  COMPARE_SCALAR_FIELD(isReset);
2267 
2268  return true;
2269 }

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

1489 {
1490  COMPARE_NODE_FIELD(relation);
1491  COMPARE_NODE_FIELD(cmds);
1492  COMPARE_SCALAR_FIELD(objtype);
1493  COMPARE_SCALAR_FIELD(missing_ok);
1494 
1495  return true;
1496 }

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

2652 {
2653  COMPARE_SCALAR_FIELD(kind);
2654  COMPARE_NODE_FIELD(cfgname);
2655  COMPARE_NODE_FIELD(tokentype);
2656  COMPARE_NODE_FIELD(dicts);
2657  COMPARE_SCALAR_FIELD(override);
2658  COMPARE_SCALAR_FIELD(replace);
2659  COMPARE_SCALAR_FIELD(missing_ok);
2660 
2661  return true;
2662 }

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

2642 {
2643  COMPARE_NODE_FIELD(dictname);
2645 
2646  return true;
2647 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterTypeStmt()

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

Definition at line 1899 of file equalfuncs.c.

1900 {
1901  COMPARE_NODE_FIELD(typeName);
1903 
1904  return true;
1905 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalAlterUserMappingStmt()

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

Definition at line 2370 of file equalfuncs.c.

2371 {
2373  COMPARE_STRING_FIELD(servername);
2375 
2376  return true;
2377 }
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 1265 of file equalfuncs.c.

1266 {
1267  COMPARE_SCALAR_FIELD(parent_relid);
1268  COMPARE_SCALAR_FIELD(child_relid);
1269  COMPARE_SCALAR_FIELD(parent_reltype);
1270  COMPARE_SCALAR_FIELD(child_reltype);
1271  COMPARE_NODE_FIELD(translated_vars);
1272  COMPARE_SCALAR_FIELD(num_child_cols);
1273  COMPARE_POINTER_FIELD(parent_colnos, a->num_child_cols * sizeof(AttrNumber));
1274  COMPARE_SCALAR_FIELD(parent_reloid);
1275 
1276  return true;
1277 }
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 598 of file equalfuncs.c.

599 {
601  COMPARE_NODE_FIELD(elemexpr);
602  COMPARE_SCALAR_FIELD(resulttype);
603  COMPARE_SCALAR_FIELD(resulttypmod);
604  COMPARE_SCALAR_FIELD(resultcollid);
605  COMPARE_COERCIONFORM_FIELD(coerceformat);
606  COMPARE_LOCATION_FIELD(location);
607 
608  return true;
609 }
#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 666 of file equalfuncs.c.

667 {
668  COMPARE_SCALAR_FIELD(array_typeid);
669  COMPARE_SCALAR_FIELD(array_collid);
670  COMPARE_SCALAR_FIELD(element_typeid);
671  COMPARE_NODE_FIELD(elements);
672  COMPARE_SCALAR_FIELD(multidims);
673  COMPARE_LOCATION_FIELD(location);
674 
675  return true;
676 }

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

3553 {
3554  COMPARE_STRING_FIELD(bsval);
3555 
3556  return true;
3557 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalBoolean()

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

Definition at line 3536 of file equalfuncs.c.

3537 {
3538  COMPARE_SCALAR_FIELD(boolval);
3539 
3540  return true;
3541 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalBooleanTest()

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

Definition at line 766 of file equalfuncs.c.

767 {
769  COMPARE_SCALAR_FIELD(booltesttype);
770  COMPARE_LOCATION_FIELD(location);
771 
772  return true;
773 }

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

497 {
500  COMPARE_LOCATION_FIELD(location);
501 
502  return true;
503 }
Datum boolop(PG_FUNCTION_ARGS)
Definition: _int_bool.c:418

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

1611 {
1612  COMPARE_NODE_FIELD(funccall);
1613  COMPARE_NODE_FIELD(funcexpr);
1614  COMPARE_NODE_FIELD(outargs);
1615 
1616  return true;
1617 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCaseExpr()

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

Definition at line 633 of file equalfuncs.c.

634 {
635  COMPARE_SCALAR_FIELD(casetype);
636  COMPARE_SCALAR_FIELD(casecollid);
639  COMPARE_NODE_FIELD(defresult);
640  COMPARE_LOCATION_FIELD(location);
641 
642  return true;
643 }

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

657 {
658  COMPARE_SCALAR_FIELD(typeId);
659  COMPARE_SCALAR_FIELD(typeMod);
660  COMPARE_SCALAR_FIELD(collation);
661 
662  return true;
663 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalCaseWhen()

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

Definition at line 646 of file equalfuncs.c.

647 {
648  COMPARE_NODE_FIELD(expr);
649  COMPARE_NODE_FIELD(result);
650  COMPARE_LOCATION_FIELD(location);
651 
652  return true;
653 }

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

1603 {
1604  COMPARE_STRING_FIELD(portalname);
1605 
1606  return true;
1607 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalClusterStmt()

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

Definition at line 1620 of file equalfuncs.c.

1621 {
1622  COMPARE_NODE_FIELD(relation);
1623  COMPARE_STRING_FIELD(indexname);
1624  COMPARE_NODE_FIELD(params);
1625 
1626  return true;
1627 }

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

705 {
706  COMPARE_SCALAR_FIELD(coalescetype);
707  COMPARE_SCALAR_FIELD(coalescecollid);
709  COMPARE_LOCATION_FIELD(location);
710 
711  return true;
712 }

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

777 {
779  COMPARE_SCALAR_FIELD(resulttype);
780  COMPARE_SCALAR_FIELD(resulttypmod);
781  COMPARE_SCALAR_FIELD(resultcollid);
782  COMPARE_COERCIONFORM_FIELD(coercionformat);
783  COMPARE_LOCATION_FIELD(location);
784 
785  return true;
786 }

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

790 {
791  COMPARE_SCALAR_FIELD(typeId);
792  COMPARE_SCALAR_FIELD(typeMod);
793  COMPARE_SCALAR_FIELD(collation);
794  COMPARE_LOCATION_FIELD(location);
795 
796  return true;
797 }

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

587 {
589  COMPARE_SCALAR_FIELD(resulttype);
590  COMPARE_SCALAR_FIELD(resultcollid);
591  COMPARE_COERCIONFORM_FIELD(coerceformat);
592  COMPARE_LOCATION_FIELD(location);
593 
594  return true;
595 }

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

2918 {
2920  COMPARE_NODE_FIELD(collname);
2921  COMPARE_LOCATION_FIELD(location);
2922 
2923  return true;
2924 }

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

624 {
626  COMPARE_SCALAR_FIELD(collOid);
627  COMPARE_LOCATION_FIELD(location);
628 
629  return true;
630 }

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

3044 {
3045  COMPARE_STRING_FIELD(colname);
3046  COMPARE_NODE_FIELD(typeName);
3047  COMPARE_STRING_FIELD(compression);
3048  COMPARE_SCALAR_FIELD(inhcount);
3049  COMPARE_SCALAR_FIELD(is_local);
3050  COMPARE_SCALAR_FIELD(is_not_null);
3051  COMPARE_SCALAR_FIELD(is_from_type);
3052  COMPARE_SCALAR_FIELD(storage);
3053  COMPARE_NODE_FIELD(raw_default);
3054  COMPARE_NODE_FIELD(cooked_default);
3055  COMPARE_SCALAR_FIELD(identity);
3056  COMPARE_NODE_FIELD(identitySequence);
3057  COMPARE_SCALAR_FIELD(generated);
3058  COMPARE_NODE_FIELD(collClause);
3059  COMPARE_SCALAR_FIELD(collOid);
3060  COMPARE_NODE_FIELD(constraints);
3061  COMPARE_NODE_FIELD(fdwoptions);
3062  COMPARE_LOCATION_FIELD(location);
3063 
3064  return true;
3065 }

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

2787 {
2788  COMPARE_NODE_FIELD(fields);
2789  COMPARE_LOCATION_FIELD(location);
2790 
2791  return true;
2792 }

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

1711 {
1712  COMPARE_SCALAR_FIELD(objtype);
1713  COMPARE_NODE_FIELD(object);
1714  COMPARE_STRING_FIELD(comment);
1715 
1716  return true;
1717 }

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

3324 {
3325  COMPARE_STRING_FIELD(ctename);
3326  COMPARE_NODE_FIELD(aliascolnames);
3327  COMPARE_SCALAR_FIELD(ctematerialized);
3328  COMPARE_NODE_FIELD(ctequery);
3329  COMPARE_NODE_FIELD(search_clause);
3330  COMPARE_NODE_FIELD(cycle_clause);
3331  COMPARE_LOCATION_FIELD(location);
3332  COMPARE_SCALAR_FIELD(cterecursive);
3333  COMPARE_SCALAR_FIELD(cterefcount);
3334  COMPARE_NODE_FIELD(ctecolnames);
3335  COMPARE_NODE_FIELD(ctecoltypes);
3336  COMPARE_NODE_FIELD(ctecoltypmods);
3337  COMPARE_NODE_FIELD(ctecolcollations);
3338 
3339  return true;
3340 }

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

1960 {
1961  COMPARE_NODE_FIELD(typevar);
1962  COMPARE_NODE_FIELD(coldeflist);
1963 
1964  return true;
1965 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalConst()

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

Definition at line 247 of file equalfuncs.c.

248 {
249  COMPARE_SCALAR_FIELD(consttype);
250  COMPARE_SCALAR_FIELD(consttypmod);
251  COMPARE_SCALAR_FIELD(constcollid);
252  COMPARE_SCALAR_FIELD(constlen);
253  COMPARE_SCALAR_FIELD(constisnull);
254  COMPARE_SCALAR_FIELD(constbyval);
255  COMPARE_LOCATION_FIELD(location);
256 
257  /*
258  * We treat all NULL constants of the same type as equal. Someday this
259  * might need to change? But datumIsEqual doesn't work on nulls, so...
260  */
261  if (a->constisnull)
262  return true;
263  return datumIsEqual(a->constvalue, b->constvalue,
264  a->constbyval, a->constlen);
265 }
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 3068 of file equalfuncs.c.

3069 {
3070  COMPARE_SCALAR_FIELD(contype);
3071  COMPARE_STRING_FIELD(conname);
3072  COMPARE_SCALAR_FIELD(deferrable);
3073  COMPARE_SCALAR_FIELD(initdeferred);
3074  COMPARE_LOCATION_FIELD(location);
3075  COMPARE_SCALAR_FIELD(is_no_inherit);
3076  COMPARE_NODE_FIELD(raw_expr);
3077  COMPARE_STRING_FIELD(cooked_expr);
3078  COMPARE_SCALAR_FIELD(generated_when);
3079  COMPARE_SCALAR_FIELD(nulls_not_distinct);
3080  COMPARE_NODE_FIELD(keys);
3081  COMPARE_NODE_FIELD(including);
3082  COMPARE_NODE_FIELD(exclusions);
3084  COMPARE_STRING_FIELD(indexname);
3085  COMPARE_STRING_FIELD(indexspace);
3086  COMPARE_SCALAR_FIELD(reset_default_tblspc);
3087  COMPARE_STRING_FIELD(access_method);
3088  COMPARE_NODE_FIELD(where_clause);
3089  COMPARE_NODE_FIELD(pktable);
3090  COMPARE_NODE_FIELD(fk_attrs);
3091  COMPARE_NODE_FIELD(pk_attrs);
3092  COMPARE_SCALAR_FIELD(fk_matchtype);
3093  COMPARE_SCALAR_FIELD(fk_upd_action);
3094  COMPARE_SCALAR_FIELD(fk_del_action);
3095  COMPARE_NODE_FIELD(fk_del_set_cols);
3096  COMPARE_NODE_FIELD(old_conpfeqop);
3097  COMPARE_SCALAR_FIELD(old_pktable_oid);
3098  COMPARE_SCALAR_FIELD(skip_validation);
3099  COMPARE_SCALAR_FIELD(initially_valid);
3100 
3101  return true;
3102 }

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

2542 {
2543  COMPARE_NODE_FIELD(constraints);
2544  COMPARE_SCALAR_FIELD(deferred);
2545 
2546  return true;
2547 }

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

613 {
615  COMPARE_SCALAR_FIELD(resulttype);
616  COMPARE_COERCIONFORM_FIELD(convertformat);
617  COMPARE_LOCATION_FIELD(location);
618 
619  return true;
620 }

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

1631 {
1632  COMPARE_NODE_FIELD(relation);
1633  COMPARE_NODE_FIELD(query);
1634  COMPARE_NODE_FIELD(attlist);
1635  COMPARE_SCALAR_FIELD(is_from);
1636  COMPARE_SCALAR_FIELD(is_program);
1639  COMPARE_NODE_FIELD(whereClause);
1640 
1641  return true;
1642 }
static char * filename
Definition: pg_dumpall.c:94

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

2428 {
2429  COMPARE_STRING_FIELD(amname);
2430  COMPARE_NODE_FIELD(handler_name);
2431  COMPARE_SCALAR_FIELD(amtype);
2432 
2433  return true;
2434 }

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

2585 {
2586  COMPARE_NODE_FIELD(sourcetype);
2587  COMPARE_NODE_FIELD(targettype);
2588  COMPARE_NODE_FIELD(func);
2589  COMPARE_SCALAR_FIELD(context);
2590  COMPARE_SCALAR_FIELD(inout);
2591 
2592  return true;
2593 }

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

2573 {
2574  COMPARE_NODE_FIELD(conversion_name);
2575  COMPARE_STRING_FIELD(for_encoding_name);
2576  COMPARE_STRING_FIELD(to_encoding_name);
2577  COMPARE_NODE_FIELD(func_name);
2578  COMPARE_SCALAR_FIELD(def);
2579 
2580  return true;
2581 }

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

2078 {
2081 
2082  return true;
2083 }

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

2021 {
2022  COMPARE_NODE_FIELD(domainname);
2023  COMPARE_NODE_FIELD(typeName);
2024  COMPARE_NODE_FIELD(collClause);
2025  COMPARE_NODE_FIELD(constraints);
2026 
2027  return true;
2028 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateEnumStmt()

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

Definition at line 1968 of file equalfuncs.c.

1969 {
1970  COMPARE_NODE_FIELD(typeName);
1971  COMPARE_NODE_FIELD(vals);
1972 
1973  return true;
1974 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateEventTrigStmt()

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

Definition at line 2459 of file equalfuncs.c.

2460 {
2461  COMPARE_STRING_FIELD(trigname);
2462  COMPARE_STRING_FIELD(eventname);
2463  COMPARE_NODE_FIELD(whenclause);
2464  COMPARE_NODE_FIELD(funcname);
2465 
2466  return true;
2467 }

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

2286 {
2287  COMPARE_STRING_FIELD(extname);
2288  COMPARE_SCALAR_FIELD(if_not_exists);
2290 
2291  return true;
2292 }

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

2316 {
2317  COMPARE_STRING_FIELD(fdwname);
2318  COMPARE_NODE_FIELD(func_options);
2320 
2321  return true;
2322 }

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

2336 {
2337  COMPARE_STRING_FIELD(servername);
2338  COMPARE_STRING_FIELD(servertype);
2339  COMPARE_STRING_FIELD(version);
2340  COMPARE_STRING_FIELD(fdwname);
2341  COMPARE_SCALAR_FIELD(if_not_exists);
2343 
2344  return true;
2345 }

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

2391 {
2392  if (!_equalCreateStmt(&a->base, &b->base))
2393  return false;
2394 
2395  COMPARE_STRING_FIELD(servername);
2397 
2398  return true;
2399 }
static bool _equalCreateStmt(const CreateStmt *a, const CreateStmt *b)
Definition: equalfuncs.c:1645

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

1798 {
1799  COMPARE_SCALAR_FIELD(is_procedure);
1800  COMPARE_SCALAR_FIELD(replace);
1801  COMPARE_NODE_FIELD(funcname);
1802  COMPARE_NODE_FIELD(parameters);
1803  COMPARE_NODE_FIELD(returnType);
1805  COMPARE_NODE_FIELD(sql_body);
1806 
1807  return true;
1808 }

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

2045 {
2046  COMPARE_SCALAR_FIELD(itemtype);
2048  COMPARE_SCALAR_FIELD(number);
2049  COMPARE_NODE_FIELD(order_family);
2050  COMPARE_NODE_FIELD(class_args);
2051  COMPARE_NODE_FIELD(storedtype);
2052 
2053  return true;
2054 }

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

2032 {
2033  COMPARE_NODE_FIELD(opclassname);
2034  COMPARE_NODE_FIELD(opfamilyname);
2035  COMPARE_STRING_FIELD(amname);
2036  COMPARE_NODE_FIELD(datatype);
2037  COMPARE_NODE_FIELD(items);
2038  COMPARE_SCALAR_FIELD(isDefault);
2039 
2040  return true;
2041 }

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

2058 {
2059  COMPARE_NODE_FIELD(opfamilyname);
2060  COMPARE_STRING_FIELD(amname);
2061 
2062  return true;
2063 }

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

2480 {
2481  COMPARE_SCALAR_FIELD(replace);
2482  COMPARE_STRING_FIELD(plname);
2483  COMPARE_NODE_FIELD(plhandler);
2484  COMPARE_NODE_FIELD(plinline);
2485  COMPARE_NODE_FIELD(plvalidator);
2486  COMPARE_SCALAR_FIELD(pltrusted);
2487 
2488  return true;
2489 }

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

2749 {
2750  COMPARE_STRING_FIELD(policy_name);
2751  COMPARE_NODE_FIELD(table);
2752  COMPARE_STRING_FIELD(cmd_name);
2753  COMPARE_SCALAR_FIELD(permissive);
2754  COMPARE_NODE_FIELD(roles);
2755  COMPARE_NODE_FIELD(qual);
2756  COMPARE_NODE_FIELD(with_check);
2757 
2758  return true;
2759 }

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

2689 {
2690  COMPARE_STRING_FIELD(pubname);
2692  COMPARE_NODE_FIELD(pubobjects);
2693  COMPARE_SCALAR_FIELD(for_all_tables);
2694 
2695  return true;
2696 }

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

1978 {
1979  COMPARE_NODE_FIELD(typeName);
1980  COMPARE_NODE_FIELD(params);
1981 
1982  return true;
1983 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalCreateRoleStmt()

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

Definition at line 2492 of file equalfuncs.c.

2493 {
2494  COMPARE_SCALAR_FIELD(stmt_type);
2495  COMPARE_STRING_FIELD(role);
2497 
2498  return true;
2499 }

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

2562 {
2563  COMPARE_STRING_FIELD(schemaname);
2564  COMPARE_NODE_FIELD(authrole);
2565  COMPARE_NODE_FIELD(schemaElts);
2566  COMPARE_SCALAR_FIELD(if_not_exists);
2567 
2568  return true;
2569 }

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

2192 {
2193  COMPARE_NODE_FIELD(sequence);
2195  COMPARE_SCALAR_FIELD(ownerId);
2196  COMPARE_SCALAR_FIELD(for_identity);
2197  COMPARE_SCALAR_FIELD(if_not_exists);
2198 
2199  return true;
2200 }

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

1774 {
1775  COMPARE_NODE_FIELD(defnames);
1776  COMPARE_NODE_FIELD(stat_types);
1777  COMPARE_NODE_FIELD(exprs);
1778  COMPARE_NODE_FIELD(relations);
1779  COMPARE_STRING_FIELD(stxcomment);
1780  COMPARE_SCALAR_FIELD(transformed);
1781  COMPARE_SCALAR_FIELD(if_not_exists);
1782 
1783  return true;
1784 }

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

1646 {
1647  COMPARE_NODE_FIELD(relation);
1648  COMPARE_NODE_FIELD(tableElts);
1649  COMPARE_NODE_FIELD(inhRelations);
1650  COMPARE_NODE_FIELD(partbound);
1651  COMPARE_NODE_FIELD(partspec);
1652  COMPARE_NODE_FIELD(ofTypename);
1653  COMPARE_NODE_FIELD(constraints);
1655  COMPARE_SCALAR_FIELD(oncommit);
1656  COMPARE_STRING_FIELD(tablespacename);
1657  COMPARE_STRING_FIELD(accessMethod);
1658  COMPARE_SCALAR_FIELD(if_not_exists);
1659 
1660  return true;
1661 }

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

2714 {
2716  COMPARE_STRING_FIELD(conninfo);
2717  COMPARE_NODE_FIELD(publication);
2719 
2720  return true;
2721 }

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

2152 {
2153  COMPARE_NODE_FIELD(query);
2154  COMPARE_NODE_FIELD(into);
2155  COMPARE_SCALAR_FIELD(objtype);
2156  COMPARE_SCALAR_FIELD(is_select_into);
2157  COMPARE_SCALAR_FIELD(if_not_exists);
2158 
2159  return true;
2160 }

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

2242 {
2243  COMPARE_STRING_FIELD(tablespacename);
2244  COMPARE_NODE_FIELD(owner);
2245  COMPARE_STRING_FIELD(location);
2247 
2248  return true;
2249 }

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

2416 {
2417  COMPARE_SCALAR_FIELD(replace);
2418  COMPARE_NODE_FIELD(type_name);
2419  COMPARE_STRING_FIELD(lang);
2420  COMPARE_NODE_FIELD(fromsql);
2421  COMPARE_NODE_FIELD(tosql);
2422 
2423  return true;
2424 }

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

2438 {
2439  COMPARE_SCALAR_FIELD(replace);
2440  COMPARE_SCALAR_FIELD(isconstraint);
2441  COMPARE_STRING_FIELD(trigname);
2442  COMPARE_NODE_FIELD(relation);
2443  COMPARE_NODE_FIELD(funcname);
2445  COMPARE_SCALAR_FIELD(row);
2446  COMPARE_SCALAR_FIELD(timing);
2447  COMPARE_SCALAR_FIELD(events);
2448  COMPARE_NODE_FIELD(columns);
2449  COMPARE_NODE_FIELD(whenClause);
2450  COMPARE_NODE_FIELD(transitionRels);
2451  COMPARE_SCALAR_FIELD(deferrable);
2452  COMPARE_SCALAR_FIELD(initdeferred);
2453  COMPARE_NODE_FIELD(constrrel);
2454 
2455  return true;
2456 }

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

2360 {
2362  COMPARE_STRING_FIELD(servername);
2363  COMPARE_SCALAR_FIELD(if_not_exists);
2365 
2366  return true;
2367 }

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

3307 {
3308  COMPARE_NODE_FIELD(cycle_col_list);
3309  COMPARE_STRING_FIELD(cycle_mark_column);
3310  COMPARE_NODE_FIELD(cycle_mark_value);
3311  COMPARE_NODE_FIELD(cycle_mark_default);
3312  COMPARE_STRING_FIELD(cycle_path_column);
3313  COMPARE_LOCATION_FIELD(location);
3314  COMPARE_SCALAR_FIELD(cycle_mark_type);
3315  COMPARE_SCALAR_FIELD(cycle_mark_typmod);
3316  COMPARE_SCALAR_FIELD(cycle_mark_collation);
3317  COMPARE_SCALAR_FIELD(cycle_mark_neop);
3318 
3319  return true;
3320 }

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

3296 {
3297  COMPARE_NODE_FIELD(search_col_list);
3298  COMPARE_SCALAR_FIELD(search_breadth_first);
3299  COMPARE_STRING_FIELD(search_seq_column);
3300  COMPARE_LOCATION_FIELD(location);
3301 
3302  return true;
3303 }

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

812 {
813  COMPARE_SCALAR_FIELD(cvarno);
814  COMPARE_STRING_FIELD(cursor_name);
815  COMPARE_SCALAR_FIELD(cursor_param);
816 
817  return true;
818 }

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

2616 {
2618 
2619  return true;
2620 }

References COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalDeclareCursorStmt()

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

Definition at line 1592 of file equalfuncs.c.

1593 {
1594  COMPARE_STRING_FIELD(portalname);
1596  COMPARE_NODE_FIELD(query);
1597 
1598  return true;
1599 }

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

3106 {
3107  COMPARE_STRING_FIELD(defnamespace);
3108  COMPARE_STRING_FIELD(defname);
3110  COMPARE_SCALAR_FIELD(defaction);
3111  COMPARE_LOCATION_FIELD(location);
3112 
3113  return true;
3114 }

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

1675 {
1676  COMPARE_SCALAR_FIELD(kind);
1677  COMPARE_SCALAR_FIELD(oldstyle);
1678  COMPARE_NODE_FIELD(defnames);
1680  COMPARE_NODE_FIELD(definition);
1681  COMPARE_SCALAR_FIELD(if_not_exists);
1682  COMPARE_SCALAR_FIELD(replace);
1683 
1684  return true;
1685 }

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

1390 {
1391  COMPARE_NODE_FIELD(relation);
1392  COMPARE_NODE_FIELD(usingClause);
1393  COMPARE_NODE_FIELD(whereClause);
1394  COMPARE_NODE_FIELD(returningList);
1395  COMPARE_NODE_FIELD(withClause);
1396 
1397  return true;
1398 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalDiscardStmt()

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

Definition at line 2233 of file equalfuncs.c.

2234 {
2235  COMPARE_SCALAR_FIELD(target);
2236 
2237  return true;
2238 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalDistinctExpr()

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

Definition at line 408 of file equalfuncs.c.

409 {
410  COMPARE_SCALAR_FIELD(opno);
411 
412  /*
413  * Special-case opfuncid: it is allowable for it to differ if one node
414  * contains zero and the other doesn't. This just means that the one node
415  * isn't as far along in the parse/plan pipeline and hasn't had the
416  * opfuncid cache filled yet.
417  */
418  if (a->opfuncid != b->opfuncid &&
419  a->opfuncid != 0 &&
420  b->opfuncid != 0)
421  return false;
422 
423  COMPARE_SCALAR_FIELD(opresulttype);
424  COMPARE_SCALAR_FIELD(opretset);
425  COMPARE_SCALAR_FIELD(opcollid);
426  COMPARE_SCALAR_FIELD(inputcollid);
428  COMPARE_LOCATION_FIELD(location);
429 
430  return true;
431 }

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

1833 {
1835 
1836  return true;
1837 }

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

2113 {
2115  COMPARE_SCALAR_FIELD(missing_ok);
2117 
2118  return true;
2119 }

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

2624 {
2625  COMPARE_NODE_FIELD(roles);
2626  COMPARE_SCALAR_FIELD(behavior);
2627 
2628  return true;
2629 }

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

2523 {
2524  COMPARE_NODE_FIELD(roles);
2525  COMPARE_SCALAR_FIELD(missing_ok);
2526 
2527  return true;
2528 }

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

1689 {
1690  COMPARE_NODE_FIELD(objects);
1691  COMPARE_SCALAR_FIELD(removeType);
1692  COMPARE_SCALAR_FIELD(behavior);
1693  COMPARE_SCALAR_FIELD(missing_ok);
1694  COMPARE_SCALAR_FIELD(concurrent);
1695 
1696  return true;
1697 }

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

2739 {
2741  COMPARE_SCALAR_FIELD(missing_ok);
2742  COMPARE_SCALAR_FIELD(behavior);
2743 
2744  return true;
2745 }

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

2253 {
2254  COMPARE_STRING_FIELD(tablespacename);
2255  COMPARE_SCALAR_FIELD(missing_ok);
2256 
2257  return true;
2258 }

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

2381 {
2383  COMPARE_STRING_FIELD(servername);
2384  COMPARE_SCALAR_FIELD(missing_ok);
2385 
2386  return true;
2387 }

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

2607 {
2609  COMPARE_NODE_FIELD(params);
2610 
2611  return true;
2612 }

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

2143 {
2144  COMPARE_NODE_FIELD(query);
2146 
2147  return true;
2148 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalExtensibleNode()

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

Definition at line 1296 of file equalfuncs.c.

1297 {
1298  const ExtensibleNodeMethods *methods;
1299 
1300  COMPARE_STRING_FIELD(extnodename);
1301 
1302  /* At this point, we know extnodename is the same for both nodes. */
1303  methods = GetExtensibleNodeMethods(a->extnodename, false);
1304 
1305  /* compare the private fields */
1306  if (!methods->nodeEqual(a, b))
1307  return false;
1308 
1309  return true;
1310 }
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 1731 of file equalfuncs.c.

1732 {
1733  COMPARE_SCALAR_FIELD(direction);
1734  COMPARE_SCALAR_FIELD(howMany);
1735  COMPARE_STRING_FIELD(portalname);
1736  COMPARE_SCALAR_FIELD(ismove);
1737 
1738  return true;
1739 }

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

551 {
553  COMPARE_SCALAR_FIELD(fieldnum);
554  COMPARE_SCALAR_FIELD(resulttype);
555  COMPARE_SCALAR_FIELD(resulttypmod);
556  COMPARE_SCALAR_FIELD(resultcollid);
557 
558  return true;
559 }

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

563 {
565  COMPARE_NODE_FIELD(newvals);
566  COMPARE_NODE_FIELD(fieldnums);
567  COMPARE_SCALAR_FIELD(resulttype);
568 
569  return true;
570 }

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

3529 {
3530  COMPARE_STRING_FIELD(fval);
3531 
3532  return true;
3533 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalFromExpr()

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

Definition at line 878 of file equalfuncs.c.

879 {
880  COMPARE_NODE_FIELD(fromlist);
881  COMPARE_NODE_FIELD(quals);
882 
883  return true;
884 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalFuncCall()

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

Definition at line 2819 of file equalfuncs.c.

2820 {
2821  COMPARE_NODE_FIELD(funcname);
2823  COMPARE_NODE_FIELD(agg_order);
2824  COMPARE_NODE_FIELD(agg_filter);
2825  COMPARE_NODE_FIELD(over);
2826  COMPARE_SCALAR_FIELD(agg_within_group);
2827  COMPARE_SCALAR_FIELD(agg_star);
2828  COMPARE_SCALAR_FIELD(agg_distinct);
2829  COMPARE_SCALAR_FIELD(func_variadic);
2830  COMPARE_COERCIONFORM_FIELD(funcformat);
2831  COMPARE_LOCATION_FIELD(location);
2832 
2833  return true;
2834 }

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

356 {
357  COMPARE_SCALAR_FIELD(funcid);
358  COMPARE_SCALAR_FIELD(funcresulttype);
359  COMPARE_SCALAR_FIELD(funcretset);
360  COMPARE_SCALAR_FIELD(funcvariadic);
361  COMPARE_COERCIONFORM_FIELD(funcformat);
362  COMPARE_SCALAR_FIELD(funccollid);
363  COMPARE_SCALAR_FIELD(inputcollid);
365  COMPARE_LOCATION_FIELD(location);
366 
367  return true;
368 }

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

1812 {
1814  COMPARE_NODE_FIELD(argType);
1816  COMPARE_NODE_FIELD(defexpr);
1817 
1818  return true;
1819 }
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 1570 of file equalfuncs.c.

1571 {
1572  COMPARE_NODE_FIELD(granted_roles);
1573  COMPARE_NODE_FIELD(grantee_roles);
1574  COMPARE_SCALAR_FIELD(is_grant);
1575  COMPARE_SCALAR_FIELD(admin_opt);
1576  COMPARE_NODE_FIELD(grantor);
1577  COMPARE_SCALAR_FIELD(behavior);
1578 
1579  return true;
1580 }

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

1535 {
1536  COMPARE_SCALAR_FIELD(is_grant);
1537  COMPARE_SCALAR_FIELD(targtype);
1538  COMPARE_SCALAR_FIELD(objtype);
1539  COMPARE_NODE_FIELD(objects);
1540  COMPARE_NODE_FIELD(privileges);
1541  COMPARE_NODE_FIELD(grantees);
1542  COMPARE_SCALAR_FIELD(grant_option);
1543  COMPARE_NODE_FIELD(grantor);
1544  COMPARE_SCALAR_FIELD(behavior);
1545 
1546  return true;
1547 }

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

308 {
310 
311  /*
312  * We must not compare the refs or cols field
313  */
314 
315  COMPARE_SCALAR_FIELD(agglevelsup);
316  COMPARE_LOCATION_FIELD(location);
317 
318  return true;
319 }

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

3220 {
3221  COMPARE_SCALAR_FIELD(kind);
3222  COMPARE_NODE_FIELD(content);
3223  COMPARE_LOCATION_FIELD(location);
3224 
3225  return true;
3226 }

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

2403 {
2404  COMPARE_STRING_FIELD(server_name);
2405  COMPARE_STRING_FIELD(remote_schema);
2406  COMPARE_STRING_FIELD(local_schema);
2407  COMPARE_SCALAR_FIELD(list_type);
2408  COMPARE_NODE_FIELD(table_list);
2410 
2411  return true;
2412 }

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

3019 {
3021  COMPARE_NODE_FIELD(expr);
3022  COMPARE_STRING_FIELD(indexcolname);
3023  COMPARE_NODE_FIELD(collation);
3024  COMPARE_NODE_FIELD(opclass);
3025  COMPARE_NODE_FIELD(opclassopts);
3026  COMPARE_SCALAR_FIELD(ordering);
3027  COMPARE_SCALAR_FIELD(nulls_ordering);
3028 
3029  return true;
3030 }

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

1743 {
1744  COMPARE_STRING_FIELD(idxname);
1745  COMPARE_NODE_FIELD(relation);
1746  COMPARE_STRING_FIELD(accessMethod);
1747  COMPARE_STRING_FIELD(tableSpace);
1748  COMPARE_NODE_FIELD(indexParams);
1749  COMPARE_NODE_FIELD(indexIncludingParams);
1751  COMPARE_NODE_FIELD(whereClause);
1752  COMPARE_NODE_FIELD(excludeOpNames);
1753  COMPARE_STRING_FIELD(idxcomment);
1754  COMPARE_SCALAR_FIELD(indexOid);
1755  COMPARE_SCALAR_FIELD(oldNode);
1756  COMPARE_SCALAR_FIELD(oldCreateSubid);
1757  COMPARE_SCALAR_FIELD(oldFirstRelfilenodeSubid);
1758  COMPARE_SCALAR_FIELD(unique);
1759  COMPARE_SCALAR_FIELD(nulls_not_distinct);
1760  COMPARE_SCALAR_FIELD(primary);
1761  COMPARE_SCALAR_FIELD(isconstraint);
1762  COMPARE_SCALAR_FIELD(deferrable);
1763  COMPARE_SCALAR_FIELD(initdeferred);
1764  COMPARE_SCALAR_FIELD(transformed);
1765  COMPARE_SCALAR_FIELD(concurrent);
1766  COMPARE_SCALAR_FIELD(if_not_exists);
1767  COMPARE_SCALAR_FIELD(reset_default_tblspc);
1768 
1769  return true;
1770 }

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

3273 {
3274  COMPARE_NODE_FIELD(indexElems);
3275  COMPARE_NODE_FIELD(whereClause);
3276  COMPARE_STRING_FIELD(conname);
3277  COMPARE_LOCATION_FIELD(location);
3278 
3279  return true;
3280 }

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

831 {
832  COMPARE_NODE_FIELD(expr);
833  COMPARE_SCALAR_FIELD(infercollid);
834  COMPARE_SCALAR_FIELD(inferopclass);
835 
836  return true;
837 }

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

1376 {
1377  COMPARE_NODE_FIELD(relation);
1378  COMPARE_NODE_FIELD(cols);
1379  COMPARE_NODE_FIELD(selectStmt);
1380  COMPARE_NODE_FIELD(onConflictClause);
1381  COMPARE_NODE_FIELD(returningList);
1382  COMPARE_NODE_FIELD(withClause);
1383  COMPARE_SCALAR_FIELD(override);
1384 
1385  return true;
1386 }

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

3521 {
3522  COMPARE_SCALAR_FIELD(ival);
3523 
3524  return true;
3525 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalIntoClause()

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

Definition at line 205 of file equalfuncs.c.

206 {
207  COMPARE_NODE_FIELD(rel);
208  COMPARE_NODE_FIELD(colNames);
209  COMPARE_STRING_FIELD(accessMethod);
211  COMPARE_SCALAR_FIELD(onCommit);
212  COMPARE_STRING_FIELD(tableSpaceName);
213  COMPARE_NODE_FIELD(viewQuery);
214  COMPARE_SCALAR_FIELD(skipData);
215 
216  return true;
217 }

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

863 {
864  COMPARE_SCALAR_FIELD(jointype);
865  COMPARE_SCALAR_FIELD(isNatural);
866  COMPARE_NODE_FIELD(larg);
867  COMPARE_NODE_FIELD(rarg);
868  COMPARE_NODE_FIELD(usingClause);
869  COMPARE_NODE_FIELD(join_using_alias);
870  COMPARE_NODE_FIELD(quals);
871  COMPARE_NODE_FIELD(alias);
872  COMPARE_SCALAR_FIELD(rtindex);
873 
874  return true;
875 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonAggConstructor()

static bool _equalJsonAggConstructor ( const JsonAggConstructor a,
const JsonAggConstructor b 
)
static

Definition at line 1000 of file equalfuncs.c.

1002 {
1004  COMPARE_NODE_FIELD(agg_filter);
1005  COMPARE_NODE_FIELD(agg_order);
1006  COMPARE_NODE_FIELD(over);
1007  COMPARE_LOCATION_FIELD(location);
1008 
1009  return true;
1010 }
static void output(uint64 loop_count)

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and output().

Referenced by equal().

◆ _equalJsonArgument()

static bool _equalJsonArgument ( const JsonArgument a,
const JsonArgument b 
)
static

Definition at line 1095 of file equalfuncs.c.

1096 {
1099 
1100  return true;
1101 }
long val
Definition: informix.c:664

References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, name, and val.

Referenced by equal().

◆ _equalJsonArrayAgg()

static bool _equalJsonArrayAgg ( const JsonArrayAgg a,
const JsonArrayAgg b 
)
static

Definition at line 1045 of file equalfuncs.c.

1046 {
1047  COMPARE_NODE_FIELD(constructor);
1049  COMPARE_SCALAR_FIELD(absent_on_null);
1050 
1051  return true;
1052 }

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonArrayConstructor()

static bool _equalJsonArrayConstructor ( const JsonArrayConstructor a,
const JsonArrayConstructor b 
)
static

Definition at line 1033 of file equalfuncs.c.

1035 {
1036  COMPARE_NODE_FIELD(exprs);
1038  COMPARE_SCALAR_FIELD(absent_on_null);
1039  COMPARE_LOCATION_FIELD(location);
1040 
1041  return true;
1042 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and output().

Referenced by equal().

◆ _equalJsonArrayQueryConstructor()

static bool _equalJsonArrayQueryConstructor ( const JsonArrayQueryConstructor a,
const JsonArrayQueryConstructor b 
)
static

Definition at line 1055 of file equalfuncs.c.

1057 {
1058  COMPARE_NODE_FIELD(query);
1061  COMPARE_SCALAR_FIELD(absent_on_null);
1062  COMPARE_LOCATION_FIELD(location);
1063 
1064  return true;
1065 }
static char format

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, format, and output().

Referenced by equal().

◆ _equalJsonBehavior()

static bool _equalJsonBehavior ( const JsonBehavior a,
const JsonBehavior b 
)
static

Definition at line 1120 of file equalfuncs.c.

1121 {
1122  COMPARE_SCALAR_FIELD(btype);
1123  COMPARE_NODE_FIELD(default_expr);
1124 
1125  return true;
1126 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonCoercion()

static bool _equalJsonCoercion ( const JsonCoercion a,
const JsonCoercion b 
)
static

Definition at line 1156 of file equalfuncs.c.

1157 {
1158  COMPARE_NODE_FIELD(expr);
1159  COMPARE_SCALAR_FIELD(via_populate);
1160  COMPARE_SCALAR_FIELD(via_io);
1161  COMPARE_SCALAR_FIELD(collation);
1162 
1163  return true;
1164 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonCommon()

static bool _equalJsonCommon ( const JsonCommon a,
const JsonCommon b 
)
static

Definition at line 1083 of file equalfuncs.c.

1084 {
1085  COMPARE_NODE_FIELD(expr);
1086  COMPARE_NODE_FIELD(pathspec);
1087  COMPARE_STRING_FIELD(pathname);
1088  COMPARE_NODE_FIELD(passing);
1089  COMPARE_LOCATION_FIELD(location);
1090 
1091  return true;
1092 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalJsonConstructorExpr()

static bool _equalJsonConstructorExpr ( const JsonConstructorExpr a,
const JsonConstructorExpr b 
)
static

Definition at line 963 of file equalfuncs.c.

964 {
967  COMPARE_NODE_FIELD(func);
968  COMPARE_NODE_FIELD(coercion);
969  COMPARE_NODE_FIELD(returning);
970  COMPARE_SCALAR_FIELD(absent_on_null);
971  COMPARE_SCALAR_FIELD(unique);
972  COMPARE_LOCATION_FIELD(location);
973 
974  return true;
975 }

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

Referenced by equal().

◆ _equalJsonExpr()

static bool _equalJsonExpr ( const JsonExpr a,
const JsonExpr b 
)
static

Definition at line 1132 of file equalfuncs.c.

1133 {
1135  COMPARE_NODE_FIELD(formatted_expr);
1136  COMPARE_NODE_FIELD(result_coercion);
1138  COMPARE_NODE_FIELD(path_spec);
1139  COMPARE_NODE_FIELD(passing_names);
1140  COMPARE_NODE_FIELD(passing_values);
1141  COMPARE_NODE_FIELD(returning);
1142  COMPARE_NODE_FIELD(on_empty);
1143  COMPARE_NODE_FIELD(on_error);
1144  COMPARE_NODE_FIELD(coercions);
1145  COMPARE_SCALAR_FIELD(wrapper);
1146  COMPARE_SCALAR_FIELD(omit_quotes);
1147  COMPARE_LOCATION_FIELD(location);
1148 
1149  return true;
1150 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and format.

Referenced by equal().

◆ _equalJsonFormat()

static bool _equalJsonFormat ( const JsonFormat a,
const JsonFormat b 
)
static

Definition at line 902 of file equalfuncs.c.

903 {
906  COMPARE_LOCATION_FIELD(location);
907 
908  return true;
909 }
Datum format_type(PG_FUNCTION_ARGS)
Definition: format_type.c:60
int32 encoding
Definition: pg_database.h:41

References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, encoding, and format_type().

Referenced by equal().

◆ _equalJsonFuncExpr()

static bool _equalJsonFuncExpr ( const JsonFuncExpr a,
const JsonFuncExpr b 
)
static

Definition at line 1068 of file equalfuncs.c.

1069 {
1071  COMPARE_NODE_FIELD(common);
1073  COMPARE_NODE_FIELD(on_empty);
1074  COMPARE_NODE_FIELD(on_error);
1075  COMPARE_SCALAR_FIELD(wrapper);
1076  COMPARE_SCALAR_FIELD(omit_quotes);
1077  COMPARE_LOCATION_FIELD(location);
1078 
1079  return true;
1080 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and output().

Referenced by equal().

◆ _equalJsonIsPredicate()

static bool _equalJsonIsPredicate ( const JsonIsPredicate a,
const JsonIsPredicate b 
)
static

Definition at line 1104 of file equalfuncs.c.

1106 {
1107  COMPARE_NODE_FIELD(expr);
1109  COMPARE_SCALAR_FIELD(item_type);
1110  COMPARE_SCALAR_FIELD(unique_keys);
1111  COMPARE_LOCATION_FIELD(location);
1112 
1113  return true;
1114 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and format.

Referenced by equal().

◆ _equalJsonItemCoercions()

static bool _equalJsonItemCoercions ( const JsonItemCoercions a,
const JsonItemCoercions b 
)
static

Definition at line 1170 of file equalfuncs.c.

1171 {
1172  COMPARE_NODE_FIELD(null);
1173  COMPARE_NODE_FIELD(string);
1175  COMPARE_NODE_FIELD(boolean);
1177  COMPARE_NODE_FIELD(time);
1178  COMPARE_NODE_FIELD(timetz);
1180  COMPARE_NODE_FIELD(timestamptz);
1181  COMPARE_NODE_FIELD(composite);
1182 
1183  return true;
1184 }
long date
Definition: pgtypes_date.h:9
int64 timestamp

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalJsonKeyValue()

static bool _equalJsonKeyValue ( const JsonKeyValue a,
const JsonKeyValue b 
)
static

Definition at line 978 of file equalfuncs.c.

979 {
982 
983  return true;
984 }
static struct @151 value

References COMPARE_NODE_FIELD, sort-test::key, and value.

Referenced by equal().

◆ _equalJsonObjectAgg()

static bool _equalJsonObjectAgg ( const JsonObjectAgg a,
const JsonObjectAgg b 
)
static

Definition at line 1013 of file equalfuncs.c.

1014 {
1015  COMPARE_NODE_FIELD(constructor);
1017  COMPARE_SCALAR_FIELD(absent_on_null);
1018  COMPARE_SCALAR_FIELD(unique);
1019 
1020  return true;
1021 }

References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonObjectConstructor()

static bool _equalJsonObjectConstructor ( const JsonObjectConstructor a,
const JsonObjectConstructor b 
)
static

Definition at line 987 of file equalfuncs.c.

989 {
990  COMPARE_NODE_FIELD(exprs);
992  COMPARE_SCALAR_FIELD(absent_on_null);
993  COMPARE_SCALAR_FIELD(unique);
994  COMPARE_LOCATION_FIELD(location);
995 
996  return true;
997 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and output().

Referenced by equal().

◆ _equalJsonOutput()

static bool _equalJsonOutput ( const JsonOutput a,
const JsonOutput b 
)
static

Definition at line 1024 of file equalfuncs.c.

1025 {
1026  COMPARE_NODE_FIELD(typeName);
1027  COMPARE_NODE_FIELD(returning);
1028 
1029  return true;
1030 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalJsonParseExpr()

static bool _equalJsonParseExpr ( const JsonParseExpr a,
const JsonParseExpr b 
)
static

Definition at line 932 of file equalfuncs.c.

933 {
934  COMPARE_NODE_FIELD(expr);
936  COMPARE_SCALAR_FIELD(unique_keys);
937  COMPARE_LOCATION_FIELD(location);
938 
939  return true;
940 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and output().

Referenced by equal().

◆ _equalJsonReturning()

static bool _equalJsonReturning ( const JsonReturning a,
const JsonReturning b 
)
static

Definition at line 912 of file equalfuncs.c.

913 {
915  COMPARE_SCALAR_FIELD(typid);
916  COMPARE_SCALAR_FIELD(typmod);
917 
918  return true;
919 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and format.

Referenced by equal().

◆ _equalJsonScalarExpr()

static bool _equalJsonScalarExpr ( const JsonScalarExpr a,
const JsonScalarExpr b 
)
static

Definition at line 943 of file equalfuncs.c.

944 {
945  COMPARE_NODE_FIELD(expr);
947  COMPARE_LOCATION_FIELD(location);
948 
949  return true;
950 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and output().

Referenced by equal().

◆ _equalJsonSerializeExpr()

static bool _equalJsonSerializeExpr ( const JsonSerializeExpr a,
const JsonSerializeExpr b 
)
static

Definition at line 953 of file equalfuncs.c.

954 {
955  COMPARE_NODE_FIELD(expr);
957  COMPARE_LOCATION_FIELD(location);
958 
959  return true;
960 }

References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and output().

Referenced by equal().

◆ _equalJsonTable()

static bool _equalJsonTable ( const JsonTable a,
const JsonTable b 
)
static

Definition at line 151 of file equalfuncs.c.

152 {
153  COMPARE_NODE_FIELD(common);
154  COMPARE_NODE_FIELD(columns);
155  COMPARE_NODE_FIELD(on_error);
156  COMPARE_NODE_FIELD(alias);
157  COMPARE_SCALAR_FIELD(location);
158 
159  return true;
160 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonTableColumn()

static bool _equalJsonTableColumn ( const JsonTableColumn a,
const JsonTableColumn b 
)
static

Definition at line 163 of file equalfuncs.c.

164 {
165  COMPARE_SCALAR_FIELD(coltype);
167  COMPARE_NODE_FIELD(typeName);
168  COMPARE_STRING_FIELD(pathspec);
170  COMPARE_SCALAR_FIELD(wrapper);
171  COMPARE_SCALAR_FIELD(omit_quotes);
172  COMPARE_NODE_FIELD(columns);
173  COMPARE_NODE_FIELD(on_empty);
174  COMPARE_NODE_FIELD(on_error);
175  COMPARE_SCALAR_FIELD(location);
176 
177  return true;
178 }

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

Referenced by equal().

◆ _equalJsonTableParent()

static bool _equalJsonTableParent ( const JsonTableParent a,
const JsonTableParent b 
)
static

Definition at line 181 of file equalfuncs.c.

182 {
183  COMPARE_NODE_FIELD(path);
185  COMPARE_NODE_FIELD(child);
186  COMPARE_SCALAR_FIELD(outerJoin);
187  COMPARE_SCALAR_FIELD(colMin);
188  COMPARE_SCALAR_FIELD(colMax);
189  COMPARE_SCALAR_FIELD(errorOnError);
190 
191  return true;
192 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.

Referenced by equal().

◆ _equalJsonTableSibling()

static bool _equalJsonTableSibling ( const JsonTableSibling a,
const JsonTableSibling b 
)
static

Definition at line 195 of file equalfuncs.c.

196 {
197  COMPARE_NODE_FIELD(larg);
198  COMPARE_NODE_FIELD(rarg);
199  COMPARE_SCALAR_FIELD(cross);
200 
201  return true;
202 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalJsonValueExpr()

static bool _equalJsonValueExpr ( const JsonValueExpr a,
const JsonValueExpr b 
)
static

Definition at line 922 of file equalfuncs.c.

923 {
924  COMPARE_NODE_FIELD(raw_expr);
925  COMPARE_NODE_FIELD(formatted_expr);
927 
928  return true;
929 }

References COMPARE_NODE_FIELD, and format.

Referenced by equal().

◆ _equalList()

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

Definition at line 3461 of file equalfuncs.c.

3462 {
3463  const ListCell *item_a;
3464  const ListCell *item_b;
3465 
3466  /*
3467  * Try to reject by simple scalar checks before grovelling through all the
3468  * list elements...
3469  */
3471  COMPARE_SCALAR_FIELD(length);
3472 
3473  /*
3474  * We place the switch outside the loop for the sake of efficiency; this
3475  * may not be worth doing...
3476  */
3477  switch (a->type)
3478  {
3479  case T_List:
3480  forboth(item_a, a, item_b, b)
3481  {
3482  if (!equal(lfirst(item_a), lfirst(item_b)))
3483  return false;
3484  }
3485  break;
3486  case T_IntList:
3487  forboth(item_a, a, item_b, b)
3488  {
3489  if (lfirst_int(item_a) != lfirst_int(item_b))
3490  return false;
3491  }
3492  break;
3493  case T_OidList:
3494  forboth(item_a, a, item_b, b)
3495  {
3496  if (lfirst_oid(item_a) != lfirst_oid(item_b))
3497  return false;
3498  }
3499  break;
3500  default:
3501  elog(ERROR, "unrecognized list node type: %d",
3502  (int) a->type);
3503  return false; /* keep compiler quiet */
3504  }
3505 
3506  /*
3507  * If we got here, we should have run out of elements of both lists
3508  */
3509  Assert(item_a == NULL);
3510  Assert(item_b == NULL);
3511 
3512  return true;
3513 }
#define ERROR
Definition: elog.h:33
#define elog(elevel,...)
Definition: elog.h:218
Assert(fmt[strlen(fmt) - 1] !='\n')
@ T_List
Definition: nodes.h:317
@ T_OidList
Definition: nodes.h:319
@ T_IntList
Definition: nodes.h:318
#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 1931 of file equalfuncs.c.

1932 {
1933  COMPARE_STRING_FIELD(conditionname);
1934 
1935  return true;
1936 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalLoadStmt()

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

Definition at line 2012 of file equalfuncs.c.

2013 {
2015 
2016  return true;
2017 }

References COMPARE_STRING_FIELD, and filename.

Referenced by equal().

◆ _equalLockingClause()

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

Definition at line 3117 of file equalfuncs.c.

3118 {
3119  COMPARE_NODE_FIELD(lockedRels);
3120  COMPARE_SCALAR_FIELD(strength);
3121  COMPARE_SCALAR_FIELD(waitPolicy);
3122 
3123  return true;
3124 }

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

2532 {
2533  COMPARE_NODE_FIELD(relations);
2535  COMPARE_SCALAR_FIELD(nowait);
2536 
2537  return true;
2538 }

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and mode.

Referenced by equal().

◆ _equalMergeAction()

static bool _equalMergeAction ( const MergeAction a,
const MergeAction b 
)
static

Definition at line 3356 of file equalfuncs.c.

3357 {
3358  COMPARE_SCALAR_FIELD(matched);
3359  COMPARE_SCALAR_FIELD(commandType);
3360  COMPARE_SCALAR_FIELD(override);
3361  COMPARE_NODE_FIELD(qual);
3362  COMPARE_NODE_FIELD(targetList);
3363  COMPARE_NODE_FIELD(updateColnos);
3364 
3365  return true;
3366 }

References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalMergeStmt()

static bool _equalMergeStmt ( const MergeStmt a,
const MergeStmt b 
)
static

Definition at line 1414 of file equalfuncs.c.

1415 {
1416  COMPARE_NODE_FIELD(relation);
1417  COMPARE_NODE_FIELD(sourceRelation);
1418  COMPARE_NODE_FIELD(joinCondition);
1419  COMPARE_NODE_FIELD(mergeWhenClauses);
1420  COMPARE_NODE_FIELD(withClause);
1421 
1422  return true;
1423 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalMergeWhenClause()

static bool _equalMergeWhenClause ( const MergeWhenClause a,
const MergeWhenClause b 
)
static

Definition at line 3343 of file equalfuncs.c.

3344 {
3345  COMPARE_SCALAR_FIELD(matched);
3346  COMPARE_SCALAR_FIELD(commandType);
3347  COMPARE_SCALAR_FIELD(override);
3348  COMPARE_NODE_FIELD(condition);
3349  COMPARE_NODE_FIELD(targetList);
3351 
3352  return true;
3353 }
static Datum values[MAXATTR]
Definition: bootstrap.c:156

References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and values.

Referenced by equal().

◆ _equalMinMaxExpr()

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

Definition at line 715 of file equalfuncs.c.

716 {
717  COMPARE_SCALAR_FIELD(minmaxtype);
718  COMPARE_SCALAR_FIELD(minmaxcollid);
719  COMPARE_SCALAR_FIELD(inputcollid);
722  COMPARE_LOCATION_FIELD(location);
723 
724  return true;
725 }

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

2883 {
2885  COMPARE_SCALAR_FIELD(colno);
2886  COMPARE_SCALAR_FIELD(ncolumns);
2887 
2888  return true;
2889 }
static rewind_source * source
Definition: pg_rewind.c:81

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

372 {
375  COMPARE_SCALAR_FIELD(argnumber);
376  COMPARE_LOCATION_FIELD(location);
377 
378  return true;
379 }

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

822 {
823  COMPARE_SCALAR_FIELD(seqid);
824  COMPARE_SCALAR_FIELD(typeId);
825 
826  return true;
827 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalNotifyStmt()

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

Definition at line 1922 of file equalfuncs.c.

1923 {
1924  COMPARE_STRING_FIELD(conditionname);
1925  COMPARE_STRING_FIELD(payload);
1926 
1927  return true;
1928 }

References COMPARE_STRING_FIELD.

Referenced by equal().

◆ _equalNullIfExpr()

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

Definition at line 434 of file equalfuncs.c.

435 {
436  COMPARE_SCALAR_FIELD(opno);
437 
438  /*
439  * Special-case opfuncid: it is allowable for it to differ if one node
440  * contains zero and the other doesn't. This just means that the one node
441  * isn't as far along in the parse/plan pipeline and hasn't had the
442  * opfuncid cache filled yet.
443  */
444  if (a->opfuncid != b->opfuncid &&
445  a->opfuncid != 0 &&
446  b->opfuncid != 0)
447  return false;
448 
449  COMPARE_SCALAR_FIELD(opresulttype);
450  COMPARE_SCALAR_FIELD(opretset);
451  COMPARE_SCALAR_FIELD(opcollid);
452  COMPARE_SCALAR_FIELD(inputcollid);
454  COMPARE_LOCATION_FIELD(location);
455 
456  return true;
457 }

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

756 {
758  COMPARE_SCALAR_FIELD(nulltesttype);
759  COMPARE_SCALAR_FIELD(argisrow);
760  COMPARE_LOCATION_FIELD(location);
761 
762  return true;
763 }

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

1551 {
1552  COMPARE_NODE_FIELD(objname);
1553  COMPARE_NODE_FIELD(objargs);
1554  COMPARE_NODE_FIELD(objfuncargs);
1555  COMPARE_SCALAR_FIELD(args_unspecified);
1556 
1557  return true;
1558 }

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

3284 {
3286  COMPARE_NODE_FIELD(infer);
3287  COMPARE_NODE_FIELD(targetList);
3288  COMPARE_NODE_FIELD(whereClause);
3289  COMPARE_LOCATION_FIELD(location);
3290 
3291  return true;
3292 }

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

888 {
890  COMPARE_NODE_FIELD(arbiterElems);
891  COMPARE_NODE_FIELD(arbiterWhere);
892  COMPARE_SCALAR_FIELD(constraint);
893  COMPARE_NODE_FIELD(onConflictSet);
894  COMPARE_NODE_FIELD(onConflictWhere);
895  COMPARE_SCALAR_FIELD(exclRelIndex);
896  COMPARE_NODE_FIELD(exclRelTlist);
897 
898  return true;
899 }

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

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

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

269 {
270  COMPARE_SCALAR_FIELD(paramkind);
271  COMPARE_SCALAR_FIELD(paramid);
272  COMPARE_SCALAR_FIELD(paramtype);
273  COMPARE_SCALAR_FIELD(paramtypmod);
274  COMPARE_SCALAR_FIELD(paramcollid);
275  COMPARE_LOCATION_FIELD(location);
276 
277  return true;
278 }

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

2796 {
2797  COMPARE_SCALAR_FIELD(number);
2798  COMPARE_LOCATION_FIELD(location);
2799 
2800  return true;
2801 }

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

3423 {
3424  COMPARE_SCALAR_FIELD(strategy);
3425  COMPARE_SCALAR_FIELD(is_default);
3426  COMPARE_SCALAR_FIELD(modulus);
3427  COMPARE_SCALAR_FIELD(remainder);
3428  COMPARE_NODE_FIELD(listdatums);
3429  COMPARE_NODE_FIELD(lowerdatums);
3430  COMPARE_NODE_FIELD(upperdatums);
3431  COMPARE_LOCATION_FIELD(location);
3432 
3433  return true;
3434 }

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

3448 {
3450  COMPARE_NODE_FIELD(bound);
3451  COMPARE_SCALAR_FIELD(concurrent);
3452 
3453  return true;
3454 }

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

3401 {
3403  COMPARE_NODE_FIELD(expr);
3404  COMPARE_NODE_FIELD(collation);
3405  COMPARE_NODE_FIELD(opclass);
3406  COMPARE_LOCATION_FIELD(location);
3407 
3408  return true;
3409 }

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

3438 {
3439  COMPARE_SCALAR_FIELD(kind);
3441  COMPARE_LOCATION_FIELD(location);
3442 
3443  return true;
3444 }

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

3413 {
3414  COMPARE_STRING_FIELD(strategy);
3415  COMPARE_NODE_FIELD(partParams);
3416  COMPARE_LOCATION_FIELD(location);
3417 
3418  return true;
3419 }

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

1192 {
1193  /* We assume pointer equality is sufficient to compare the eclasses */
1194  COMPARE_SCALAR_FIELD(pk_eclass);
1195  COMPARE_SCALAR_FIELD(pk_opfamily);
1196  COMPARE_SCALAR_FIELD(pk_strategy);
1197  COMPARE_SCALAR_FIELD(pk_nulls_first);
1198 
1199  return true;
1200 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPlaceHolderInfo()

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

Definition at line 1280 of file equalfuncs.c.

1281 {
1282  COMPARE_SCALAR_FIELD(phid);
1283  COMPARE_NODE_FIELD(ph_var); /* should be redundant */
1284  COMPARE_BITMAPSET_FIELD(ph_eval_at);
1285  COMPARE_BITMAPSET_FIELD(ph_lateral);
1286  COMPARE_BITMAPSET_FIELD(ph_needed);
1287  COMPARE_SCALAR_FIELD(ph_width);
1288 
1289  return true;
1290 }
#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 1222 of file equalfuncs.c.

1223 {
1224  /*
1225  * We intentionally do not compare phexpr. Two PlaceHolderVars with the
1226  * same ID and levelsup should be considered equal even if the contained
1227  * expressions have managed to mutate to different states. This will
1228  * happen during final plan construction when there are nested PHVs, since
1229  * the inner PHV will get replaced by a Param in some copies of the outer
1230  * PHV. Another way in which it can happen is that initplan sublinks
1231  * could get replaced by differently-numbered Params when sublink folding
1232  * is done. (The end result of such a situation would be some
1233  * unreferenced initplans, which is annoying but not really a problem.) On
1234  * the same reasoning, there is no need to examine phrels.
1235  *
1236  * COMPARE_NODE_FIELD(phexpr);
1237  *
1238  * COMPARE_BITMAPSET_FIELD(phrels);
1239  */
1240  COMPARE_SCALAR_FIELD(phid);
1241  COMPARE_SCALAR_FIELD(phlevelsup);
1242 
1243  return true;
1244 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalPLAssignStmt()

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

Definition at line 1476 of file equalfuncs.c.

1477 {
1479  COMPARE_NODE_FIELD(indirection);
1480  COMPARE_SCALAR_FIELD(nnames);
1482  COMPARE_LOCATION_FIELD(location);
1483 
1484  return true;
1485 }

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

2597 {
2599  COMPARE_NODE_FIELD(argtypes);
2600  COMPARE_NODE_FIELD(query);
2601 
2602  return true;
2603 }

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

2667 {
2668  COMPARE_SCALAR_FIELD(pubobjtype);
2670  COMPARE_NODE_FIELD(pubtable);
2671  COMPARE_LOCATION_FIELD(location);
2672 
2673  return true;
2674 }

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

2678 {
2679  COMPARE_NODE_FIELD(relation);
2680  COMPARE_NODE_FIELD(whereClause);
2681  COMPARE_NODE_FIELD(columns);
2682 
2683  return true;
2684 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalQuery()

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

Definition at line 1317 of file equalfuncs.c.

1318 {
1319  COMPARE_SCALAR_FIELD(commandType);
1320  COMPARE_SCALAR_FIELD(querySource);
1321  /* we intentionally ignore queryId, since it might not be set */
1322  COMPARE_SCALAR_FIELD(canSetTag);
1323  COMPARE_NODE_FIELD(utilityStmt);
1324  COMPARE_SCALAR_FIELD(resultRelation);
1325  COMPARE_SCALAR_FIELD(hasAggs);
1326  COMPARE_SCALAR_FIELD(hasWindowFuncs);
1327  COMPARE_SCALAR_FIELD(hasTargetSRFs);
1328  COMPARE_SCALAR_FIELD(hasSubLinks);
1329  COMPARE_SCALAR_FIELD(hasDistinctOn);
1330  COMPARE_SCALAR_FIELD(hasRecursive);
1331  COMPARE_SCALAR_FIELD(hasModifyingCTE);
1332  COMPARE_SCALAR_FIELD(hasForUpdate);
1333  COMPARE_SCALAR_FIELD(hasRowSecurity);
1334  COMPARE_SCALAR_FIELD(isReturn);
1335  COMPARE_NODE_FIELD(cteList);
1336  COMPARE_NODE_FIELD(rtable);
1337  COMPARE_NODE_FIELD(jointree);
1338  COMPARE_NODE_FIELD(targetList);
1339  COMPARE_SCALAR_FIELD(override);
1340  COMPARE_NODE_FIELD(onConflict);
1341  COMPARE_NODE_FIELD(returningList);
1342  COMPARE_NODE_FIELD(groupClause);
1343  COMPARE_SCALAR_FIELD(groupDistinct);
1344  COMPARE_NODE_FIELD(groupingSets);
1345  COMPARE_NODE_FIELD(havingQual);
1346  COMPARE_NODE_FIELD(windowClause);
1347  COMPARE_NODE_FIELD(distinctClause);
1348  COMPARE_NODE_FIELD(sortClause);
1349  COMPARE_NODE_FIELD(limitOffset);
1350  COMPARE_NODE_FIELD(limitCount);
1351  COMPARE_SCALAR_FIELD(limitOption);
1352  COMPARE_NODE_FIELD(rowMarks);
1353  COMPARE_NODE_FIELD(setOperations);
1354  COMPARE_NODE_FIELD(constraintDeps);
1355  COMPARE_NODE_FIELD(withCheckOptions);
1356  COMPARE_NODE_FIELD(mergeActionList);
1357  COMPARE_SCALAR_FIELD(mergeUseOuterJoin);
1358  COMPARE_LOCATION_FIELD(stmt_location);
1359  COMPARE_SCALAR_FIELD(stmt_len);
1360 
1361  return true;
1362 }

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

2965 {
2966  COMPARE_SCALAR_FIELD(lateral);
2967  COMPARE_SCALAR_FIELD(ordinality);
2968  COMPARE_SCALAR_FIELD(is_rowsfrom);
2970  COMPARE_NODE_FIELD(alias);
2971  COMPARE_NODE_FIELD(coldeflist);
2972 
2973  return true;
2974 }
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 2954 of file equalfuncs.c.

2955 {
2956  COMPARE_SCALAR_FIELD(lateral);
2957  COMPARE_NODE_FIELD(subquery);
2958  COMPARE_NODE_FIELD(alias);
2959 
2960  return true;
2961 }

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

2990 {
2991  COMPARE_SCALAR_FIELD(lateral);
2992  COMPARE_NODE_FIELD(docexpr);
2993  COMPARE_NODE_FIELD(rowexpr);
2994  COMPARE_NODE_FIELD(namespaces);
2995  COMPARE_NODE_FIELD(columns);
2996  COMPARE_NODE_FIELD(alias);
2997  COMPARE_LOCATION_FIELD(location);
2998 
2999  return true;
3000 }

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

3004 {
3005  COMPARE_STRING_FIELD(colname);
3006  COMPARE_NODE_FIELD(typeName);
3007  COMPARE_SCALAR_FIELD(for_ordinality);
3008  COMPARE_SCALAR_FIELD(is_not_null);
3009  COMPARE_NODE_FIELD(colexpr);
3010  COMPARE_NODE_FIELD(coldefexpr);
3011  COMPARE_LOCATION_FIELD(location);
3012 
3013  return true;
3014 }

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

2978 {
2979  COMPARE_NODE_FIELD(relation);
2980  COMPARE_NODE_FIELD(method);
2982  COMPARE_NODE_FIELD(repeatable);
2983  COMPARE_LOCATION_FIELD(location);
2984 
2985  return true;
2986 }

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

3128 {
3129  COMPARE_SCALAR_FIELD(rtekind);
3130  COMPARE_SCALAR_FIELD(relid);
3131  COMPARE_SCALAR_FIELD(relkind);
3132  COMPARE_SCALAR_FIELD(rellockmode);
3133  COMPARE_NODE_FIELD(tablesample);
3134  COMPARE_NODE_FIELD(subquery);
3135  COMPARE_SCALAR_FIELD(security_barrier);
3136  COMPARE_SCALAR_FIELD(jointype);
3137  COMPARE_SCALAR_FIELD(joinmergedcols);
3138  COMPARE_NODE_FIELD(joinaliasvars);
3139  COMPARE_NODE_FIELD(joinleftcols);
3140  COMPARE_NODE_FIELD(joinrightcols);
3141  COMPARE_NODE_FIELD(join_using_alias);
3143  COMPARE_SCALAR_FIELD(funcordinality);
3144  COMPARE_NODE_FIELD(tablefunc);
3145  COMPARE_NODE_FIELD(values_lists);
3146  COMPARE_STRING_FIELD(ctename);
3147  COMPARE_SCALAR_FIELD(ctelevelsup);
3148  COMPARE_SCALAR_FIELD(self_reference);
3149  COMPARE_NODE_FIELD(coltypes);
3150  COMPARE_NODE_FIELD(coltypmods);
3151  COMPARE_NODE_FIELD(colcollations);
3152  COMPARE_STRING_FIELD(enrname);
3153  COMPARE_SCALAR_FIELD(enrtuples);
3154  COMPARE_NODE_FIELD(alias);
3155  COMPARE_NODE_FIELD(eref);
3156  COMPARE_SCALAR_FIELD(lateral);
3157  COMPARE_SCALAR_FIELD(inh);
3158  COMPARE_SCALAR_FIELD(inFromCl);
3159  COMPARE_SCALAR_FIELD(requiredPerms);
3160  COMPARE_SCALAR_FIELD(checkAsUser);
3161  COMPARE_BITMAPSET_FIELD(selectedCols);
3162  COMPARE_BITMAPSET_FIELD(insertedCols);
3163  COMPARE_BITMAPSET_FIELD(updatedCols);
3164  COMPARE_BITMAPSET_FIELD(extraUpdatedCols);
3165  COMPARE_NODE_FIELD(securityQuals);
3166 
3167  return true;
3168 }

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

3172 {
3173  COMPARE_NODE_FIELD(funcexpr);
3174  COMPARE_SCALAR_FIELD(funccolcount);
3175  COMPARE_NODE_FIELD(funccolnames);
3176  COMPARE_NODE_FIELD(funccoltypes);
3177  COMPARE_NODE_FIELD(funccoltypmods);
3178  COMPARE_NODE_FIELD(funccolcollations);
3179  COMPARE_BITMAPSET_FIELD(funcparams);
3180 
3181  return true;
3182 }

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

855 {
856  COMPARE_SCALAR_FIELD(rtindex);
857 
858  return true;
859 }

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

1366 {
1367  COMPARE_NODE_FIELD(stmt);
1368  COMPARE_LOCATION_FIELD(stmt_location);
1369  COMPARE_SCALAR_FIELD(stmt_len);
1370 
1371  return true;
1372 }

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

2633 {
2634  COMPARE_NODE_FIELD(roles);
2635  COMPARE_NODE_FIELD(newrole);
2636 
2637  return true;
2638 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalRefreshMatViewStmt()

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

Definition at line 2163 of file equalfuncs.c.

2164 {
2165  COMPARE_SCALAR_FIELD(concurrent);
2166  COMPARE_SCALAR_FIELD(skipData);
2167  COMPARE_NODE_FIELD(relation);
2168 
2169  return true;
2170 }

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

2551 {
2552  COMPARE_SCALAR_FIELD(kind);
2553  COMPARE_NODE_FIELD(relation);
2555  COMPARE_NODE_FIELD(params);
2556 
2557  return true;
2558 }

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

574 {
576  COMPARE_SCALAR_FIELD(resulttype);
577  COMPARE_SCALAR_FIELD(resulttypmod);
578  COMPARE_SCALAR_FIELD(resultcollid);
579  COMPARE_COERCIONFORM_FIELD(relabelformat);
580  COMPARE_LOCATION_FIELD(location);
581 
582  return true;
583 }

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

1841 {
1842  COMPARE_SCALAR_FIELD(renameType);
1843  COMPARE_SCALAR_FIELD(relationType);
1844  COMPARE_NODE_FIELD(relation);
1845  COMPARE_NODE_FIELD(object);
1847  COMPARE_STRING_FIELD(newname);
1848  COMPARE_SCALAR_FIELD(behavior);
1849  COMPARE_SCALAR_FIELD(missing_ok);
1850 
1851  return true;
1852 }

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

2174 {
2175  COMPARE_SCALAR_FIELD(identity_type);
2177 
2178  return true;
2179 }

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

2872 {
2874  COMPARE_NODE_FIELD(indirection);
2876  COMPARE_LOCATION_FIELD(location);
2877 
2878  return true;
2879 }

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

1204 {
1205  COMPARE_NODE_FIELD(clause);
1206  COMPARE_SCALAR_FIELD(is_pushed_down);
1207  COMPARE_SCALAR_FIELD(outerjoin_delayed);
1208  COMPARE_SCALAR_FIELD(security_level);
1209  COMPARE_BITMAPSET_FIELD(required_relids);
1210  COMPARE_BITMAPSET_FIELD(outer_relids);
1211  COMPARE_BITMAPSET_FIELD(nullable_relids);
1212 
1213  /*
1214  * We ignore all the remaining fields, since they may not be set yet, and
1215  * should be derivable from the clause anyway.
1216  */
1217 
1218  return true;
1219 }

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

1469 {
1470  COMPARE_NODE_FIELD(returnval);
1471 
1472  return true;
1473 }

References COMPARE_NODE_FIELD.

Referenced by equal().

◆ _equalRoleSpec()

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

Definition at line 3380 of file equalfuncs.c.

3381 {
3382  COMPARE_SCALAR_FIELD(roletype);
3383  COMPARE_STRING_FIELD(rolename);
3384  COMPARE_LOCATION_FIELD(location);
3385 
3386  return true;
3387 }

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

692 {
693  COMPARE_SCALAR_FIELD(rctype);
694  COMPARE_NODE_FIELD(opnos);
695  COMPARE_NODE_FIELD(opfamilies);
696  COMPARE_NODE_FIELD(inputcollids);
697  COMPARE_NODE_FIELD(largs);
698  COMPARE_NODE_FIELD(rargs);
699 
700  return true;
701 }

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

680 {
682  COMPARE_SCALAR_FIELD(row_typeid);
683  COMPARE_COERCIONFORM_FIELD(row_format);
684  COMPARE_NODE_FIELD(colnames);
685  COMPARE_LOCATION_FIELD(location);
686 
687  return true;
688 }

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

3252 {
3253  COMPARE_SCALAR_FIELD(rti);
3254  COMPARE_SCALAR_FIELD(strength);
3255  COMPARE_SCALAR_FIELD(waitPolicy);
3256  COMPARE_SCALAR_FIELD(pushedDown);
3257 
3258  return true;
3259 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalRuleStmt()

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

Definition at line 1908 of file equalfuncs.c.

1909 {
1910  COMPARE_NODE_FIELD(relation);
1911  COMPARE_STRING_FIELD(rulename);
1912  COMPARE_NODE_FIELD(whereClause);
1913  COMPARE_SCALAR_FIELD(event);
1914  COMPARE_SCALAR_FIELD(instead);
1915  COMPARE_NODE_FIELD(actions);
1916  COMPARE_SCALAR_FIELD(replace);
1917 
1918  return true;
1919 }

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

461 {
462  COMPARE_SCALAR_FIELD(opno);
463 
464  /*
465  * Special-case opfuncid: it is allowable for it to differ if one node
466  * contains zero and the other doesn't. This just means that the one node
467  * isn't as far along in the parse/plan pipeline and hasn't had the
468  * opfuncid cache filled yet.
469  */
470  if (a->opfuncid != b->opfuncid &&
471  a->opfuncid != 0 &&
472  b->opfuncid != 0)
473  return false;
474 
475  /* As above, hashfuncid may differ too */
476  if (a->hashfuncid != b->hashfuncid &&
477  a->hashfuncid != 0 &&
478  b->hashfuncid != 0)
479  return false;
480 
481  /* Likewise for the negfuncid */
482  if (a->negfuncid != b->negfuncid &&
483  a->negfuncid != 0 &&
484  b->negfuncid != 0)
485  return false;
486 
487  COMPARE_SCALAR_FIELD(useOr);
488  COMPARE_SCALAR_FIELD(inputcollid);
490  COMPARE_LOCATION_FIELD(location);
491 
492  return true;
493 }

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

1721 {
1722  COMPARE_SCALAR_FIELD(objtype);
1723  COMPARE_NODE_FIELD(object);
1726 
1727  return true;
1728 }
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 1426 of file equalfuncs.c.

1427 {
1428  COMPARE_NODE_FIELD(distinctClause);
1429  COMPARE_NODE_FIELD(intoClause);
1430  COMPARE_NODE_FIELD(targetList);
1431  COMPARE_NODE_FIELD(fromClause);
1432  COMPARE_NODE_FIELD(whereClause);
1433  COMPARE_NODE_FIELD(groupClause);
1434  COMPARE_SCALAR_FIELD(groupDistinct);
1435  COMPARE_NODE_FIELD(havingClause);
1436  COMPARE_NODE_FIELD(windowClause);
1437  COMPARE_NODE_FIELD(valuesLists);
1438  COMPARE_NODE_FIELD(sortClause);
1439  COMPARE_NODE_FIELD(limitOffset);
1440  COMPARE_NODE_FIELD(limitCount);
1441  COMPARE_SCALAR_FIELD(limitOption);
1442  COMPARE_NODE_FIELD(lockingClause);
1443  COMPARE_NODE_FIELD(withClause);
1445  COMPARE_SCALAR_FIELD(all);
1446  COMPARE_NODE_FIELD(larg);
1447  COMPARE_NODE_FIELD(rarg);
1448 
1449  return true;
1450 }

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

1454 {
1456  COMPARE_SCALAR_FIELD(all);
1457  COMPARE_NODE_FIELD(larg);
1458  COMPARE_NODE_FIELD(rarg);
1459  COMPARE_NODE_FIELD(colTypes);
1460  COMPARE_NODE_FIELD(colTypmods);
1461  COMPARE_NODE_FIELD(colCollations);
1462  COMPARE_NODE_FIELD(groupClauses);
1463 
1464  return true;
1465 }

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

801 {
802  COMPARE_SCALAR_FIELD(typeId);
803  COMPARE_SCALAR_FIELD(typeMod);
804  COMPARE_SCALAR_FIELD(collation);
805  COMPARE_LOCATION_FIELD(location);
806 
807  return true;
808 }

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

2928 {
2929  COMPARE_NODE_FIELD(node);
2930  COMPARE_SCALAR_FIELD(sortby_dir);
2931  COMPARE_SCALAR_FIELD(sortby_nulls);
2932  COMPARE_NODE_FIELD(useOp);
2933  COMPARE_LOCATION_FIELD(location);
2934 
2935  return true;
2936 }

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

3208 {
3209  COMPARE_SCALAR_FIELD(tleSortGroupRef);
3210  COMPARE_SCALAR_FIELD(eqop);
3211  COMPARE_SCALAR_FIELD(sortop);
3212  COMPARE_SCALAR_FIELD(nulls_first);
3213  COMPARE_SCALAR_FIELD(hashable);
3214 
3215  return true;
3216 }

References COMPARE_SCALAR_FIELD.

Referenced by equal().

◆ _equalSpecialJoinInfo()

<