-
- Downloads
Prevent re-use of a deleted relation's relfilenode until after the next
checkpoint. This guards against an unlikely data-loss scenario in which we re-use the relfilenode, then crash, then replay the deletion and recreation of the file. Even then we'd be OK if all insertions into the new relation had been WAL-logged ... but that's not guaranteed given all the no-WAL-logging optimizations that have recently been added. Patch by Heikki Linnakangas, per a discussion last month.
Showing
- src/backend/access/transam/xlog.c 15 additions, 1 deletionsrc/backend/access/transam/xlog.c
- src/backend/commands/tablespace.c 23 additions, 6 deletionssrc/backend/commands/tablespace.c
- src/backend/storage/smgr/md.c 193 additions, 11 deletionssrc/backend/storage/smgr/md.c
- src/backend/storage/smgr/smgr.c 38 additions, 6 deletionssrc/backend/storage/smgr/smgr.c
- src/include/storage/smgr.h 5 additions, 1 deletionsrc/include/storage/smgr.h
Loading
Please register or sign in to comment