Increase maximum number of freelists from 16 to 64, per testing.
authorRobert Haas <[email protected]>
Wed, 1 Aug 2012 17:43:28 +0000 (17:43 +0000)
committerRobert Haas <[email protected]>
Wed, 1 Aug 2012 17:43:28 +0000 (17:43 +0000)
src/backend/utils/hash/chash.c

index dba906586e276eb1318ada5af2a571abe62e82b3..e2f352b7471ded60785a2f0576c38a23ea7f248f 100644 (file)
@@ -242,7 +242,7 @@ CHashBootstrap(CHashDescriptor *desc)
         * having more free lists than garbage lists; if the garbage lists aren't
         * causing contention, an equal number of free lists shouldn't either.
         */
-       table->nfreelists = Min(table->ngarbage, 16);
+       table->nfreelists = Min(table->ngarbage, 64);
 
        /*
         * To make garbage collection efficient, we overallocate.  Normally, we