From f602cf49c2f614ef7450df30bab9df29842bd359 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 4 Feb 2019 21:29:31 +0100 Subject: [PATCH] Remove unused macro Use was removed in 6d46f4783efe457f74816a75173eb23ed8930020 but definition was forgotten. --- src/backend/access/hash/hashpage.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/backend/access/hash/hashpage.c b/src/backend/access/hash/hashpage.c index 0f85256b7e..b7adfdb826 100644 --- a/src/backend/access/hash/hashpage.c +++ b/src/backend/access/hash/hashpage.c @@ -48,16 +48,6 @@ static void _hash_splitbucket(Relation rel, Buffer metabuf, static void log_split_page(Relation rel, Buffer buf); -/* - * We use high-concurrency locking on hash indexes (see README for an overview - * of the locking rules). However, we can skip taking lmgr locks when the - * index is local to the current backend (ie, either temp or new in the - * current transaction). No one else can see it, so there's no reason to - * take locks. We still take buffer-level locks, but not lmgr locks. - */ -#define USELOCKING(rel) (!RELATION_IS_LOCAL(rel)) - - /* * _hash_getbuf() -- Get a buffer by block number for read or write. * -- 2.50.0