1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00
Robert Haas 1ce14b6b2f Fix possible recovery trouble if TRUNCATE overlaps a checkpoint.
If TRUNCATE causes some buffers to be invalidated and thus the
checkpoint does not flush them, TRUNCATE must also ensure that the
corresponding files are truncated on disk. Otherwise, a replay
from the checkpoint might find that the buffers exist but have
the wrong contents, which may cause replay to fail.

Report by Teja Mupparti. Patch by Kyotaro Horiguchi, per a design
suggestion from Heikki Linnakangas, with some changes to the
comments by me. Review of this and a prior patch that approached
the issue differently by Heikki Linnakangas, Andres Freund, Álvaro
Herrera, Masahiko Sawada, and Tom Lane.

Discussion: http://postgr.es/m/BYAPR06MB6373BF50B469CA393C614257ABF00@BYAPR06MB6373.namprd06.prod.outlook.com
2022-03-24 14:36:06 -04:00
..
2020-01-01 12:21:45 -05:00
2022-03-16 11:41:13 +13:00
2021-04-20 14:36:41 +02:00
2022-02-07 13:36:22 +01:00
2020-01-01 12:21:45 -05:00
2018-03-30 17:33:04 -07:00
2020-01-01 12:21:45 -05:00
2020-09-14 13:14:53 +02:00