aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/mac8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/utils/adt/mac8.c')
-rw-r--r--src/backend/utils/adt/mac8.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/utils/adt/mac8.c b/src/backend/utils/adt/mac8.c
index 482d1fb5bf3..0410b9888af 100644
--- a/src/backend/utils/adt/mac8.c
+++ b/src/backend/utils/adt/mac8.c
@@ -407,6 +407,15 @@ hashmacaddr8(PG_FUNCTION_ARGS)
return hash_any((unsigned char *) key, sizeof(macaddr8));
}
+Datum
+hashmacaddr8extended(PG_FUNCTION_ARGS)
+{
+ macaddr8 *key = PG_GETARG_MACADDR8_P(0);
+
+ return hash_any_extended((unsigned char *) key, sizeof(macaddr8),
+ PG_GETARG_INT64(1));
+}
+
/*
* Arithmetic functions: bitwise NOT, AND, OR.
*/