postgresql/src/backend/storage
Alvaro Herrera 0d21f919eb 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:34 +02:00
..
buffer Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
file Message style fixes 2019-09-23 13:38:39 +02:00
freespace Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
ipc Use data directory inode number, not port, to select SysV resource keys. 2019-09-05 13:31:46 -04:00
large_object Rename some toasting functions based on whether they are heap-specific. 2019-10-04 14:24:46 -04:00
lmgr Fix crash when reporting CREATE INDEX progress 2019-10-16 14:51:34 +02:00
page Make one message just like all its siblings. 2019-05-28 23:44:22 -04:00
smgr Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
sync Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00