summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/hash.h4
-rw-r--r--src/include/pgxc/locator.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h
index 39337194e2..f6070d21e6 100644
--- a/src/include/access/hash.h
+++ b/src/include/access/hash.h
@@ -353,4 +353,8 @@ extern OffsetNumber _hash_binsearch_last(Page page, uint32 hash_value);
extern void hash_redo(XLogRecPtr lsn, XLogRecord *record);
extern void hash_desc(StringInfo buf, uint8 xl_info, char *rec);
+#ifdef PGXC
+extern Datum compute_hash(Oid type, Datum value, int *pErr);
+#endif
+
#endif /* HASH_H */
diff --git a/src/include/pgxc/locator.h b/src/include/pgxc/locator.h
index 9f669d92e0..9ee983c8cf 100644
--- a/src/include/pgxc/locator.h
+++ b/src/include/pgxc/locator.h
@@ -100,8 +100,7 @@ extern char ConvertToLocatorType(int disttype);
extern char *GetRelationHashColumn(RelationLocInfo *rel_loc_info);
extern RelationLocInfo *GetRelationLocInfo(Oid relid);
extern RelationLocInfo *CopyRelationLocInfo(RelationLocInfo *src_info);
-extern ExecNodes *GetRelationNodes(RelationLocInfo *rel_loc_info, long *partValue,
- RelationAccessType accessType);
+extern ExecNodes *GetRelationNodes(RelationLocInfo *rel_loc_info, Datum valueForDistCol, Oid typeOfValueForDistCol, RelationAccessType accessType);
extern bool IsHashColumn(RelationLocInfo *rel_loc_info, char *part_col_name);
extern bool IsHashColumnForRelId(Oid relid, char *part_col_name);
extern int GetRoundRobinNode(Oid relid);