aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-08-16 16:18:41 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-08-16 16:18:41 +0300
commit3cda10f41bfed7e34b0db7013b66dd40a5f75926 (patch)
tree4ff54d4f5050da1b2b5b58dc277716b93f21d9be /contrib/postgres_fdw/postgres_fdw.c
parent0c504a80cf2e6f66df2cdea563e879bf4abd1629 (diff)
downloadpostgresql-3cda10f41bfed7e34b0db7013b66dd40a5f75926.tar.gz
postgresql-3cda10f41bfed7e34b0db7013b66dd40a5f75926.zip
Use atomic ops to hand out pages to scan in parallel scan.
With a lot of CPUs, the spinlock that protects the current scan location in a parallel scan can become a bottleneck. Use an atomic fetch-and-add instruction instead. David Rowley Discussion: https://www.postgresql.org/message-id/CAKJS1f9tgsPhqBcoPjv9_KUPZvTLCZ4jy%3DB%3DbhqgaKn7cYzm-w@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions