> No, that's wrong. The missing ingredient is that the WAL log should
> explicitly log table creations. (And also table drops.) If you look
> you will find some comments showing the places where code is missing.
I'm wondering where we could record the LSN when creating or dropping
tables.
> If you try to do it as you suggest above, then you will erroneously
> recreate files that have been dropped.
Yes, but I think we need to compare log's LSN and tables LSN.
--
Tatsuo Ishii