postgresql/src/backend/storage
Andres Freund 9206ced1dc Clean up latch related code.
The larger part of this patch replaces usages of MyProc->procLatch
with MyLatch.  The latter works even early during backend startup,
where MyProc->procLatch doesn't yet.  While the affected code
shouldn't run in cases where it's not initialized, it might get copied
into places where it might.  Using MyLatch is simpler and a bit faster
to boot, so there's little point to stick with the previous coding.

While doing so I noticed some weaknesses around newly introduced uses
of latches that could lead to missed events, and an omitted
CHECK_FOR_INTERRUPTS() call in worker_spi.

As all the actual bugs are in v10 code, there doesn't seem to be
sufficient reason to backpatch this.

Author: Andres Freund
Discussion:
    https://postgr.es/m/20170606195321.sjmenrfgl2nu6j63@alap3.anarazel.de
    https://postgr.es/m/20170606210405.sim3yl6vpudhmufo@alap3.anarazel.de
Backpatch: -
2017-06-06 16:13:00 -07:00
..
buffer Revert unintentional change in increasing usage count during pin of buffers, 2017-03-20 18:48:46 +03:00
file Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
freespace Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
ipc Prevent possibility of panics during shutdown checkpoint. 2017-06-05 19:18:15 -07:00
large_object Fix CatalogTupleInsert/Update abstraction for case of shared indstate. 2017-02-01 17:18:36 -05:00
lmgr Clean up latch related code. 2017-06-06 16:13:00 -07:00
page Assorted translatable string fixes 2017-06-04 11:41:16 -04:00
smgr Post-PG 10 beta1 pgindent run 2017-05-17 16:31:56 -04:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00