From 1518675bacc07615d0b4ff820482f8db6f1b5b48 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 29 Nov 2023 14:05:12 +0000 Subject: [PATCH] postgres: use modified hash --- pgxn/neon/libpagestore.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pgxn/neon/libpagestore.c b/pgxn/neon/libpagestore.c index e2a59817e9..b608528af7 100644 --- a/pgxn/neon/libpagestore.c +++ b/pgxn/neon/libpagestore.c @@ -232,14 +232,10 @@ get_shard_number(BufferTag* tag) uint32 hash; #if PG_MAJORVERSION_NUM < 16 - hash = murmurhash32(tag->rnode.spcNode); - hash = hash_combine(hash, murmurhash32(tag->rnode.dbNode)); - hash = hash_combine(hash, murmurhash32(tag->rnode.relNode)); + hash = murmurhash32(tag->rnode.relNode); hash = hash_combine(hash, murmurhash32(tag->blockNum/(MB/BLCKSZ)/stripe_size)); #else - hash = murmurhash32(tag->spcOid); - hash = hash_combine(hash, murmurhash32(tag->dbOid)); - hash = hash_combine(hash, murmurhash32(tag->relNumber)); + hash = murmurhash32(tag->relNumber); hash = hash_combine(hash, murmurhash32(tag->blockNum/(MB/BLCKSZ)/stripe_size)); #endif