Re: Point in time recovery: recreating relation files
От | Tom Lane |
---|---|
Тема | Re: Point in time recovery: recreating relation files |
Дата | |
Msg-id | 10632.1014867878@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Point in time recovery: recreating relation files (Marc Munro <marc@bloodnok.com>) |
Ответы |
Re: Point in time recovery: recreating relation files
Re: Point in time recovery: recreating relation files |
Список | pgsql-hackers |
Marc Munro <marc@bloodnok.com> writes: > The current WAL recovery implementation does not recover newly created > objects such as tables. My suggested patch is: > When XLogOpenRelation fails to open the relation file, if errno is > ENOENT (no file or directory) we shuld attempt to recreate the file > using smgrcreate. 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. If you try to do it as you suggest above, then you will erroneously recreate files that have been dropped. regards, tom lane
В списке pgsql-hackers по дате отправления: