Yes, will take the epoch value from same and create a new file. Upon subsequent calls, will access with that filename...if it fails(incase if the postmaster is restarted), will create a new one.
@Melvin Does this capture all failure scenarios?? Or you have any other better ways to do it. Your comments are much appreciated !!