You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
The larger part of this patch replaces usages of MyProc->procLatchwith MyLatch. The latter works even early during backend startup,where MyProc->procLatch doesn't yet. While the affected codeshouldn't run in cases where it's not initialized, it might get copiedinto places where it might. Using MyLatch is simpler and a bit fasterto boot, so there's little point to stick with the previous coding.While doing so I noticed some weaknesses around newly introduced usesof latches that could lead to missed events, and an omittedCHECK_FOR_INTERRUPTS() call in worker_spi.As all the actual bugs are in v10 code, there doesn't seem to besufficient reason to backpatch this.Author: Andres FreundDiscussion:https://postgr.es/m/20170606195321.sjmenrfgl2nu6j63@alap3.anarazel.dehttps://postgr.es/m/20170606210405.sim3yl6vpudhmufo@alap3.anarazel.deBackpatch: -