On Tue, Dec 8, 2015 at 9:57 PM, Andres Freund <and...@anarazel.de> wrote: > For me the attached, preliminary, patch, fixes the problem in master; > previous branches ought to look mostly similar, except the flush moved > to RestoreBackupBlockContents/RestoreBackupBlock. > Does anybody have a better idea? Suitable for the back-branches?
Not really I am afraid.. > I'm kinda wondering if it wouldn't have been better to go through shared > buffers in ResetUnloggedRelationsInDbspaceDir() instead of using > copy_file(). For deployment with large shared_buffers settings, wouldn't that be actually more costly than the current way of doing? We would need to go through all the buffers at least once and look for the INIT_FORKNUM present to flush them. -- Michael -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers