From 4d0f669f3c10378ee742296dae26baaff62eb9a6 Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Thu, 11 Nov 2004 00:32:50 +0000 Subject: [PATCH] Remove obsolete comment from btbuild() and hashbuild(): we no longer use a global variable to control building indexes. --- src/backend/access/hash/hash.c | 7 +------ src/backend/access/nbtree/nbtree.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/backend/access/hash/hash.c b/src/backend/access/hash/hash.c index 40b05720fb..0ca2343cea 100644 --- a/src/backend/access/hash/hash.c +++ b/src/backend/access/hash/hash.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/hash/hash.c,v 1.73 2004/08/29 05:06:40 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/hash/hash.c,v 1.74 2004/11/11 00:32:40 neilc Exp $ * * NOTES * This file contains only the public interface routines. @@ -44,11 +44,6 @@ static void hashbuildCallback(Relation index, /* * hashbuild() -- build a new hash index. - * - * We use a global variable to record the fact that we're creating - * a new index. This is used to avoid high-concurrency locking, - * since the index won't be visible until this transaction commits - * and since building is guaranteed to be single-threaded. */ Datum hashbuild(PG_FUNCTION_ARGS) diff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.c index 7c86aa8a2e..92cd0f09ce 100644 --- a/src/backend/access/nbtree/nbtree.c +++ b/src/backend/access/nbtree/nbtree.c @@ -12,7 +12,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/nbtree/nbtree.c,v 1.120 2004/08/29 04:12:21 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/nbtree/nbtree.c,v 1.121 2004/11/11 00:32:50 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -60,11 +60,6 @@ static void btbuildCallback(Relation index, /* * btbuild() -- build a new btree index. - * - * We use a global variable to record the fact that we're creating - * a new index. This is used to avoid high-concurrency locking, - * since the index won't be visible until this transaction commits - * and since building is guaranteed to be single-threaded. */ Datum btbuild(PG_FUNCTION_ARGS) -- 2.40.0