aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-04-15 14:57:51 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-04-15 15:07:36 +0300
commit4c37c1e3b2a7ba7b5519e5e366720e7444878a78 (patch)
tree39527062f901800f66e70caf0d3daf3048c1d86a /src/backend/access/gist/gistutil.c
parentf536d4194293f900577c728bfa4e62075a4c7da0 (diff)
downloadpostgresql-4c37c1e3b2a7ba7b5519e5e366720e7444878a78.tar.gz
postgresql-4c37c1e3b2a7ba7b5519e5e366720e7444878a78.zip
Reduce the initial size of local lock hash to 16 entries.
The hash table is seq scanned at transaction end, to release all locks, and making the hash table larger than necessary makes that slower. With very simple queries, that overhead can amount to a few percent of the total CPU time used. At the moment, backend startup needs 6 locks, and a simple query with one table and index needs 3 locks. 16 is enough for even quite complicated transactions, and it will grow automatically if it fills up.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions