Prevent re-use of a deleted relation's relfilenode until after the next

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6cc4451b5c47eac02e09c3342281da469374432d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-11-15T20:36:40Z
Releases: 8.3.0
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.

Files