1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00
Files
postgres/src/backend
Thomas Munro acefa2cca6 Fix locking bugs that could corrupt pg_control.
The redo routines for XLOG_CHECKPOINT_{ONLINE,SHUTDOWN} must acquire
ControlFileLock before modifying ControlFile->checkPointCopy, or the
checkpointer could write out a control file with a bad checksum.

Likewise, XLogReportParameters() must acquire ControlFileLock before
modifying ControlFile and calling UpdateControlFile().

Back-patch to all supported releases.

Author: Nathan Bossart <bossartn@amazon.com>
Author: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/70BF24D6-DC51-443F-B55A-95735803842A%40amazon.com
2020-06-08 13:58:10 +12:00
..
2020-06-07 15:06:51 +02:00
2020-01-01 12:21:45 -05:00
2020-06-07 16:57:08 -04:00
2020-06-04 13:02:59 +09:00
2020-05-25 16:23:48 -07:00
2020-05-22 17:39:16 -04:00
2020-05-18 12:49:30 +02:00
2020-06-07 15:06:51 +02:00
2020-01-01 12:21:45 -05:00
2020-06-07 15:06:51 +02:00
2020-06-07 15:06:51 +02:00
2018-03-30 17:33:04 -07:00
2020-01-01 12:21:45 -05:00
2020-04-28 13:35:40 +02:00