aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-04-07 20:33:45 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-04-07 20:33:45 +0200
commita0e0fb1ba56ff4323542c75ce997a41d31ad28a0 (patch)
treec6510264b6ca42f68a53bab76da0d0ab0adab52d /doc/src
parent473411fc51157e8e825ee865c2822f976e0da5e3 (diff)
downloadpostgresql-a0e0fb1ba56ff4323542c75ce997a41d31ad28a0.tar.gz
postgresql-a0e0fb1ba56ff4323542c75ce997a41d31ad28a0.zip
Use conditional variable to wait for next MultiXact offset
In one multixact.c edge case, we need a mechanism to wait for one multixact offset to be written before being allowed to read the next one. We used to handle this case by sleeping for one millisecond and retrying, but such sleeps have been reported as problematic in production cases. We can avoid the problem by using a condition variable: readers sleep on it and then every creator of multixacts broadcasts into the CV when creation is sufficiently far along. Author: Kyotaro Horiguchi <horikyotajntt@gmail.com> Reviewed-by: Andrey Borodin <amborodin@acm.org> Discussion: https://postgr.es/m/47A598F4-B4E7-4029-8FEC-A06A6C3CB4B5@yandex-team.ru Discussion: https://postgr.es/m/20200515.090333.24867479329066911.horikyota.ntt
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions