Re: initdb -S and tablespaces

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: initdb -S and tablespaces
Дата
Msg-id 20140929101332.GA32005@toroid.org
обсуждение исходный текст
Ответ на Re: initdb -S and tablespaces  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: initdb -S and tablespaces  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
At 2014-09-29 11:54:10 +0200, andres@2ndquadrant.com wrote:
>
> Note that the perform_fsync() *was* ok for its original purpose in
> initdb. At the end of initdb there's no relevant tablespaces. But if
> used *after* pg_upgrade, that's not necessarily the case.

Right.

So, since I'm writing a function to fsync everything inside PGDATA
anyway, it makes sense to call it both from initdb and StartupXLOG.
It'll do what initdb -S now does, plus follow links in pg_tblspc.

Any suggestions about where to put such a function? (I was looking at
backend/utils/init, but I'm not sure that's a good place for this.)

-- Abhijit



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: initdb -S and tablespaces
Следующее
От:
Дата:
Сообщение: Re: pg_receivexlog --status-interval add fsync feedback