Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ecbc46

Browse files
committed
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 sinceit'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 asignificant fraction of subtransaction entry/exit overhead.
1 parent193a97c commit8ecbc46

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-2
lines changed

‎src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.143 2004/10/25 00:46:41 neilc Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.144 2004/11/20 20:16:54 tgl Exp $
1212
*
1313
* NOTES
1414
* Outside modules can create a lock table and acquire/release
@@ -331,7 +331,7 @@ LockMethodTableInit(const char *tabName,
331331

332332
sprintf(shmemName,"%s (locallock hash)",tabName);
333333
LockMethodLocalHash[lockmethodid]=hash_create(shmemName,
334-
init_table_size,
334+
128,
335335
&info,
336336
hash_flags);
337337

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp