]> granicus.if.org Git - postgresql/commit
Extend relations multiple blocks at a time to improve scalability.
authorRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2016 06:04:46 +0000 (02:04 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 8 Apr 2016 06:04:46 +0000 (02:04 -0400)
commit719c84c1be51f3d3fe6049b77ddbaa0c4b58a9a9
treec2f4b1501655e50339e3365f267fcce00fd06bbb
parent8643b91ecf8f47a1307df4a00d66b2fceada0d6f
Extend relations multiple blocks at a time to improve scalability.

Contention on the relation extension lock can become quite fierce when
multiple processes are inserting data into the same relation at the same
time at a high rate.  Experimentation shows the extending the relation
multiple blocks at a time improves scalability.

Dilip Kumar, reviewed by Petr Jelinek, Amit Kapila, and me.
src/backend/access/heap/hio.c
src/backend/storage/freespace/freespace.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/include/storage/freespace.h
src/include/storage/lmgr.h
src/include/storage/lock.h