| От | Heikki Linnakangas |
|---|---|
| Тема | Re: cleanup smgr.c of tablespace call |
| Дата | |
| Msg-id | 496F4DFB.9060609@enterprisedb.com обсуждение исходный текст |
| Ответ на | cleanup smgr.c of tablespace call (Alvaro Herrera <alvherre@commandprompt.com>) |
| Список | pgsql-hackers |
Alvaro Herrera wrote: > Hi, > > This trivial patch moves a misplaced tablespace.c call from smgr.c into > the newly created storage.c. This is appropriate because smgr.c is > supposed to be bare metal, and storage.c has the high-level calls. None of the existing functions in storage.c have SMgrRelation in the signature, that seems out of place. When creating an extra fork for FSM or VM, the main fork should already exist, so the TablespaceCreateDbspace call is not necessary. If you want to move the TablespaceCreateDbspace call to a higher level, I think you could just add it to RelationCreateStorage and XLogReadBufferExtended. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера