Use an LWLock instead of a spinlock in waitlsn.c

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 25f42429e2ff2acca35c9154fc2e36b75c79227a
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-04-06T21:49:53Z
Releases: 17.0
Use an LWLock instead of a spinlock in waitlsn.c

This should prevent busy-waiting when number of waiting processes is high.

Discussion: https://postgr.es/m/202404030658.hhj3vfxeyhft%40alvherre.pgsql
Author: Alvaro Herrera

Files

Discussion