postgresql/src/backend/storage
Alvaro Herrera 1cd5bc3ccf Fix crash when reporting CREATE INDEX progress
A race condition can make us try to dereference a NULL pointer to the
PGPROC struct of a process that's already finished.  That results in
crashes during REINDEX CONCURRENTLY and CREATE INDEX CONCURRENTLY.

This was introduced in ab0dfc961b, so backpatch to pg12.

Reported by: Justin Pryzby
Reviewed-by: Michaël Paquier
Discussion: https://postgr.es/m/20191012004446.GT10470@telsasoft.com
2019-10-16 14:51:23 +02:00
..
buffer Fix many typos and inconsistencies 2019-07-01 10:00:23 +09:00
file Message style fixes 2019-09-23 13:37:33 +02:00
freespace Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
ipc Remove superfluous newlines in function prototypes. 2019-07-31 00:07:09 -07:00
large_object Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
lmgr Fix crash when reporting CREATE INDEX progress 2019-10-16 14:51:23 +02:00
page Make one message just like all its siblings. 2019-05-28 23:44:22 -04:00
smgr Fix assorted inconsistencies. 2019-06-08 08:16:38 +05:30
sync Initial pgindent run for v12. 2019-05-22 12:55:34 -04:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00