pgsql: Reduce the default size of the local lock hash table.

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reduce the default size of the local lock hash table.
Date: 2004-11-20 20:16:56
Message-ID: 20041120201656.453A13A4DD7@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Reduce the default size of the local lock hash table. There's usually
no need for it to be nearly as big as the global hash table, and since
it's not in shared memory it can grow if it does need to be bigger.
By reducing the size, we speed up hash_seq_search(), which saves a
significant fraction of subtransaction entry/exit overhead.

Modified Files:
--------------
pgsql/src/backend/storage/lmgr:
lock.c (r1.143 -> r1.144)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/lmgr/lock.c.diff?r1=1.143&r2=1.144)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-11-20 20:19:53 pgsql: Avoid scanning the relcache during AtEOSubXact_RelationCache when
Previous Message Tom Lane 2004-11-20 19:07:54 pgsql: Fix plperl's elog() function to convert elog(ERROR) into Perl