Heikki Linnakangas <[EMAIL PROTECTED]> writes: > mdtruncate throws an error if the relation file doesn't exist.
Interesting corner case. The proposed fix seems not very consistent with the way we handle comparable cases elsewhere, though. In general, md.c will cut some slack when InRecovery if a relation is shorter than expected, but not if it's not there at all. (This is, indeed, what justifies mdtruncate's response to file-too-short...) We handle dropped files during recovery by forced smgrcreate() in places like XLogOpenRelation. I'm inclined to think smgr_redo should force smgrcreate() before trying to truncate. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly