aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-01-23 12:55:18 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-01-23 12:55:18 -0300
commit7e26e02eec90370dd222f35f00042f8188488ac4 (patch)
treef30de3a4f8238be2b4422e2174f3d8850409be4c /src/backend/access/gist/gistxlog.c
parent3c821466abcdb8120ab0dfbce02f3bbae3b62025 (diff)
downloadpostgresql-7e26e02eec90370dd222f35f00042f8188488ac4.tar.gz
postgresql-7e26e02eec90370dd222f35f00042f8188488ac4.zip
Prefetch blocks during lazy vacuum's truncation scan
Vacuum truncation scan can be sped up on rotating media by prefetching blocks in forward direction. That makes the blocks already present in memory by the time they are needed, while also letting OS read-ahead kick in. The truncate scan has been measured to be five times faster than without this patch (that was on a slow disk, but it shouldn't hurt on fast disks.) Author: Álvaro Herrera, loosely based on a submission by Claudio Freire Discussion: https://postgr.es/m/CAGTBQpa6NFGO_6g_y_7zQx8L9GcHDSQKYdo1tGuh791z6PYgEg@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions