#include "postgres.h"
#include "nodes/relation.h"
#include "utils/datum.h"
Go to the source code of this file.
#define COMPARE_BITMAPSET_FIELD | ( | fldname | ) |
do { \ if (!bms_equal(a->fldname, b->fldname)) \ return false; \ } while (0)
Definition at line 58 of file equalfuncs.c.
Referenced by _equalLateralJoinInfo(), _equalPlaceHolderInfo(), _equalPlaceHolderVar(), _equalRangeTblEntry(), _equalRestrictInfo(), and _equalSpecialJoinInfo().
#define COMPARE_COERCIONFORM_FIELD | ( | fldname | ) | ((void) 0) |
Definition at line 87 of file equalfuncs.c.
Referenced by _equalArrayCoerceExpr(), _equalCoerceToDomain(), _equalCoerceViaIO(), _equalConvertRowtypeExpr(), _equalFuncExpr(), _equalRelabelType(), and _equalRowExpr().
#define COMPARE_LOCATION_FIELD | ( | fldname | ) | ((void) 0) |
Definition at line 83 of file equalfuncs.c.
Referenced by _equalA_ArrayExpr(), _equalAConst(), _equalAExpr(), _equalAggref(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseWhen(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceToDomainValue(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnRef(), _equalCommonTableExpr(), _equalConst(), _equalConstraint(), _equalConvertRowtypeExpr(), _equalDistinctExpr(), _equalFuncCall(), _equalFuncExpr(), _equalMinMaxExpr(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalRangeVar(), _equalRelabelType(), _equalResTarget(), _equalRowExpr(), _equalScalarArrayOpExpr(), _equalSetToDefault(), _equalSortBy(), _equalSubLink(), _equalTypeCast(), _equalTypeName(), _equalVar(), _equalWindowDef(), _equalWindowFunc(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().
#define COMPARE_NODE_FIELD | ( | fldname | ) |
do { \ if (!equal(a->fldname, b->fldname)) \ return false; \ } while (0)
Definition at line 51 of file equalfuncs.c.
Referenced by _equalA_ArrayExpr(), _equalA_Indirection(), _equalAccessPriv(), _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterTableCmd(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalArrayRef(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseWhen(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnDef(), _equalColumnRef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalCompositeTypeStmt(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateDomainStmt(), _equalCreateEnumStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreateRangeStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStmt(), _equalCreateTableAsStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalExecuteStmt(), _equalExplainStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFromExpr(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalFuncWithArgs(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalOpExpr(), _equalPlaceHolderInfo(), _equalPrepareStmt(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTblEntry(), _equalRangeVar(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalRowCompareExpr(), _equalRowExpr(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSortBy(), _equalSpecialJoinInfo(), _equalSubLink(), _equalSubPlan(), _equalTableLikeClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeCast(), _equalTypeName(), _equalUpdateStmt(), _equalVacuumStmt(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().
#define COMPARE_POINTER_FIELD | ( | fldname, | ||
sz | ||||
) |
do { \ if (memcmp(a->fldname, b->fldname, (sz)) != 0) \ return false; \ } while (0)
Definition at line 76 of file equalfuncs.c.
#define COMPARE_SCALAR_FIELD | ( | fldname | ) |
do { \ if (a->fldname != b->fldname) \ return false; \ } while (0)
Definition at line 44 of file equalfuncs.c.
Referenced by _equalAExpr(), _equalAggref(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterTableCmd(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalArrayRef(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseTestExpr(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceToDomainValue(), _equalCoerceViaIO(), _equalCollateExpr(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConst(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreatePLangStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStmt(), _equalCreateTableAsStmt(), _equalCreateTrigStmt(), _equalCurrentOfExpr(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDiscardStmt(), _equalDistinctExpr(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalFetchStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalIndexElem(), _equalIndexStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLateralJoinInfo(), _equalList(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalNamedArgExpr(), _equalNullIfExpr(), _equalNullTest(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalPathKey(), _equalPlaceHolderInfo(), _equalPlaceHolderVar(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTblEntry(), _equalRangeTblRef(), _equalRangeVar(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalRestrictInfo(), _equalRowCompareExpr(), _equalRowExpr(), _equalRowMarkClause(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSetToDefault(), _equalSortBy(), _equalSortGroupClause(), _equalSpecialJoinInfo(), _equalSubLink(), _equalSubPlan(), _equalTableLikeClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeName(), _equalVacuumStmt(), _equalValue(), _equalVar(), _equalVariableSetStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithClause(), _equalXmlExpr(), and _equalXmlSerialize().
#define COMPARE_STRING_FIELD | ( | fldname | ) |
do { \ if (!equalstr(a->fldname, b->fldname)) \ return false; \ } while (0)
Definition at line 65 of file equalfuncs.c.
Referenced by _equalAccessPriv(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterTableCmd(), _equalAlterTableSpaceOptionsStmt(), _equalAlterUserMappingStmt(), _equalClosePortalStmt(), _equalClusterStmt(), _equalColumnDef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalConstraint(), _equalCopyStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateStmt(), _equalCreateTableSpaceStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCurrentOfExpr(), _equalDeallocateStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDropdbStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalFetchStmt(), _equalFunctionParameter(), _equalGrantRoleStmt(), _equalIndexElem(), _equalIndexStmt(), _equalIntoClause(), _equalListenStmt(), _equalLoadStmt(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalPrepareStmt(), _equalPrivGrantee(), _equalRangeTblEntry(), _equalRangeVar(), _equalReassignOwnedStmt(), _equalReindexStmt(), _equalRenameStmt(), _equalResTarget(), _equalRuleStmt(), _equalSecLabelStmt(), _equalSubPlan(), _equalTargetEntry(), _equalTransactionStmt(), _equalUnlistenStmt(), _equalValue(), _equalVariableSetStmt(), _equalVariableShowStmt(), _equalWindowClause(), _equalWindowDef(), and _equalXmlExpr().
#define equalstr | ( | a, | ||
b | ||||
) | (((a) != NULL && (b) != NULL) ? (strcmp(a, b) == 0) : (a) == (b)) |
Definition at line 72 of file equalfuncs.c.
static bool _equalA_ArrayExpr | ( | const A_ArrayExpr * | a, | |
const A_ArrayExpr * | b | |||
) | [static] |
Definition at line 2029 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(elements); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalA_Indirection | ( | const A_Indirection * | a, | |
const A_Indirection * | b | |||
) | [static] |
Definition at line 2020 of file equalfuncs.c.
References arg, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(indirection); return true; }
static bool _equalAccessPriv | ( | const AccessPriv * | a, | |
const AccessPriv * | b | |||
) | [static] |
Definition at line 1015 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(priv_name); COMPARE_NODE_FIELD(cols); return true; }
Definition at line 1980 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, equal(), and A_Const::val.
Referenced by equal().
{ if (!equal(&a->val, &b->val)) /* hack for in-line Value field */ return false; COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 1950 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(name); COMPARE_NODE_FIELD(lexpr); COMPARE_NODE_FIELD(rexpr); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 190 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(aggfnoid); COMPARE_SCALAR_FIELD(aggtype); COMPARE_SCALAR_FIELD(aggcollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_NODE_FIELD(aggorder); COMPARE_NODE_FIELD(aggdistinct); COMPARE_SCALAR_FIELD(aggstar); COMPARE_SCALAR_FIELD(agglevelsup); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 2011 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(lidx); COMPARE_NODE_FIELD(uidx); return true; }
Definition at line 96 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(aliasname); COMPARE_NODE_FIELD(colnames); return true; }
static bool _equalAlterDatabaseSetStmt | ( | const AlterDatabaseSetStmt * | a, | |
const AlterDatabaseSetStmt * | b | |||
) | [static] |
Definition at line 1472 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(dbname); COMPARE_NODE_FIELD(setstmt); return true; }
static bool _equalAlterDatabaseStmt | ( | const AlterDatabaseStmt * | a, | |
const AlterDatabaseStmt * | b | |||
) | [static] |
Definition at line 1463 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(dbname); COMPARE_NODE_FIELD(options); return true; }
static bool _equalAlterDefaultPrivilegesStmt | ( | const AlterDefaultPrivilegesStmt * | a, | |
const AlterDefaultPrivilegesStmt * | b | |||
) | [static] |
Definition at line 1037 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(options); COMPARE_NODE_FIELD(action); return true; }
static bool _equalAlterDomainStmt | ( | const AlterDomainStmt * | a, | |
const AlterDomainStmt * | b | |||
) | [static] |
Definition at line 970 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(subtype); COMPARE_NODE_FIELD(typeName); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(def); COMPARE_SCALAR_FIELD(behavior); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterEnumStmt | ( | const AlterEnumStmt * | a, | |
const AlterEnumStmt * | b | |||
) | [static] |
Definition at line 1364 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(typeName); COMPARE_STRING_FIELD(newVal); COMPARE_STRING_FIELD(newValNeighbor); COMPARE_SCALAR_FIELD(newValIsAfter); COMPARE_SCALAR_FIELD(skipIfExists); return true; }
static bool _equalAlterEventTrigStmt | ( | const AlterEventTrigStmt * | a, | |
const AlterEventTrigStmt * | b | |||
) | [static] |
Definition at line 1755 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(trigname); COMPARE_SCALAR_FIELD(tgenabled); return true; }
static bool _equalAlterExtensionContentsStmt | ( | const AlterExtensionContentsStmt * | a, | |
const AlterExtensionContentsStmt * | b | |||
) | [static] |
Definition at line 1627 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(extname); COMPARE_SCALAR_FIELD(action); COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objname); COMPARE_NODE_FIELD(objargs); return true; }
static bool _equalAlterExtensionStmt | ( | const AlterExtensionStmt * | a, | |
const AlterExtensionStmt * | b | |||
) | [static] |
Definition at line 1618 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(extname); COMPARE_NODE_FIELD(options); return true; }
static bool _equalAlterFdwStmt | ( | const AlterFdwStmt * | a, | |
const AlterFdwStmt * | b | |||
) | [static] |
Definition at line 1649 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(fdwname); COMPARE_NODE_FIELD(func_options); COMPARE_NODE_FIELD(options); return true; }
static bool _equalAlterForeignServerStmt | ( | const AlterForeignServerStmt * | a, | |
const AlterForeignServerStmt * | b | |||
) | [static] |
Definition at line 1671 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(servername); COMPARE_STRING_FIELD(version); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(has_version); return true; }
static bool _equalAlterFunctionStmt | ( | const AlterFunctionStmt * | a, | |
const AlterFunctionStmt * | b | |||
) | [static] |
Definition at line 1230 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(func); COMPARE_NODE_FIELD(actions); return true; }
static bool _equalAlternativeSubPlan | ( | const AlternativeSubPlan * | a, | |
const AlternativeSubPlan * | b | |||
) | [static] |
Definition at line 411 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(subplans); return true; }
static bool _equalAlterObjectSchemaStmt | ( | const AlterObjectSchemaStmt * | a, | |
const AlterObjectSchemaStmt * | b | |||
) | [static] |
Definition at line 1263 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(objectType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(newschema); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterOpFamilyStmt | ( | const AlterOpFamilyStmt * | a, | |
const AlterOpFamilyStmt * | b | |||
) | [static] |
Definition at line 1443 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(opfamilyname); COMPARE_STRING_FIELD(amname); COMPARE_SCALAR_FIELD(isDrop); COMPARE_NODE_FIELD(items); return true; }
static bool _equalAlterOwnerStmt | ( | const AlterOwnerStmt * | a, | |
const AlterOwnerStmt * | b | |||
) | [static] |
Definition at line 1276 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(objectType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(newowner); return true; }
static bool _equalAlterRoleSetStmt | ( | const AlterRoleSetStmt * | a, | |
const AlterRoleSetStmt * | b | |||
) | [static] |
Definition at line 1797 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(role); COMPARE_STRING_FIELD(database); COMPARE_NODE_FIELD(setstmt); return true; }
static bool _equalAlterRoleStmt | ( | const AlterRoleStmt * | a, | |
const AlterRoleStmt * | b | |||
) | [static] |
Definition at line 1787 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(role); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(action); return true; }
static bool _equalAlterSeqStmt | ( | const AlterSeqStmt * | a, | |
const AlterSeqStmt * | b | |||
) | [static] |
Definition at line 1541 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(sequence); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterTableCmd | ( | const AlterTableCmd * | a, | |
const AlterTableCmd * | b | |||
) | [static] |
Definition at line 958 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(subtype); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(def); COMPARE_SCALAR_FIELD(behavior); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterTableSpaceOptionsStmt | ( | const AlterTableSpaceOptionsStmt * | a, | |
const AlterTableSpaceOptionsStmt * | b | |||
) | [static] |
Definition at line 1597 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(tablespacename); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(isReset); return true; }
static bool _equalAlterTableStmt | ( | const AlterTableStmt * | a, | |
const AlterTableStmt * | b | |||
) | [static] |
Definition at line 947 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(cmds); COMPARE_SCALAR_FIELD(relkind); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterTSConfigurationStmt | ( | const AlterTSConfigurationStmt * | a, | |
const AlterTSConfigurationStmt * | b | |||
) | [static] |
Definition at line 1936 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(cfgname); COMPARE_NODE_FIELD(tokentype); COMPARE_NODE_FIELD(dicts); COMPARE_SCALAR_FIELD(override); COMPARE_SCALAR_FIELD(replace); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalAlterTSDictionaryStmt | ( | const AlterTSDictionaryStmt * | a, | |
const AlterTSDictionaryStmt * | b | |||
) | [static] |
Definition at line 1927 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(dictname); COMPARE_NODE_FIELD(options); return true; }
static bool _equalAlterUserMappingStmt | ( | const AlterUserMappingStmt * | a, | |
const AlterUserMappingStmt * | b | |||
) | [static] |
Definition at line 1692 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and username.
Referenced by equal().
{ COMPARE_STRING_FIELD(username); COMPARE_STRING_FIELD(servername); COMPARE_NODE_FIELD(options); return true; }
static bool _equalAppendRelInfo | ( | const AppendRelInfo * | a, | |
const AppendRelInfo * | b | |||
) | [static] |
Definition at line 804 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(parent_relid); COMPARE_SCALAR_FIELD(child_relid); COMPARE_SCALAR_FIELD(parent_reltype); COMPARE_SCALAR_FIELD(child_reltype); COMPARE_NODE_FIELD(translated_vars); COMPARE_SCALAR_FIELD(parent_reloid); return true; }
static bool _equalArrayCoerceExpr | ( | const ArrayCoerceExpr * | a, | |
const ArrayCoerceExpr * | b | |||
) | [static] |
Definition at line 467 of file equalfuncs.c.
References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(elemfuncid); COMPARE_SCALAR_FIELD(resulttype); COMPARE_SCALAR_FIELD(resulttypmod); COMPARE_SCALAR_FIELD(resultcollid); COMPARE_SCALAR_FIELD(isExplicit); COMPARE_COERCIONFORM_FIELD(coerceformat); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 536 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(array_typeid); COMPARE_SCALAR_FIELD(array_collid); COMPARE_SCALAR_FIELD(element_typeid); COMPARE_NODE_FIELD(elements); COMPARE_SCALAR_FIELD(multidims); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 223 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(refarraytype); COMPARE_SCALAR_FIELD(refelemtype); COMPARE_SCALAR_FIELD(reftypmod); COMPARE_SCALAR_FIELD(refcollid); COMPARE_NODE_FIELD(refupperindexpr); COMPARE_NODE_FIELD(reflowerindexpr); COMPARE_NODE_FIELD(refexpr); COMPARE_NODE_FIELD(refassgnexpr); return true; }
static bool _equalBooleanTest | ( | const BooleanTest * | a, | |
const BooleanTest * | b | |||
) | [static] |
Definition at line 624 of file equalfuncs.c.
References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(booltesttype); return true; }
Definition at line 367 of file equalfuncs.c.
References boolop(), COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(boolop); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 503 of file equalfuncs.c.
References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(casetype); COMPARE_SCALAR_FIELD(casecollid); COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(args); COMPARE_NODE_FIELD(defresult); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCaseTestExpr | ( | const CaseTestExpr * | a, | |
const CaseTestExpr * | b | |||
) | [static] |
Definition at line 526 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(typeId); COMPARE_SCALAR_FIELD(typeMod); COMPARE_SCALAR_FIELD(collation); return true; }
Definition at line 516 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(expr); COMPARE_NODE_FIELD(result); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalClosePortalStmt | ( | const ClosePortalStmt * | a, | |
const ClosePortalStmt * | b | |||
) | [static] |
Definition at line 1056 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(portalname); return true; }
static bool _equalClusterStmt | ( | const ClusterStmt * | a, | |
const ClusterStmt * | b | |||
) | [static] |
Definition at line 1064 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and verbose.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(indexname); COMPARE_SCALAR_FIELD(verbose); return true; }
static bool _equalCoalesceExpr | ( | const CoalesceExpr * | a, | |
const CoalesceExpr * | b | |||
) | [static] |
Definition at line 574 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(coalescetype); COMPARE_SCALAR_FIELD(coalescecollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCoerceToDomain | ( | const CoerceToDomain * | a, | |
const CoerceToDomain * | b | |||
) | [static] |
Definition at line 633 of file equalfuncs.c.
References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(resulttype); COMPARE_SCALAR_FIELD(resulttypmod); COMPARE_SCALAR_FIELD(resultcollid); COMPARE_COERCIONFORM_FIELD(coercionformat); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCoerceToDomainValue | ( | const CoerceToDomainValue * | a, | |
const CoerceToDomainValue * | b | |||
) | [static] |
Definition at line 646 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(typeId); COMPARE_SCALAR_FIELD(typeMod); COMPARE_SCALAR_FIELD(collation); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCoerceViaIO | ( | const CoerceViaIO * | a, | |
const CoerceViaIO * | b | |||
) | [static] |
Definition at line 455 of file equalfuncs.c.
References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(resulttype); COMPARE_SCALAR_FIELD(resultcollid); COMPARE_COERCIONFORM_FIELD(coerceformat); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCollateClause | ( | const CollateClause * | a, | |
const CollateClause * | b | |||
) | [static] |
Definition at line 2074 of file equalfuncs.c.
References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(collname); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCollateExpr | ( | const CollateExpr * | a, | |
const CollateExpr * | b | |||
) | [static] |
Definition at line 493 of file equalfuncs.c.
References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(collOid); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 2146 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(colname); COMPARE_NODE_FIELD(typeName); COMPARE_SCALAR_FIELD(inhcount); COMPARE_SCALAR_FIELD(is_local); COMPARE_SCALAR_FIELD(is_not_null); COMPARE_SCALAR_FIELD(is_from_type); COMPARE_SCALAR_FIELD(storage); COMPARE_NODE_FIELD(raw_default); COMPARE_NODE_FIELD(cooked_default); COMPARE_NODE_FIELD(collClause); COMPARE_SCALAR_FIELD(collOid); COMPARE_NODE_FIELD(constraints); COMPARE_NODE_FIELD(fdwoptions); return true; }
Definition at line 1962 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(fields); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalCommentStmt | ( | const CommentStmt * | a, | |
const CommentStmt * | b | |||
) | [static] |
Definition at line 1148 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objname); COMPARE_NODE_FIELD(objargs); COMPARE_STRING_FIELD(comment); return true; }
static bool _equalCommonTableExpr | ( | const CommonTableExpr * | a, | |
const CommonTableExpr * | b | |||
) | [static] |
Definition at line 2302 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(ctename); COMPARE_NODE_FIELD(aliascolnames); COMPARE_NODE_FIELD(ctequery); COMPARE_LOCATION_FIELD(location); COMPARE_SCALAR_FIELD(cterecursive); COMPARE_SCALAR_FIELD(cterefcount); COMPARE_NODE_FIELD(ctecolnames); COMPARE_NODE_FIELD(ctecoltypes); COMPARE_NODE_FIELD(ctecoltypmods); COMPARE_NODE_FIELD(ctecolcollations); return true; }
static bool _equalCompositeTypeStmt | ( | const CompositeTypeStmt * | a, | |
const CompositeTypeStmt * | b | |||
) | [static] |
Definition at line 1337 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(typevar); COMPARE_NODE_FIELD(coldeflist); return true; }
Definition at line 156 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_SCALAR_FIELD, Const::constbyval, Const::constisnull, Const::constlen, Const::constvalue, and datumIsEqual().
Referenced by equal().
{ COMPARE_SCALAR_FIELD(consttype); COMPARE_SCALAR_FIELD(consttypmod); COMPARE_SCALAR_FIELD(constcollid); COMPARE_SCALAR_FIELD(constlen); COMPARE_SCALAR_FIELD(constisnull); COMPARE_SCALAR_FIELD(constbyval); COMPARE_LOCATION_FIELD(location); /* * We treat all NULL constants of the same type as equal. Someday this * might need to change? But datumIsEqual doesn't work on nulls, so... */ if (a->constisnull) return true; return datumIsEqual(a->constvalue, b->constvalue, a->constbyval, a->constlen); }
static bool _equalConstraint | ( | const Constraint * | a, | |
const Constraint * | b | |||
) | [static] |
Definition at line 2166 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(contype); COMPARE_STRING_FIELD(conname); COMPARE_SCALAR_FIELD(deferrable); COMPARE_SCALAR_FIELD(initdeferred); COMPARE_LOCATION_FIELD(location); COMPARE_SCALAR_FIELD(is_no_inherit); COMPARE_NODE_FIELD(raw_expr); COMPARE_STRING_FIELD(cooked_expr); COMPARE_NODE_FIELD(keys); COMPARE_NODE_FIELD(exclusions); COMPARE_NODE_FIELD(options); COMPARE_STRING_FIELD(indexname); COMPARE_STRING_FIELD(indexspace); COMPARE_STRING_FIELD(access_method); COMPARE_NODE_FIELD(where_clause); COMPARE_NODE_FIELD(pktable); COMPARE_NODE_FIELD(fk_attrs); COMPARE_NODE_FIELD(pk_attrs); COMPARE_SCALAR_FIELD(fk_matchtype); COMPARE_SCALAR_FIELD(fk_upd_action); COMPARE_SCALAR_FIELD(fk_del_action); COMPARE_NODE_FIELD(old_conpfeqop); COMPARE_SCALAR_FIELD(skip_validation); COMPARE_SCALAR_FIELD(initially_valid); return true; }
static bool _equalConstraintsSetStmt | ( | const ConstraintsSetStmt * | a, | |
const ConstraintsSetStmt * | b | |||
) | [static] |
Definition at line 1826 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(constraints); COMPARE_SCALAR_FIELD(deferred); return true; }
static bool _equalConvertRowtypeExpr | ( | const ConvertRowtypeExpr * | a, | |
const ConvertRowtypeExpr * | b | |||
) | [static] |
Definition at line 482 of file equalfuncs.c.
References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(resulttype); COMPARE_COERCIONFORM_FIELD(convertformat); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 1074 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and filename.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(query); COMPARE_NODE_FIELD(attlist); COMPARE_SCALAR_FIELD(is_from); COMPARE_SCALAR_FIELD(is_program); COMPARE_STRING_FIELD(filename); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateCastStmt | ( | const CreateCastStmt * | a, | |
const CreateCastStmt * | b | |||
) | [static] |
Definition at line 1870 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(sourcetype); COMPARE_NODE_FIELD(targettype); COMPARE_NODE_FIELD(func); COMPARE_SCALAR_FIELD(context); COMPARE_SCALAR_FIELD(inout); return true; }
static bool _equalCreateConversionStmt | ( | const CreateConversionStmt * | a, | |
const CreateConversionStmt * | b | |||
) | [static] |
Definition at line 1858 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(conversion_name); COMPARE_STRING_FIELD(for_encoding_name); COMPARE_STRING_FIELD(to_encoding_name); COMPARE_NODE_FIELD(func_name); COMPARE_SCALAR_FIELD(def); return true; }
static bool _equalCreatedbStmt | ( | const CreatedbStmt * | a, | |
const CreatedbStmt * | b | |||
) | [static] |
Definition at line 1454 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(dbname); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateDomainStmt | ( | const CreateDomainStmt * | a, | |
const CreateDomainStmt * | b | |||
) | [static] |
Definition at line 1396 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(domainname); COMPARE_NODE_FIELD(typeName); COMPARE_NODE_FIELD(collClause); COMPARE_NODE_FIELD(constraints); return true; }
static bool _equalCreateEnumStmt | ( | const CreateEnumStmt * | a, | |
const CreateEnumStmt * | b | |||
) | [static] |
Definition at line 1346 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(typeName); COMPARE_NODE_FIELD(vals); return true; }
static bool _equalCreateEventTrigStmt | ( | const CreateEventTrigStmt * | a, | |
const CreateEventTrigStmt * | b | |||
) | [static] |
Definition at line 1744 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(trigname); COMPARE_SCALAR_FIELD(eventname); COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(whenclause); return true; }
static bool _equalCreateExtensionStmt | ( | const CreateExtensionStmt * | a, | |
const CreateExtensionStmt * | b | |||
) | [static] |
Definition at line 1608 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(extname); COMPARE_SCALAR_FIELD(if_not_exists); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateFdwStmt | ( | const CreateFdwStmt * | a, | |
const CreateFdwStmt * | b | |||
) | [static] |
Definition at line 1639 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(fdwname); COMPARE_NODE_FIELD(func_options); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateForeignServerStmt | ( | const CreateForeignServerStmt * | a, | |
const CreateForeignServerStmt * | b | |||
) | [static] |
Definition at line 1659 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(servername); COMPARE_STRING_FIELD(servertype); COMPARE_STRING_FIELD(version); COMPARE_STRING_FIELD(fdwname); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateForeignTableStmt | ( | const CreateForeignTableStmt * | a, | |
const CreateForeignTableStmt * | b | |||
) | [static] |
Definition at line 1712 of file equalfuncs.c.
References _equalCreateStmt(), CreateForeignTableStmt::base, COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ if (!_equalCreateStmt(&a->base, &b->base)) return false; COMPARE_STRING_FIELD(servername); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateFunctionStmt | ( | const CreateFunctionStmt * | a, | |
const CreateFunctionStmt * | b | |||
) | [static] |
Definition at line 1206 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(replace); COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(parameters); COMPARE_NODE_FIELD(returnType); COMPARE_NODE_FIELD(options); COMPARE_NODE_FIELD(withClause); return true; }
static bool _equalCreateOpClassItem | ( | const CreateOpClassItem * | a, | |
const CreateOpClassItem * | b | |||
) | [static] |
Definition at line 1420 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(itemtype); COMPARE_NODE_FIELD(name); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(number); COMPARE_NODE_FIELD(order_family); COMPARE_NODE_FIELD(class_args); COMPARE_NODE_FIELD(storedtype); return true; }
static bool _equalCreateOpClassStmt | ( | const CreateOpClassStmt * | a, | |
const CreateOpClassStmt * | b | |||
) | [static] |
Definition at line 1407 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(opclassname); COMPARE_NODE_FIELD(opfamilyname); COMPARE_STRING_FIELD(amname); COMPARE_NODE_FIELD(datatype); COMPARE_NODE_FIELD(items); COMPARE_SCALAR_FIELD(isDefault); return true; }
static bool _equalCreateOpFamilyStmt | ( | const CreateOpFamilyStmt * | a, | |
const CreateOpFamilyStmt * | b | |||
) | [static] |
Definition at line 1434 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(opfamilyname); COMPARE_STRING_FIELD(amname); return true; }
static bool _equalCreatePLangStmt | ( | const CreatePLangStmt * | a, | |
const CreatePLangStmt * | b | |||
) | [static] |
Definition at line 1764 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(replace); COMPARE_STRING_FIELD(plname); COMPARE_NODE_FIELD(plhandler); COMPARE_NODE_FIELD(plinline); COMPARE_NODE_FIELD(plvalidator); COMPARE_SCALAR_FIELD(pltrusted); return true; }
static bool _equalCreateRangeStmt | ( | const CreateRangeStmt * | a, | |
const CreateRangeStmt * | b | |||
) | [static] |
Definition at line 1355 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(typeName); COMPARE_NODE_FIELD(params); return true; }
static bool _equalCreateRoleStmt | ( | const CreateRoleStmt * | a, | |
const CreateRoleStmt * | b | |||
) | [static] |
Definition at line 1777 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(stmt_type); COMPARE_STRING_FIELD(role); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCreateSchemaStmt | ( | const CreateSchemaStmt * | a, | |
const CreateSchemaStmt * | b | |||
) | [static] |
Definition at line 1847 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(schemaname); COMPARE_STRING_FIELD(authid); COMPARE_NODE_FIELD(schemaElts); COMPARE_SCALAR_FIELD(if_not_exists); return true; }
static bool _equalCreateSeqStmt | ( | const CreateSeqStmt * | a, | |
const CreateSeqStmt * | b | |||
) | [static] |
Definition at line 1531 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(sequence); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(ownerId); return true; }
static bool _equalCreateStmt | ( | const CreateStmt * | a, | |
const CreateStmt * | b | |||
) | [static] |
Definition at line 1088 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by _equalCreateForeignTableStmt(), and equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(tableElts); COMPARE_NODE_FIELD(inhRelations); COMPARE_NODE_FIELD(ofTypename); COMPARE_NODE_FIELD(constraints); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(oncommit); COMPARE_STRING_FIELD(tablespacename); COMPARE_SCALAR_FIELD(if_not_exists); return true; }
static bool _equalCreateTableAsStmt | ( | const CreateTableAsStmt * | a, | |
const CreateTableAsStmt * | b | |||
) | [static] |
Definition at line 1511 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(query); COMPARE_NODE_FIELD(into); COMPARE_SCALAR_FIELD(relkind); COMPARE_SCALAR_FIELD(is_select_into); return true; }
static bool _equalCreateTableSpaceStmt | ( | const CreateTableSpaceStmt * | a, | |
const CreateTableSpaceStmt * | b | |||
) | [static] |
Definition at line 1578 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(tablespacename); COMPARE_STRING_FIELD(owner); COMPARE_STRING_FIELD(location); return true; }
static bool _equalCreateTrigStmt | ( | const CreateTrigStmt * | a, | |
const CreateTrigStmt * | b | |||
) | [static] |
Definition at line 1724 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(trigname); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(row); COMPARE_SCALAR_FIELD(timing); COMPARE_SCALAR_FIELD(events); COMPARE_NODE_FIELD(columns); COMPARE_NODE_FIELD(whenClause); COMPARE_SCALAR_FIELD(isconstraint); COMPARE_SCALAR_FIELD(deferrable); COMPARE_SCALAR_FIELD(initdeferred); COMPARE_NODE_FIELD(constrrel); return true; }
static bool _equalCreateUserMappingStmt | ( | const CreateUserMappingStmt * | a, | |
const CreateUserMappingStmt * | b | |||
) | [static] |
Definition at line 1682 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and username.
Referenced by equal().
{ COMPARE_STRING_FIELD(username); COMPARE_STRING_FIELD(servername); COMPARE_NODE_FIELD(options); return true; }
static bool _equalCurrentOfExpr | ( | const CurrentOfExpr * | a, | |
const CurrentOfExpr * | b | |||
) | [static] |
Definition at line 668 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(cvarno); COMPARE_STRING_FIELD(cursor_name); COMPARE_SCALAR_FIELD(cursor_param); return true; }
static bool _equalDeallocateStmt | ( | const DeallocateStmt * | a, | |
const DeallocateStmt * | b | |||
) | [static] |
Definition at line 1901 of file equalfuncs.c.
References COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); return true; }
static bool _equalDeclareCursorStmt | ( | const DeclareCursorStmt * | a, | |
const DeclareCursorStmt * | b | |||
) | [static] |
Definition at line 1046 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(portalname); COMPARE_SCALAR_FIELD(options); COMPARE_NODE_FIELD(query); return true; }
Definition at line 2197 of file equalfuncs.c.
References arg, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(defnamespace); COMPARE_STRING_FIELD(defname); COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(defaction); return true; }
static bool _equalDefineStmt | ( | const DefineStmt * | a, | |
const DefineStmt * | b | |||
) | [static] |
Definition at line 1113 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(kind); COMPARE_SCALAR_FIELD(oldstyle); COMPARE_NODE_FIELD(defnames); COMPARE_NODE_FIELD(args); COMPARE_NODE_FIELD(definition); return true; }
static bool _equalDeleteStmt | ( | const DeleteStmt * | a, | |
const DeleteStmt * | b | |||
) | [static] |
Definition at line 882 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(usingClause); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(returningList); COMPARE_NODE_FIELD(withClause); return true; }
static bool _equalDiscardStmt | ( | const DiscardStmt * | a, | |
const DiscardStmt * | b | |||
) | [static] |
Definition at line 1570 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(target); return true; }
static bool _equalDistinctExpr | ( | const DistinctExpr * | a, | |
const DistinctExpr * | b | |||
) | [static] |
Definition at line 291 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(opno); /* * Special-case opfuncid: it is allowable for it to differ if one node * contains zero and the other doesn't. This just means that the one node * isn't as far along in the parse/plan pipeline and hasn't had the * opfuncid cache filled yet. */ if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0) return false; COMPARE_SCALAR_FIELD(opresulttype); COMPARE_SCALAR_FIELD(opretset); COMPARE_SCALAR_FIELD(opcollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 1239 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(args); return true; }
static bool _equalDropdbStmt | ( | const DropdbStmt * | a, | |
const DropdbStmt * | b | |||
) | [static] |
Definition at line 1481 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(dbname); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalDropOwnedStmt | ( | const DropOwnedStmt * | a, | |
const DropOwnedStmt * | b | |||
) | [static] |
Definition at line 1909 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(roles); COMPARE_SCALAR_FIELD(behavior); return true; }
static bool _equalDropRoleStmt | ( | const DropRoleStmt * | a, | |
const DropRoleStmt * | b | |||
) | [static] |
Definition at line 1807 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(roles); COMPARE_SCALAR_FIELD(missing_ok); return true; }
Definition at line 1125 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(objects); COMPARE_NODE_FIELD(arguments); COMPARE_SCALAR_FIELD(removeType); COMPARE_SCALAR_FIELD(behavior); COMPARE_SCALAR_FIELD(missing_ok); COMPARE_SCALAR_FIELD(concurrent); return true; }
static bool _equalDropTableSpaceStmt | ( | const DropTableSpaceStmt * | a, | |
const DropTableSpaceStmt * | b | |||
) | [static] |
Definition at line 1588 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(tablespacename); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalDropUserMappingStmt | ( | const DropUserMappingStmt * | a, | |
const DropUserMappingStmt * | b | |||
) | [static] |
Definition at line 1702 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and username.
Referenced by equal().
{ COMPARE_STRING_FIELD(username); COMPARE_STRING_FIELD(servername); COMPARE_SCALAR_FIELD(missing_ok); return true; }
static bool _equalExecuteStmt | ( | const ExecuteStmt * | a, | |
const ExecuteStmt * | b | |||
) | [static] |
Definition at line 1892 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(params); return true; }
static bool _equalExplainStmt | ( | const ExplainStmt * | a, | |
const ExplainStmt * | b | |||
) | [static] |
Definition at line 1502 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(query); COMPARE_NODE_FIELD(options); return true; }
Definition at line 1171 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(direction); COMPARE_SCALAR_FIELD(howMany); COMPARE_STRING_FIELD(portalname); COMPARE_SCALAR_FIELD(ismove); return true; }
static bool _equalFieldSelect | ( | const FieldSelect * | a, | |
const FieldSelect * | b | |||
) | [static] |
Definition at line 419 of file equalfuncs.c.
References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(fieldnum); COMPARE_SCALAR_FIELD(resulttype); COMPARE_SCALAR_FIELD(resulttypmod); COMPARE_SCALAR_FIELD(resultcollid); return true; }
static bool _equalFieldStore | ( | const FieldStore * | a, | |
const FieldStore * | b | |||
) | [static] |
Definition at line 431 of file equalfuncs.c.
References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(newvals); COMPARE_NODE_FIELD(fieldnums); COMPARE_SCALAR_FIELD(resulttype); return true; }
Definition at line 715 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(fromlist); COMPARE_NODE_FIELD(quals); return true; }
Definition at line 1990 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(args); COMPARE_NODE_FIELD(agg_order); COMPARE_SCALAR_FIELD(agg_star); COMPARE_SCALAR_FIELD(agg_distinct); COMPARE_SCALAR_FIELD(func_variadic); COMPARE_NODE_FIELD(over); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 238 of file equalfuncs.c.
References COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(funcid); COMPARE_SCALAR_FIELD(funcresulttype); COMPARE_SCALAR_FIELD(funcretset); COMPARE_SCALAR_FIELD(funcvariadic); COMPARE_COERCIONFORM_FIELD(funcformat); COMPARE_SCALAR_FIELD(funccollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalFunctionParameter | ( | const FunctionParameter * | a, | |
const FunctionParameter * | b | |||
) | [static] |
Definition at line 1219 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(argType); COMPARE_SCALAR_FIELD(mode); COMPARE_NODE_FIELD(defexpr); return true; }
static bool _equalFuncWithArgs | ( | const FuncWithArgs * | a, | |
const FuncWithArgs * | b | |||
) | [static] |
Definition at line 1006 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(funcargs); return true; }
static bool _equalGrantRoleStmt | ( | const GrantRoleStmt * | a, | |
const GrantRoleStmt * | b | |||
) | [static] |
Definition at line 1024 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(granted_roles); COMPARE_NODE_FIELD(grantee_roles); COMPARE_SCALAR_FIELD(is_grant); COMPARE_SCALAR_FIELD(admin_opt); COMPARE_STRING_FIELD(grantor); COMPARE_SCALAR_FIELD(behavior); return true; }
Definition at line 983 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(is_grant); COMPARE_SCALAR_FIELD(targtype); COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objects); COMPARE_NODE_FIELD(privileges); COMPARE_NODE_FIELD(grantees); COMPARE_SCALAR_FIELD(grant_option); COMPARE_SCALAR_FIELD(behavior); return true; }
Definition at line 2132 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(expr); COMPARE_STRING_FIELD(indexcolname); COMPARE_NODE_FIELD(collation); COMPARE_NODE_FIELD(opclass); COMPARE_SCALAR_FIELD(ordering); COMPARE_SCALAR_FIELD(nulls_ordering); return true; }
Definition at line 1182 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(idxname); COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(accessMethod); COMPARE_STRING_FIELD(tableSpace); COMPARE_NODE_FIELD(indexParams); COMPARE_NODE_FIELD(options); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(excludeOpNames); COMPARE_STRING_FIELD(idxcomment); COMPARE_SCALAR_FIELD(indexOid); COMPARE_SCALAR_FIELD(oldNode); COMPARE_SCALAR_FIELD(unique); COMPARE_SCALAR_FIELD(primary); COMPARE_SCALAR_FIELD(isconstraint); COMPARE_SCALAR_FIELD(deferrable); COMPARE_SCALAR_FIELD(initdeferred); COMPARE_SCALAR_FIELD(concurrent); return true; }
static bool _equalInsertStmt | ( | const InsertStmt * | a, | |
const InsertStmt * | b | |||
) | [static] |
Definition at line 870 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(cols); COMPARE_NODE_FIELD(selectStmt); COMPARE_NODE_FIELD(returningList); COMPARE_NODE_FIELD(withClause); return true; }
static bool _equalIntoClause | ( | const IntoClause * | a, | |
const IntoClause * | b | |||
) | [static] |
Definition at line 119 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(rel); COMPARE_NODE_FIELD(colNames); COMPARE_NODE_FIELD(options); COMPARE_SCALAR_FIELD(onCommit); COMPARE_STRING_FIELD(tableSpaceName); COMPARE_NODE_FIELD(viewQuery); COMPARE_SCALAR_FIELD(skipData); return true; }
Definition at line 700 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(jointype); COMPARE_SCALAR_FIELD(isNatural); COMPARE_NODE_FIELD(larg); COMPARE_NODE_FIELD(rarg); COMPARE_NODE_FIELD(usingClause); COMPARE_NODE_FIELD(quals); COMPARE_NODE_FIELD(alias); COMPARE_SCALAR_FIELD(rtindex); return true; }
static bool _equalLateralJoinInfo | ( | const LateralJoinInfo * | a, | |
const LateralJoinInfo * | b | |||
) | [static] |
Definition at line 795 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(lateral_rhs); COMPARE_BITMAPSET_FIELD(lateral_lhs); return true; }
Definition at line 2334 of file equalfuncs.c.
References Assert, COMPARE_SCALAR_FIELD, elog, equal(), ERROR, forboth, length(), lfirst, lfirst_int, lfirst_oid, NULL, T_IntList, T_List, T_OidList, and List::type.
Referenced by equal().
{ const ListCell *item_a; const ListCell *item_b; /* * Try to reject by simple scalar checks before grovelling through all the * list elements... */ COMPARE_SCALAR_FIELD(type); COMPARE_SCALAR_FIELD(length); /* * We place the switch outside the loop for the sake of efficiency; this * may not be worth doing... */ switch (a->type) { case T_List: forboth(item_a, a, item_b, b) { if (!equal(lfirst(item_a), lfirst(item_b))) return false; } break; case T_IntList: forboth(item_a, a, item_b, b) { if (lfirst_int(item_a) != lfirst_int(item_b)) return false; } break; case T_OidList: forboth(item_a, a, item_b, b) { if (lfirst_oid(item_a) != lfirst_oid(item_b)) return false; } break; default: elog(ERROR, "unrecognized list node type: %d", (int) a->type); return false; /* keep compiler quiet */ } /* * If we got here, we should have run out of elements of both lists */ Assert(item_a == NULL); Assert(item_b == NULL); return true; }
static bool _equalListenStmt | ( | const ListenStmt * | a, | |
const ListenStmt * | b | |||
) | [static] |
Definition at line 1311 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(conditionname); return true; }
Definition at line 1388 of file equalfuncs.c.
References COMPARE_STRING_FIELD, and filename.
Referenced by equal().
{ COMPARE_STRING_FIELD(filename); return true; }
static bool _equalLockingClause | ( | const LockingClause * | a, | |
const LockingClause * | b | |||
) | [static] |
Definition at line 2208 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(lockedRels); COMPARE_SCALAR_FIELD(strength); COMPARE_SCALAR_FIELD(noWait); return true; }
Definition at line 1816 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relations); COMPARE_SCALAR_FIELD(mode); COMPARE_SCALAR_FIELD(nowait); return true; }
static bool _equalMinMaxExpr | ( | const MinMaxExpr * | a, | |
const MinMaxExpr * | b | |||
) | [static] |
Definition at line 585 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(minmaxtype); COMPARE_SCALAR_FIELD(minmaxcollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_SCALAR_FIELD(op); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalNamedArgExpr | ( | const NamedArgExpr * | a, | |
const NamedArgExpr * | b | |||
) | [static] |
Definition at line 254 of file equalfuncs.c.
References arg, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_STRING_FIELD(name); COMPARE_SCALAR_FIELD(argnumber); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalNotifyStmt | ( | const NotifyStmt * | a, | |
const NotifyStmt * | b | |||
) | [static] |
Definition at line 1302 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(conditionname); COMPARE_STRING_FIELD(payload); return true; }
static bool _equalNullIfExpr | ( | const NullIfExpr * | a, | |
const NullIfExpr * | b | |||
) | [static] |
Definition at line 317 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(opno); /* * Special-case opfuncid: it is allowable for it to differ if one node * contains zero and the other doesn't. This just means that the one node * isn't as far along in the parse/plan pipeline and hasn't had the * opfuncid cache filled yet. */ if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0) return false; COMPARE_SCALAR_FIELD(opresulttype); COMPARE_SCALAR_FIELD(opretset); COMPARE_SCALAR_FIELD(opcollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 614 of file equalfuncs.c.
References arg, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(nulltesttype); COMPARE_SCALAR_FIELD(argisrow); return true; }
Definition at line 265 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and OpExpr::opfuncid.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(opno); /* * Special-case opfuncid: it is allowable for it to differ if one node * contains zero and the other doesn't. This just means that the one node * isn't as far along in the parse/plan pipeline and hasn't had the * opfuncid cache filled yet. */ if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0) return false; COMPARE_SCALAR_FIELD(opresulttype); COMPARE_SCALAR_FIELD(opretset); COMPARE_SCALAR_FIELD(opcollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 177 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(paramkind); COMPARE_SCALAR_FIELD(paramid); COMPARE_SCALAR_FIELD(paramtype); COMPARE_SCALAR_FIELD(paramtypmod); COMPARE_SCALAR_FIELD(paramcollid); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 1971 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(number); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 729 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ /* We assume pointer equality is sufficient to compare the eclasses */ COMPARE_SCALAR_FIELD(pk_eclass); COMPARE_SCALAR_FIELD(pk_opfamily); COMPARE_SCALAR_FIELD(pk_strategy); COMPARE_SCALAR_FIELD(pk_nulls_first); return true; }
static bool _equalPlaceHolderInfo | ( | const PlaceHolderInfo * | a, | |
const PlaceHolderInfo * | b | |||
) | [static] |
Definition at line 817 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(phid); COMPARE_NODE_FIELD(ph_var); COMPARE_BITMAPSET_FIELD(ph_eval_at); COMPARE_BITMAPSET_FIELD(ph_needed); COMPARE_BITMAPSET_FIELD(ph_may_need); COMPARE_SCALAR_FIELD(ph_width); return true; }
static bool _equalPlaceHolderVar | ( | const PlaceHolderVar * | a, | |
const PlaceHolderVar * | b | |||
) | [static] |
Definition at line 759 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ /* * We intentionally do not compare phexpr. Two PlaceHolderVars with the * same ID and levelsup should be considered equal even if the contained * expressions have managed to mutate to different states. One way in * which that can happen is that initplan sublinks would get replaced by * differently-numbered Params when sublink folding is done. (The end * result of such a situation would be some unreferenced initplans, which * is annoying but not really a problem.) * * COMPARE_NODE_FIELD(phexpr); */ COMPARE_BITMAPSET_FIELD(phrels); COMPARE_SCALAR_FIELD(phid); COMPARE_SCALAR_FIELD(phlevelsup); return true; }
static bool _equalPrepareStmt | ( | const PrepareStmt * | a, | |
const PrepareStmt * | b | |||
) | [static] |
Definition at line 1882 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(argtypes); COMPARE_NODE_FIELD(query); return true; }
static bool _equalPrivGrantee | ( | const PrivGrantee * | a, | |
const PrivGrantee * | b | |||
) | [static] |
Definition at line 998 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(rolname); return true; }
Definition at line 835 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(commandType); COMPARE_SCALAR_FIELD(querySource); /* we intentionally ignore queryId, since it might not be set */ COMPARE_SCALAR_FIELD(canSetTag); COMPARE_NODE_FIELD(utilityStmt); COMPARE_SCALAR_FIELD(resultRelation); COMPARE_SCALAR_FIELD(hasAggs); COMPARE_SCALAR_FIELD(hasWindowFuncs); COMPARE_SCALAR_FIELD(hasSubLinks); COMPARE_SCALAR_FIELD(hasDistinctOn); COMPARE_SCALAR_FIELD(hasRecursive); COMPARE_SCALAR_FIELD(hasModifyingCTE); COMPARE_SCALAR_FIELD(hasForUpdate); COMPARE_NODE_FIELD(cteList); COMPARE_NODE_FIELD(rtable); COMPARE_NODE_FIELD(jointree); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(returningList); COMPARE_NODE_FIELD(groupClause); COMPARE_NODE_FIELD(havingQual); COMPARE_NODE_FIELD(windowClause); COMPARE_NODE_FIELD(distinctClause); COMPARE_NODE_FIELD(sortClause); COMPARE_NODE_FIELD(limitOffset); COMPARE_NODE_FIELD(limitCount); COMPARE_NODE_FIELD(rowMarks); COMPARE_NODE_FIELD(setOperations); COMPARE_NODE_FIELD(constraintDeps); return true; }
static bool _equalRangeFunction | ( | const RangeFunction * | a, | |
const RangeFunction * | b | |||
) | [static] |
Definition at line 2121 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(lateral); COMPARE_NODE_FIELD(funccallnode); COMPARE_NODE_FIELD(alias); COMPARE_NODE_FIELD(coldeflist); return true; }
static bool _equalRangeSubselect | ( | const RangeSubselect * | a, | |
const RangeSubselect * | b | |||
) | [static] |
Definition at line 2111 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(lateral); COMPARE_NODE_FIELD(subquery); COMPARE_NODE_FIELD(alias); return true; }
static bool _equalRangeTblEntry | ( | const RangeTblEntry * | a, | |
const RangeTblEntry * | b | |||
) | [static] |
Definition at line 2218 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(rtekind); COMPARE_SCALAR_FIELD(relid); COMPARE_SCALAR_FIELD(relkind); COMPARE_NODE_FIELD(subquery); COMPARE_SCALAR_FIELD(security_barrier); COMPARE_SCALAR_FIELD(jointype); COMPARE_NODE_FIELD(joinaliasvars); COMPARE_NODE_FIELD(funcexpr); COMPARE_NODE_FIELD(funccoltypes); COMPARE_NODE_FIELD(funccoltypmods); COMPARE_NODE_FIELD(funccolcollations); COMPARE_NODE_FIELD(values_lists); COMPARE_NODE_FIELD(values_collations); COMPARE_STRING_FIELD(ctename); COMPARE_SCALAR_FIELD(ctelevelsup); COMPARE_SCALAR_FIELD(self_reference); COMPARE_NODE_FIELD(ctecoltypes); COMPARE_NODE_FIELD(ctecoltypmods); COMPARE_NODE_FIELD(ctecolcollations); COMPARE_NODE_FIELD(alias); COMPARE_NODE_FIELD(eref); COMPARE_SCALAR_FIELD(lateral); COMPARE_SCALAR_FIELD(inh); COMPARE_SCALAR_FIELD(inFromCl); COMPARE_SCALAR_FIELD(requiredPerms); COMPARE_SCALAR_FIELD(checkAsUser); COMPARE_BITMAPSET_FIELD(selectedCols); COMPARE_BITMAPSET_FIELD(modifiedCols); return true; }
static bool _equalRangeTblRef | ( | const RangeTblRef * | a, | |
const RangeTblRef * | b | |||
) | [static] |
Definition at line 692 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(rtindex); return true; }
Definition at line 105 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(catalogname); COMPARE_STRING_FIELD(schemaname); COMPARE_STRING_FIELD(relname); COMPARE_SCALAR_FIELD(inhOpt); COMPARE_SCALAR_FIELD(relpersistence); COMPARE_NODE_FIELD(alias); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalReassignOwnedStmt | ( | const ReassignOwnedStmt * | a, | |
const ReassignOwnedStmt * | b | |||
) | [static] |
Definition at line 1918 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(roles); COMPARE_STRING_FIELD(newrole); return true; }
static bool _equalRefreshMatViewStmt | ( | const RefreshMatViewStmt * | a, | |
const RefreshMatViewStmt * | b | |||
) | [static] |
Definition at line 1522 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(skipData); COMPARE_NODE_FIELD(relation); return true; }
static bool _equalReindexStmt | ( | const ReindexStmt * | a, | |
const ReindexStmt * | b | |||
) | [static] |
Definition at line 1835 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(name); COMPARE_SCALAR_FIELD(do_system); COMPARE_SCALAR_FIELD(do_user); return true; }
static bool _equalRelabelType | ( | const RelabelType * | a, | |
const RelabelType * | b | |||
) | [static] |
Definition at line 442 of file equalfuncs.c.
References arg, COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(resulttype); COMPARE_SCALAR_FIELD(resulttypmod); COMPARE_SCALAR_FIELD(resultcollid); COMPARE_COERCIONFORM_FIELD(relabelformat); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalRenameStmt | ( | const RenameStmt * | a, | |
const RenameStmt * | b | |||
) | [static] |
Definition at line 1247 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(renameType); COMPARE_SCALAR_FIELD(relationType); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(object); COMPARE_NODE_FIELD(objarg); COMPARE_STRING_FIELD(subname); COMPARE_STRING_FIELD(newname); COMPARE_SCALAR_FIELD(behavior); COMPARE_SCALAR_FIELD(missing_ok); return true; }
Definition at line 2038 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_STRING_FIELD, name, and val.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(indirection); COMPARE_NODE_FIELD(val); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalRestrictInfo | ( | const RestrictInfo * | a, | |
const RestrictInfo * | b | |||
) | [static] |
Definition at line 741 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(clause); COMPARE_SCALAR_FIELD(is_pushed_down); COMPARE_SCALAR_FIELD(outerjoin_delayed); COMPARE_BITMAPSET_FIELD(required_relids); COMPARE_BITMAPSET_FIELD(outer_relids); COMPARE_BITMAPSET_FIELD(nullable_relids); /* * We ignore all the remaining fields, since they may not be set yet, and * should be derivable from the clause anyway. */ return true; }
static bool _equalRowCompareExpr | ( | const RowCompareExpr * | a, | |
const RowCompareExpr * | b | |||
) | [static] |
Definition at line 561 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(rctype); COMPARE_NODE_FIELD(opnos); COMPARE_NODE_FIELD(opfamilies); COMPARE_NODE_FIELD(inputcollids); COMPARE_NODE_FIELD(largs); COMPARE_NODE_FIELD(rargs); return true; }
Definition at line 549 of file equalfuncs.c.
References COMPARE_COERCIONFORM_FIELD, COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(row_typeid); COMPARE_COERCIONFORM_FIELD(row_format); COMPARE_NODE_FIELD(colnames); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalRowMarkClause | ( | const RowMarkClause * | a, | |
const RowMarkClause * | b | |||
) | [static] |
Definition at line 2281 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(rti); COMPARE_SCALAR_FIELD(strength); COMPARE_SCALAR_FIELD(noWait); COMPARE_SCALAR_FIELD(pushedDown); return true; }
Definition at line 1288 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_STRING_FIELD(rulename); COMPARE_NODE_FIELD(whereClause); COMPARE_SCALAR_FIELD(event); COMPARE_SCALAR_FIELD(instead); COMPARE_NODE_FIELD(actions); COMPARE_SCALAR_FIELD(replace); return true; }
static bool _equalScalarArrayOpExpr | ( | const ScalarArrayOpExpr * | a, | |
const ScalarArrayOpExpr * | b | |||
) | [static] |
Definition at line 343 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and ScalarArrayOpExpr::opfuncid.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(opno); /* * Special-case opfuncid: it is allowable for it to differ if one node * contains zero and the other doesn't. This just means that the one node * isn't as far along in the parse/plan pipeline and hasn't had the * opfuncid cache filled yet. */ if (a->opfuncid != b->opfuncid && a->opfuncid != 0 && b->opfuncid != 0) return false; COMPARE_SCALAR_FIELD(useOr); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalSecLabelStmt | ( | const SecLabelStmt * | a, | |
const SecLabelStmt * | b | |||
) | [static] |
Definition at line 1159 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and label.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(objtype); COMPARE_NODE_FIELD(objname); COMPARE_NODE_FIELD(objargs); COMPARE_STRING_FIELD(provider); COMPARE_STRING_FIELD(label); return true; }
static bool _equalSelectStmt | ( | const SelectStmt * | a, | |
const SelectStmt * | b | |||
) | [static] |
Definition at line 907 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(distinctClause); COMPARE_NODE_FIELD(intoClause); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(fromClause); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(groupClause); COMPARE_NODE_FIELD(havingClause); COMPARE_NODE_FIELD(windowClause); COMPARE_NODE_FIELD(valuesLists); COMPARE_NODE_FIELD(sortClause); COMPARE_NODE_FIELD(limitOffset); COMPARE_NODE_FIELD(limitCount); COMPARE_NODE_FIELD(lockingClause); COMPARE_NODE_FIELD(withClause); COMPARE_SCALAR_FIELD(op); COMPARE_SCALAR_FIELD(all); COMPARE_NODE_FIELD(larg); COMPARE_NODE_FIELD(rarg); return true; }
static bool _equalSetOperationStmt | ( | const SetOperationStmt * | a, | |
const SetOperationStmt * | b | |||
) | [static] |
Definition at line 932 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(op); COMPARE_SCALAR_FIELD(all); COMPARE_NODE_FIELD(larg); COMPARE_NODE_FIELD(rarg); COMPARE_NODE_FIELD(colTypes); COMPARE_NODE_FIELD(colTypmods); COMPARE_NODE_FIELD(colCollations); COMPARE_NODE_FIELD(groupClauses); return true; }
static bool _equalSetToDefault | ( | const SetToDefault * | a, | |
const SetToDefault * | b | |||
) | [static] |
Definition at line 657 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(typeId); COMPARE_SCALAR_FIELD(typeMod); COMPARE_SCALAR_FIELD(collation); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 2084 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(node); COMPARE_SCALAR_FIELD(sortby_dir); COMPARE_SCALAR_FIELD(sortby_nulls); COMPARE_NODE_FIELD(useOp); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalSortGroupClause | ( | const SortGroupClause * | a, | |
const SortGroupClause * | b | |||
) | [static] |
Definition at line 2253 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(tleSortGroupRef); COMPARE_SCALAR_FIELD(eqop); COMPARE_SCALAR_FIELD(sortop); COMPARE_SCALAR_FIELD(nulls_first); COMPARE_SCALAR_FIELD(hashable); return true; }
static bool _equalSpecialJoinInfo | ( | const SpecialJoinInfo * | a, | |
const SpecialJoinInfo * | b | |||
) | [static] |
Definition at line 780 of file equalfuncs.c.
References COMPARE_BITMAPSET_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_BITMAPSET_FIELD(min_lefthand); COMPARE_BITMAPSET_FIELD(min_righthand); COMPARE_BITMAPSET_FIELD(syn_lefthand); COMPARE_BITMAPSET_FIELD(syn_righthand); COMPARE_SCALAR_FIELD(jointype); COMPARE_SCALAR_FIELD(lhs_strict); COMPARE_SCALAR_FIELD(delay_upper_joins); COMPARE_NODE_FIELD(join_quals); return true; }
Definition at line 377 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(subLinkType); COMPARE_NODE_FIELD(testexpr); COMPARE_NODE_FIELD(operName); COMPARE_NODE_FIELD(subselect); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 389 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(subLinkType); COMPARE_NODE_FIELD(testexpr); COMPARE_NODE_FIELD(paramIds); COMPARE_SCALAR_FIELD(plan_id); COMPARE_STRING_FIELD(plan_name); COMPARE_SCALAR_FIELD(firstColType); COMPARE_SCALAR_FIELD(firstColTypmod); COMPARE_SCALAR_FIELD(firstColCollation); COMPARE_SCALAR_FIELD(useHashTable); COMPARE_SCALAR_FIELD(unknownEqFalse); COMPARE_NODE_FIELD(setParam); COMPARE_NODE_FIELD(parParam); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(startup_cost); COMPARE_SCALAR_FIELD(per_call_cost); return true; }
static bool _equalTableLikeClause | ( | const TableLikeClause * | a, | |
const TableLikeClause * | b | |||
) | [static] |
Definition at line 1104 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_SCALAR_FIELD(options); return true; }
static bool _equalTargetEntry | ( | const TargetEntry * | a, | |
const TargetEntry * | b | |||
) | [static] |
Definition at line 678 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(expr); COMPARE_SCALAR_FIELD(resno); COMPARE_STRING_FIELD(resname); COMPARE_SCALAR_FIELD(ressortgroupref); COMPARE_SCALAR_FIELD(resorigtbl); COMPARE_SCALAR_FIELD(resorigcol); COMPARE_SCALAR_FIELD(resjunk); return true; }
static bool _equalTransactionStmt | ( | const TransactionStmt * | a, | |
const TransactionStmt * | b | |||
) | [static] |
Definition at line 1327 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(kind); COMPARE_NODE_FIELD(options); COMPARE_STRING_FIELD(gid); return true; }
static bool _equalTruncateStmt | ( | const TruncateStmt * | a, | |
const TruncateStmt * | b | |||
) | [static] |
Definition at line 1138 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relations); COMPARE_SCALAR_FIELD(restart_seqs); COMPARE_SCALAR_FIELD(behavior); return true; }
Definition at line 2064 of file equalfuncs.c.
References arg, COMPARE_LOCATION_FIELD, and COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(arg); COMPARE_NODE_FIELD(typeName); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 2049 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(names); COMPARE_SCALAR_FIELD(typeOid); COMPARE_SCALAR_FIELD(setof); COMPARE_SCALAR_FIELD(pct_type); COMPARE_NODE_FIELD(typmods); COMPARE_SCALAR_FIELD(typemod); COMPARE_NODE_FIELD(arrayBounds); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalUnlistenStmt | ( | const UnlistenStmt * | a, | |
const UnlistenStmt * | b | |||
) | [static] |
Definition at line 1319 of file equalfuncs.c.
References COMPARE_STRING_FIELD.
Referenced by equal().
{ COMPARE_STRING_FIELD(conditionname); return true; }
static bool _equalUpdateStmt | ( | const UpdateStmt * | a, | |
const UpdateStmt * | b | |||
) | [static] |
Definition at line 894 of file equalfuncs.c.
References COMPARE_NODE_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(targetList); COMPARE_NODE_FIELD(whereClause); COMPARE_NODE_FIELD(fromClause); COMPARE_NODE_FIELD(returningList); COMPARE_NODE_FIELD(withClause); return true; }
static bool _equalVacuumStmt | ( | const VacuumStmt * | a, | |
const VacuumStmt * | b | |||
) | [static] |
Definition at line 1490 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(options); COMPARE_SCALAR_FIELD(freeze_min_age); COMPARE_SCALAR_FIELD(freeze_table_age); COMPARE_NODE_FIELD(relation); COMPARE_NODE_FIELD(va_cols); return true; }
Definition at line 2393 of file equalfuncs.c.
References COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, elog, ERROR, T_BitString, T_Float, T_Integer, T_Null, T_String, Value::type, and val.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(type); switch (a->type) { case T_Integer: COMPARE_SCALAR_FIELD(val.ival); break; case T_Float: case T_String: case T_BitString: COMPARE_STRING_FIELD(val.str); break; case T_Null: /* nothing to do */ break; default: elog(ERROR, "unrecognized node type: %d", (int) a->type); break; } return true; }
Definition at line 140 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(varno); COMPARE_SCALAR_FIELD(varattno); COMPARE_SCALAR_FIELD(vartype); COMPARE_SCALAR_FIELD(vartypmod); COMPARE_SCALAR_FIELD(varcollid); COMPARE_SCALAR_FIELD(varlevelsup); COMPARE_SCALAR_FIELD(varnoold); COMPARE_SCALAR_FIELD(varoattno); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalVariableSetStmt | ( | const VariableSetStmt * | a, | |
const VariableSetStmt * | b | |||
) | [static] |
Definition at line 1551 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(kind); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(is_local); return true; }
static bool _equalVariableShowStmt | ( | const VariableShowStmt * | a, | |
const VariableShowStmt * | b | |||
) | [static] |
Definition at line 1562 of file equalfuncs.c.
References COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); return true; }
Definition at line 1376 of file equalfuncs.c.
References COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(view); COMPARE_NODE_FIELD(aliases); COMPARE_NODE_FIELD(query); COMPARE_SCALAR_FIELD(replace); COMPARE_NODE_FIELD(options); return true; }
static bool _equalWindowClause | ( | const WindowClause * | a, | |
const WindowClause * | b | |||
) | [static] |
Definition at line 2265 of file equalfuncs.c.
References COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_STRING_FIELD(refname); COMPARE_NODE_FIELD(partitionClause); COMPARE_NODE_FIELD(orderClause); COMPARE_SCALAR_FIELD(frameOptions); COMPARE_NODE_FIELD(startOffset); COMPARE_NODE_FIELD(endOffset); COMPARE_SCALAR_FIELD(winref); COMPARE_SCALAR_FIELD(copiedOrder); return true; }
Definition at line 2096 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, and name.
Referenced by equal().
{ COMPARE_STRING_FIELD(name); COMPARE_STRING_FIELD(refname); COMPARE_NODE_FIELD(partitionClause); COMPARE_NODE_FIELD(orderClause); COMPARE_SCALAR_FIELD(frameOptions); COMPARE_NODE_FIELD(startOffset); COMPARE_NODE_FIELD(endOffset); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalWindowFunc | ( | const WindowFunc * | a, | |
const WindowFunc * | b | |||
) | [static] |
Definition at line 207 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(winfnoid); COMPARE_SCALAR_FIELD(wintype); COMPARE_SCALAR_FIELD(wincollid); COMPARE_SCALAR_FIELD(inputcollid); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(winref); COMPARE_SCALAR_FIELD(winstar); COMPARE_SCALAR_FIELD(winagg); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalWithClause | ( | const WithClause * | a, | |
const WithClause * | b | |||
) | [static] |
Definition at line 2292 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, and COMPARE_SCALAR_FIELD.
Referenced by equal().
{ COMPARE_NODE_FIELD(ctes); COMPARE_SCALAR_FIELD(recursive); COMPARE_LOCATION_FIELD(location); return true; }
Definition at line 598 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, COMPARE_STRING_FIELD, name, and xmloption.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(op); COMPARE_STRING_FIELD(name); COMPARE_NODE_FIELD(named_args); COMPARE_NODE_FIELD(arg_names); COMPARE_NODE_FIELD(args); COMPARE_SCALAR_FIELD(xmloption); COMPARE_SCALAR_FIELD(type); COMPARE_SCALAR_FIELD(typmod); COMPARE_LOCATION_FIELD(location); return true; }
static bool _equalXmlSerialize | ( | const XmlSerialize * | a, | |
const XmlSerialize * | b | |||
) | [static] |
Definition at line 2319 of file equalfuncs.c.
References COMPARE_LOCATION_FIELD, COMPARE_NODE_FIELD, COMPARE_SCALAR_FIELD, and xmloption.
Referenced by equal().
{ COMPARE_SCALAR_FIELD(xmloption); COMPARE_NODE_FIELD(expr); COMPARE_NODE_FIELD(typeName); COMPARE_LOCATION_FIELD(location); return true; }
bool equal | ( | const void * | a, | |
const void * | b | |||
) |
Definition at line 2423 of file equalfuncs.c.
References _equalA_ArrayExpr(), _equalA_Indirection(), _equalAccessPriv(), _equalAConst(), _equalAExpr(), _equalAggref(), _equalAIndices(), _equalAlias(), _equalAlterDatabaseSetStmt(), _equalAlterDatabaseStmt(), _equalAlterDefaultPrivilegesStmt(), _equalAlterDomainStmt(), _equalAlterEnumStmt(), _equalAlterEventTrigStmt(), _equalAlterExtensionContentsStmt(), _equalAlterExtensionStmt(), _equalAlterFdwStmt(), _equalAlterForeignServerStmt(), _equalAlterFunctionStmt(), _equalAlternativeSubPlan(), _equalAlterObjectSchemaStmt(), _equalAlterOpFamilyStmt(), _equalAlterOwnerStmt(), _equalAlterRoleSetStmt(), _equalAlterRoleStmt(), _equalAlterSeqStmt(), _equalAlterTableCmd(), _equalAlterTableSpaceOptionsStmt(), _equalAlterTableStmt(), _equalAlterTSConfigurationStmt(), _equalAlterTSDictionaryStmt(), _equalAlterUserMappingStmt(), _equalAppendRelInfo(), _equalArrayCoerceExpr(), _equalArrayExpr(), _equalArrayRef(), _equalAStar(), _equalBooleanTest(), _equalBoolExpr(), _equalCaseExpr(), _equalCaseTestExpr(), _equalCaseWhen(), _equalClosePortalStmt(), _equalClusterStmt(), _equalCoalesceExpr(), _equalCoerceToDomain(), _equalCoerceToDomainValue(), _equalCoerceViaIO(), _equalCollateClause(), _equalCollateExpr(), _equalColumnDef(), _equalColumnRef(), _equalCommentStmt(), _equalCommonTableExpr(), _equalCompositeTypeStmt(), _equalConst(), _equalConstraint(), _equalConstraintsSetStmt(), _equalConvertRowtypeExpr(), _equalCopyStmt(), _equalCreateCastStmt(), _equalCreateConversionStmt(), _equalCreatedbStmt(), _equalCreateDomainStmt(), _equalCreateEnumStmt(), _equalCreateEventTrigStmt(), _equalCreateExtensionStmt(), _equalCreateFdwStmt(), _equalCreateForeignServerStmt(), _equalCreateForeignTableStmt(), _equalCreateFunctionStmt(), _equalCreateOpClassItem(), _equalCreateOpClassStmt(), _equalCreateOpFamilyStmt(), _equalCreatePLangStmt(), _equalCreateRangeStmt(), _equalCreateRoleStmt(), _equalCreateSchemaStmt(), _equalCreateSeqStmt(), _equalCreateStmt(), _equalCreateTableAsStmt(), _equalCreateTableSpaceStmt(), _equalCreateTrigStmt(), _equalCreateUserMappingStmt(), _equalCurrentOfExpr(), _equalDeallocateStmt(), _equalDeclareCursorStmt(), _equalDefElem(), _equalDefineStmt(), _equalDeleteStmt(), _equalDiscardStmt(), _equalDistinctExpr(), _equalDoStmt(), _equalDropdbStmt(), _equalDropOwnedStmt(), _equalDropRoleStmt(), _equalDropStmt(), _equalDropTableSpaceStmt(), _equalDropUserMappingStmt(), _equalExecuteStmt(), _equalExplainStmt(), _equalFetchStmt(), _equalFieldSelect(), _equalFieldStore(), _equalFromExpr(), _equalFuncCall(), _equalFuncExpr(), _equalFunctionParameter(), _equalFuncWithArgs(), _equalGrantRoleStmt(), _equalGrantStmt(), _equalIndexElem(), _equalIndexStmt(), _equalInsertStmt(), _equalIntoClause(), _equalJoinExpr(), _equalLateralJoinInfo(), _equalList(), _equalListenStmt(), _equalLoadStmt(), _equalLockingClause(), _equalLockStmt(), _equalMinMaxExpr(), _equalNamedArgExpr(), _equalNotifyStmt(), _equalNullIfExpr(), _equalNullTest(), _equalOpExpr(), _equalParam(), _equalParamRef(), _equalPathKey(), _equalPlaceHolderInfo(), _equalPlaceHolderVar(), _equalPrepareStmt(), _equalPrivGrantee(), _equalQuery(), _equalRangeFunction(), _equalRangeSubselect(), _equalRangeTblEntry(), _equalRangeTblRef(), _equalRangeVar(), _equalReassignOwnedStmt(), _equalRefreshMatViewStmt(), _equalReindexStmt(), _equalRelabelType(), _equalRenameStmt(), _equalResTarget(), _equalRestrictInfo(), _equalRowCompareExpr(), _equalRowExpr(), _equalRowMarkClause(), _equalRuleStmt(), _equalScalarArrayOpExpr(), _equalSecLabelStmt(), _equalSelectStmt(), _equalSetOperationStmt(), _equalSetToDefault(), _equalSortBy(), _equalSortGroupClause(), _equalSpecialJoinInfo(), _equalSubLink(), _equalSubPlan(), _equalTableLikeClause(), _equalTargetEntry(), _equalTransactionStmt(), _equalTruncateStmt(), _equalTypeCast(), _equalTypeName(), _equalUnlistenStmt(), _equalUpdateStmt(), _equalVacuumStmt(), _equalValue(), _equalVar(), _equalVariableSetStmt(), _equalVariableShowStmt(), _equalViewStmt(), _equalWindowClause(), _equalWindowDef(), _equalWindowFunc(), _equalWithClause(), _equalXmlExpr(), _equalXmlSerialize(), elog, ERROR, nodeTag, NULL, T_A_ArrayExpr, T_A_Const, T_A_Expr, T_A_Indices, T_A_Indirection, T_A_Star, T_AccessPriv, T_Aggref, T_Alias, T_AlterDatabaseSetStmt, T_AlterDatabaseStmt, T_AlterDefaultPrivilegesStmt, T_AlterDomainStmt, T_AlterEnumStmt, T_AlterEventTrigStmt, T_AlterExtensionContentsStmt, T_AlterExtensionStmt, T_AlterFdwStmt, T_AlterForeignServerStmt, T_AlterFunctionStmt, T_AlternativeSubPlan, T_AlterObjectSchemaStmt, T_AlterOpFamilyStmt, T_AlterOwnerStmt, T_AlterRoleSetStmt, T_AlterRoleStmt, T_AlterSeqStmt, T_AlterTableCmd, T_AlterTableSpaceOptionsStmt, T_AlterTableStmt, T_AlterTSConfigurationStmt, T_AlterTSDictionaryStmt, T_AlterUserMappingStmt, T_AppendRelInfo, T_ArrayCoerceExpr, T_ArrayExpr, T_ArrayRef, T_BitString, T_BooleanTest, T_BoolExpr, T_CaseExpr, T_CaseTestExpr, T_CaseWhen, T_CheckPointStmt, T_ClosePortalStmt, T_ClusterStmt, T_CoalesceExpr, T_CoerceToDomain, T_CoerceToDomainValue, T_CoerceViaIO, T_CollateClause, T_CollateExpr, T_ColumnDef, T_ColumnRef, T_CommentStmt, T_CommonTableExpr, T_CompositeTypeStmt, T_Const, T_Constraint, T_ConstraintsSetStmt, T_ConvertRowtypeExpr, T_CopyStmt, T_CreateCastStmt, T_CreateConversionStmt, T_CreatedbStmt, T_CreateDomainStmt, T_CreateEnumStmt, T_CreateEventTrigStmt, T_CreateExtensionStmt, T_CreateFdwStmt, T_CreateForeignServerStmt, T_CreateForeignTableStmt, T_CreateFunctionStmt, T_CreateOpClassItem, T_CreateOpClassStmt, T_CreateOpFamilyStmt, T_CreatePLangStmt, T_CreateRangeStmt, T_CreateRoleStmt, T_CreateSchemaStmt, T_CreateSeqStmt, T_CreateStmt, T_CreateTableAsStmt, T_CreateTableSpaceStmt, T_CreateTrigStmt, T_CreateUserMappingStmt, T_CurrentOfExpr, T_DeallocateStmt, T_DeclareCursorStmt, T_DefElem, T_DefineStmt, T_DeleteStmt, T_DiscardStmt, T_DistinctExpr, T_DoStmt, T_DropdbStmt, T_DropOwnedStmt, T_DropRoleStmt, T_DropStmt, T_DropTableSpaceStmt, T_DropUserMappingStmt, T_ExecuteStmt, T_ExplainStmt, T_FetchStmt, T_FieldSelect, T_FieldStore, T_Float, T_FromExpr, T_FuncCall, T_FuncExpr, T_FunctionParameter, T_FuncWithArgs, T_GrantRoleStmt, T_GrantStmt, T_IndexElem, T_IndexStmt, T_InsertStmt, T_Integer, T_IntList, T_IntoClause, T_JoinExpr, T_LateralJoinInfo, T_List, T_ListenStmt, T_LoadStmt, T_LockingClause, T_LockStmt, T_MinMaxExpr, T_NamedArgExpr, T_NotifyStmt, T_Null, T_NullIfExpr, T_NullTest, T_OidList, T_OpExpr, T_Param, T_ParamRef, T_PathKey, T_PlaceHolderInfo, T_PlaceHolderVar, T_PrepareStmt, T_PrivGrantee, T_Query, T_RangeFunction, T_RangeSubselect, T_RangeTblEntry, T_RangeTblRef, T_RangeVar, T_ReassignOwnedStmt, T_RefreshMatViewStmt, T_ReindexStmt, T_RelabelType, T_RenameStmt, T_ResTarget, T_RestrictInfo, T_RowCompareExpr, T_RowExpr, T_RowMarkClause, T_RuleStmt, T_ScalarArrayOpExpr, T_SecLabelStmt, T_SelectStmt, T_SetOperationStmt, T_SetToDefault, T_SortBy, T_SortGroupClause, T_SpecialJoinInfo, T_String, T_SubLink, T_SubPlan, T_TableLikeClause, T_TargetEntry, T_TransactionStmt, T_TruncateStmt, T_TypeCast, T_TypeName, T_UnlistenStmt, T_UpdateStmt, T_VacuumStmt, T_Var, T_VariableSetStmt, T_VariableShowStmt, T_ViewStmt, T_WindowClause, T_WindowDef, T_WindowFunc, T_WithClause, T_XmlExpr, and T_XmlSerialize.
Referenced by _equalAConst(), _equalList(), add_unique_group_var(), addRangeClause(), btree_predicate_proof(), check_ungrouped_columns_walker(), convert_subquery_pathkeys(), ConvertTriggerToFK(), cube_out(), deparseParam(), deparseVar(), ec_member_matches_foreign(), equalRuleLocks(), examine_variable(), ExecInitAgg(), ExecInitWindowAgg(), exprs_known_equal(), find_ec_member_for_tle(), find_list_position(), find_minmax_aggs_walker(), findTargetlistEntrySQL92(), findTargetlistEntrySQL99(), fix_indexqual_operand(), get_eclass_for_sort_expr(), list_delete(), list_member(), list_member_strip(), match_index_to_operand(), MergeAttributes(), MergeCheckConstraint(), MergeWithExistingConstraint(), OverrideSearchPathMatchesCurrent(), pg_parse_query(), pg_plan_query(), pg_rewrite_query(), predicate_implied_by_simple_clause(), predicate_refuted_by_recurse(), predicate_refuted_by_simple_clause(), preprocess_groupclause(), process_duplicate_ors(), process_equivalence(), process_matched_tle(), process_subquery_nestloop_params(), reconsider_full_join_clause(), reconsider_outer_join_clause(), recurse_union_children(), replace_aggs_with_params_mutator(), replace_nestloop_params_mutator(), search_indexed_tlist_for_sortgroupref(), select_active_windows(), tlist_member(), tlist_member_ignore_relabel(), tlist_same_exprs(), transformIndexConstraints(), transformWindowFuncCall(), and trivial_subqueryscan().
{ bool retval; if (a == b) return true; /* * note that a!=b, so only one of them can be NULL */ if (a == NULL || b == NULL) return false; /* * are they the same type of nodes? */ if (nodeTag(a) != nodeTag(b)) return false; switch (nodeTag(a)) { /* * PRIMITIVE NODES */ case T_Alias: retval = _equalAlias(a, b); break; case T_RangeVar: retval = _equalRangeVar(a, b); break; case T_IntoClause: retval = _equalIntoClause(a, b); break; case T_Var: retval = _equalVar(a, b); break; case T_Const: retval = _equalConst(a, b); break; case T_Param: retval = _equalParam(a, b); break; case T_Aggref: retval = _equalAggref(a, b); break; case T_WindowFunc: retval = _equalWindowFunc(a, b); break; case T_ArrayRef: retval = _equalArrayRef(a, b); break; case T_FuncExpr: retval = _equalFuncExpr(a, b); break; case T_NamedArgExpr: retval = _equalNamedArgExpr(a, b); break; case T_OpExpr: retval = _equalOpExpr(a, b); break; case T_DistinctExpr: retval = _equalDistinctExpr(a, b); break; case T_NullIfExpr: retval = _equalNullIfExpr(a, b); break; case T_ScalarArrayOpExpr: retval = _equalScalarArrayOpExpr(a, b); break; case T_BoolExpr: retval = _equalBoolExpr(a, b); break; case T_SubLink: retval = _equalSubLink(a, b); break; case T_SubPlan: retval = _equalSubPlan(a, b); break; case T_AlternativeSubPlan: retval = _equalAlternativeSubPlan(a, b); break; case T_FieldSelect: retval = _equalFieldSelect(a, b); break; case T_FieldStore: retval = _equalFieldStore(a, b); break; case T_RelabelType: retval = _equalRelabelType(a, b); break; case T_CoerceViaIO: retval = _equalCoerceViaIO(a, b); break; case T_ArrayCoerceExpr: retval = _equalArrayCoerceExpr(a, b); break; case T_ConvertRowtypeExpr: retval = _equalConvertRowtypeExpr(a, b); break; case T_CollateExpr: retval = _equalCollateExpr(a, b); break; case T_CaseExpr: retval = _equalCaseExpr(a, b); break; case T_CaseWhen: retval = _equalCaseWhen(a, b); break; case T_CaseTestExpr: retval = _equalCaseTestExpr(a, b); break; case T_ArrayExpr: retval = _equalArrayExpr(a, b); break; case T_RowExpr: retval = _equalRowExpr(a, b); break; case T_RowCompareExpr: retval = _equalRowCompareExpr(a, b); break; case T_CoalesceExpr: retval = _equalCoalesceExpr(a, b); break; case T_MinMaxExpr: retval = _equalMinMaxExpr(a, b); break; case T_XmlExpr: retval = _equalXmlExpr(a, b); break; case T_NullTest: retval = _equalNullTest(a, b); break; case T_BooleanTest: retval = _equalBooleanTest(a, b); break; case T_CoerceToDomain: retval = _equalCoerceToDomain(a, b); break; case T_CoerceToDomainValue: retval = _equalCoerceToDomainValue(a, b); break; case T_SetToDefault: retval = _equalSetToDefault(a, b); break; case T_CurrentOfExpr: retval = _equalCurrentOfExpr(a, b); break; case T_TargetEntry: retval = _equalTargetEntry(a, b); break; case T_RangeTblRef: retval = _equalRangeTblRef(a, b); break; case T_FromExpr: retval = _equalFromExpr(a, b); break; case T_JoinExpr: retval = _equalJoinExpr(a, b); break; /* * RELATION NODES */ case T_PathKey: retval = _equalPathKey(a, b); break; case T_RestrictInfo: retval = _equalRestrictInfo(a, b); break; case T_PlaceHolderVar: retval = _equalPlaceHolderVar(a, b); break; case T_SpecialJoinInfo: retval = _equalSpecialJoinInfo(a, b); break; case T_LateralJoinInfo: retval = _equalLateralJoinInfo(a, b); break; case T_AppendRelInfo: retval = _equalAppendRelInfo(a, b); break; case T_PlaceHolderInfo: retval = _equalPlaceHolderInfo(a, b); break; case T_List: case T_IntList: case T_OidList: retval = _equalList(a, b); break; case T_Integer: case T_Float: case T_String: case T_BitString: case T_Null: retval = _equalValue(a, b); break; /* * PARSE NODES */ case T_Query: retval = _equalQuery(a, b); break; case T_InsertStmt: retval = _equalInsertStmt(a, b); break; case T_DeleteStmt: retval = _equalDeleteStmt(a, b); break; case T_UpdateStmt: retval = _equalUpdateStmt(a, b); break; case T_SelectStmt: retval = _equalSelectStmt(a, b); break; case T_SetOperationStmt: retval = _equalSetOperationStmt(a, b); break; case T_AlterTableStmt: retval = _equalAlterTableStmt(a, b); break; case T_AlterTableCmd: retval = _equalAlterTableCmd(a, b); break; case T_AlterDomainStmt: retval = _equalAlterDomainStmt(a, b); break; case T_GrantStmt: retval = _equalGrantStmt(a, b); break; case T_GrantRoleStmt: retval = _equalGrantRoleStmt(a, b); break; case T_AlterDefaultPrivilegesStmt: retval = _equalAlterDefaultPrivilegesStmt(a, b); break; case T_DeclareCursorStmt: retval = _equalDeclareCursorStmt(a, b); break; case T_ClosePortalStmt: retval = _equalClosePortalStmt(a, b); break; case T_ClusterStmt: retval = _equalClusterStmt(a, b); break; case T_CopyStmt: retval = _equalCopyStmt(a, b); break; case T_CreateStmt: retval = _equalCreateStmt(a, b); break; case T_TableLikeClause: retval = _equalTableLikeClause(a, b); break; case T_DefineStmt: retval = _equalDefineStmt(a, b); break; case T_DropStmt: retval = _equalDropStmt(a, b); break; case T_TruncateStmt: retval = _equalTruncateStmt(a, b); break; case T_CommentStmt: retval = _equalCommentStmt(a, b); break; case T_SecLabelStmt: retval = _equalSecLabelStmt(a, b); break; case T_FetchStmt: retval = _equalFetchStmt(a, b); break; case T_IndexStmt: retval = _equalIndexStmt(a, b); break; case T_CreateFunctionStmt: retval = _equalCreateFunctionStmt(a, b); break; case T_FunctionParameter: retval = _equalFunctionParameter(a, b); break; case T_AlterFunctionStmt: retval = _equalAlterFunctionStmt(a, b); break; case T_DoStmt: retval = _equalDoStmt(a, b); break; case T_RenameStmt: retval = _equalRenameStmt(a, b); break; case T_AlterObjectSchemaStmt: retval = _equalAlterObjectSchemaStmt(a, b); break; case T_AlterOwnerStmt: retval = _equalAlterOwnerStmt(a, b); break; case T_RuleStmt: retval = _equalRuleStmt(a, b); break; case T_NotifyStmt: retval = _equalNotifyStmt(a, b); break; case T_ListenStmt: retval = _equalListenStmt(a, b); break; case T_UnlistenStmt: retval = _equalUnlistenStmt(a, b); break; case T_TransactionStmt: retval = _equalTransactionStmt(a, b); break; case T_CompositeTypeStmt: retval = _equalCompositeTypeStmt(a, b); break; case T_CreateEnumStmt: retval = _equalCreateEnumStmt(a, b); break; case T_CreateRangeStmt: retval = _equalCreateRangeStmt(a, b); break; case T_AlterEnumStmt: retval = _equalAlterEnumStmt(a, b); break; case T_ViewStmt: retval = _equalViewStmt(a, b); break; case T_LoadStmt: retval = _equalLoadStmt(a, b); break; case T_CreateDomainStmt: retval = _equalCreateDomainStmt(a, b); break; case T_CreateOpClassStmt: retval = _equalCreateOpClassStmt(a, b); break; case T_CreateOpClassItem: retval = _equalCreateOpClassItem(a, b); break; case T_CreateOpFamilyStmt: retval = _equalCreateOpFamilyStmt(a, b); break; case T_AlterOpFamilyStmt: retval = _equalAlterOpFamilyStmt(a, b); break; case T_CreatedbStmt: retval = _equalCreatedbStmt(a, b); break; case T_AlterDatabaseStmt: retval = _equalAlterDatabaseStmt(a, b); break; case T_AlterDatabaseSetStmt: retval = _equalAlterDatabaseSetStmt(a, b); break; case T_DropdbStmt: retval = _equalDropdbStmt(a, b); break; case T_VacuumStmt: retval = _equalVacuumStmt(a, b); break; case T_ExplainStmt: retval = _equalExplainStmt(a, b); break; case T_CreateTableAsStmt: retval = _equalCreateTableAsStmt(a, b); break; case T_RefreshMatViewStmt: retval = _equalRefreshMatViewStmt(a, b); break; case T_CreateSeqStmt: retval = _equalCreateSeqStmt(a, b); break; case T_AlterSeqStmt: retval = _equalAlterSeqStmt(a, b); break; case T_VariableSetStmt: retval = _equalVariableSetStmt(a, b); break; case T_VariableShowStmt: retval = _equalVariableShowStmt(a, b); break; case T_DiscardStmt: retval = _equalDiscardStmt(a, b); break; case T_CreateTableSpaceStmt: retval = _equalCreateTableSpaceStmt(a, b); break; case T_DropTableSpaceStmt: retval = _equalDropTableSpaceStmt(a, b); break; case T_AlterTableSpaceOptionsStmt: retval = _equalAlterTableSpaceOptionsStmt(a, b); break; case T_CreateExtensionStmt: retval = _equalCreateExtensionStmt(a, b); break; case T_AlterExtensionStmt: retval = _equalAlterExtensionStmt(a, b); break; case T_AlterExtensionContentsStmt: retval = _equalAlterExtensionContentsStmt(a, b); break; case T_CreateFdwStmt: retval = _equalCreateFdwStmt(a, b); break; case T_AlterFdwStmt: retval = _equalAlterFdwStmt(a, b); break; case T_CreateForeignServerStmt: retval = _equalCreateForeignServerStmt(a, b); break; case T_AlterForeignServerStmt: retval = _equalAlterForeignServerStmt(a, b); break; case T_CreateUserMappingStmt: retval = _equalCreateUserMappingStmt(a, b); break; case T_AlterUserMappingStmt: retval = _equalAlterUserMappingStmt(a, b); break; case T_DropUserMappingStmt: retval = _equalDropUserMappingStmt(a, b); break; case T_CreateForeignTableStmt: retval = _equalCreateForeignTableStmt(a, b); break; case T_CreateTrigStmt: retval = _equalCreateTrigStmt(a, b); break; case T_CreateEventTrigStmt: retval = _equalCreateEventTrigStmt(a, b); break; case T_AlterEventTrigStmt: retval = _equalAlterEventTrigStmt(a, b); break; case T_CreatePLangStmt: retval = _equalCreatePLangStmt(a, b); break; case T_CreateRoleStmt: retval = _equalCreateRoleStmt(a, b); break; case T_AlterRoleStmt: retval = _equalAlterRoleStmt(a, b); break; case T_AlterRoleSetStmt: retval = _equalAlterRoleSetStmt(a, b); break; case T_DropRoleStmt: retval = _equalDropRoleStmt(a, b); break; case T_LockStmt: retval = _equalLockStmt(a, b); break; case T_ConstraintsSetStmt: retval = _equalConstraintsSetStmt(a, b); break; case T_ReindexStmt: retval = _equalReindexStmt(a, b); break; case T_CheckPointStmt: retval = true; break; case T_CreateSchemaStmt: retval = _equalCreateSchemaStmt(a, b); break; case T_CreateConversionStmt: retval = _equalCreateConversionStmt(a, b); break; case T_CreateCastStmt: retval = _equalCreateCastStmt(a, b); break; case T_PrepareStmt: retval = _equalPrepareStmt(a, b); break; case T_ExecuteStmt: retval = _equalExecuteStmt(a, b); break; case T_DeallocateStmt: retval = _equalDeallocateStmt(a, b); break; case T_DropOwnedStmt: retval = _equalDropOwnedStmt(a, b); break; case T_ReassignOwnedStmt: retval = _equalReassignOwnedStmt(a, b); break; case T_AlterTSDictionaryStmt: retval = _equalAlterTSDictionaryStmt(a, b); break; case T_AlterTSConfigurationStmt: retval = _equalAlterTSConfigurationStmt(a, b); break; case T_A_Expr: retval = _equalAExpr(a, b); break; case T_ColumnRef: retval = _equalColumnRef(a, b); break; case T_ParamRef: retval = _equalParamRef(a, b); break; case T_A_Const: retval = _equalAConst(a, b); break; case T_FuncCall: retval = _equalFuncCall(a, b); break; case T_A_Star: retval = _equalAStar(a, b); break; case T_A_Indices: retval = _equalAIndices(a, b); break; case T_A_Indirection: retval = _equalA_Indirection(a, b); break; case T_A_ArrayExpr: retval = _equalA_ArrayExpr(a, b); break; case T_ResTarget: retval = _equalResTarget(a, b); break; case T_TypeCast: retval = _equalTypeCast(a, b); break; case T_CollateClause: retval = _equalCollateClause(a, b); break; case T_SortBy: retval = _equalSortBy(a, b); break; case T_WindowDef: retval = _equalWindowDef(a, b); break; case T_RangeSubselect: retval = _equalRangeSubselect(a, b); break; case T_RangeFunction: retval = _equalRangeFunction(a, b); break; case T_TypeName: retval = _equalTypeName(a, b); break; case T_IndexElem: retval = _equalIndexElem(a, b); break; case T_ColumnDef: retval = _equalColumnDef(a, b); break; case T_Constraint: retval = _equalConstraint(a, b); break; case T_DefElem: retval = _equalDefElem(a, b); break; case T_LockingClause: retval = _equalLockingClause(a, b); break; case T_RangeTblEntry: retval = _equalRangeTblEntry(a, b); break; case T_SortGroupClause: retval = _equalSortGroupClause(a, b); break; case T_WindowClause: retval = _equalWindowClause(a, b); break; case T_RowMarkClause: retval = _equalRowMarkClause(a, b); break; case T_WithClause: retval = _equalWithClause(a, b); break; case T_CommonTableExpr: retval = _equalCommonTableExpr(a, b); break; case T_PrivGrantee: retval = _equalPrivGrantee(a, b); break; case T_FuncWithArgs: retval = _equalFuncWithArgs(a, b); break; case T_AccessPriv: retval = _equalAccessPriv(a, b); break; case T_XmlSerialize: retval = _equalXmlSerialize(a, b); break; default: elog(ERROR, "unrecognized node type: %d", (int) nodeTag(a)); retval = false; /* keep compiler quiet */ break; } return retval; }