diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 20:16:54 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 20:16:54 +0000 |
commit | 8ecbc46bdb5815a52b8a0f2c88b891ad49ce50dd (patch) | |
tree | 51b034e042fa4d19e4569ee33fe79f9aab0eb92b | |
parent | 193a97c2d32afc046ee20f34035906709bf852a0 (diff) | |
download | postgresql-8ecbc46bdb5815a52b8a0f2c88b891ad49ce50dd.tar.gz postgresql-8ecbc46bdb5815a52b8a0f2c88b891ad49ce50dd.zip |
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.
-rw-r--r-- | src/backend/storage/lmgr/lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 6fcb4d43432..4cf3302de5d 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.143 2004/10/25 00:46:41 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.144 2004/11/20 20:16:54 tgl Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -331,7 +331,7 @@ LockMethodTableInit(const char *tabName, sprintf(shmemName, "%s (locallock hash)", tabName); LockMethodLocalHash[lockmethodid] = hash_create(shmemName, - init_table_size, + 128, &info, hash_flags); |