Make GIN's cleanup pending list process interruptable
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 7 Sep 2015 14:18:10 +0000 (17:18 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 7 Sep 2015 14:18:10 +0000 (17:18 +0300)
commitcd6f4248f8810cb186edc2c92f0834762e0f88b6
tree143e67518e75fd22cd2eff98e11bb56f62f43ad0
parent6ce9d81086032c737e8bf198ae1ad32420d3f843
Make GIN's cleanup pending list process interruptable

Cleanup process could be called by ordinary insert/update and could take a lot
of time. Add vacuum_delay_point() to make this process interruptable. Under
vacuum this call will also throttle a vacuum process to decrease system load,
called from insert/update it will not throttle, and that reduces a latency.

Backpatch for all supported branches.

Jeff Janes <jeff.janes@gmail.com>
src/backend/access/gin/ginfast.c