You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Fix possible recovery trouble if TRUNCATE overlaps a checkpoint.
If TRUNCATE causes some buffers to be invalidated and thus thecheckpoint does not flush them, TRUNCATE must also ensure that thecorresponding files are truncated on disk. Otherwise, a replayfrom the checkpoint might find that the buffers exist but havethe wrong contents, which may cause replay to fail.Report by Teja Mupparti. Patch by Kyotaro Horiguchi, per a designsuggestion from Heikki Linnakangas, with some changes to thecomments by me. Review of this and a prior patch that approachedthe issue differently by Heikki Linnakangas, Andres Freund, ÁlvaroHerrera, Masahiko Sawada, and Tom Lane.Discussion:http://postgr.es/m/BYAPR06MB6373BF50B469CA393C614257ABF00@BYAPR06MB6373.namprd06.prod.outlook.com