| От | Jeff Davis |
|---|---|
| Тема | Re: initdb and fsync |
| Дата | |
| Msg-id | 1340044787.19023.47.camel@jdavis обсуждение исходный текст |
| Ответ на | Re: initdb and fsync (Andres Freund <andres@2ndquadrant.com>) |
| Ответы |
Re: initdb and fsync
|
| Список | pgsql-hackers |
On Mon, 2012-06-18 at 18:05 +0200, Andres Freund wrote:
> Quick review:
> - defaulting to initdb -N in the regression suite is not a good imo, because
> that way the buildfarm won't catch problems in that area...
I removed the -N as you suggest. How much does performance matter on the
buildfarm?
> - could the copydir.c and initdb.c versions of walkdir/sync_fname et al be
> unified?
There's a lot of backend-specific code in the copydir versions, like
using ereport() and CHECK_FOR_INTERRUPTS(). I gave a brief attempt at
unifying them before, and concluded that it wouldn't add to the
readability, so I just commented where they came from.
If you feel there will be a maintainability problem, I can give it
another shot.
> - I personally would find it way nicer to put USE_PRE_SYNC into pre_sync_fname
> instead of cluttering the main function with it
Done.
Regards,
Jeff Davis
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера