initdb -S and tablespaces

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема initdb -S and tablespaces
Дата
Msg-id 20140929083901.GA30946@toroid.org
обсуждение исходный текст
Ответы Re: initdb -S and tablespaces  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Hi.

I just noticed that initdb -S ("Safely write all database files to disk
and exit") does (only) the following in perform_fsync:
   pre_sync_fname(pdir, true);   walkdir(pg_data, pre_sync_fname);
   fsync_fname(pdir, true);   walkdir(pg_data, fsync_fname);

walkdir() reads the directory and calls itself recursively for S_ISDIR
entries, or calls the function for S_ISREG entries… which means it
doesn't follow links.

Which means it doesn't fsync the contents of tablespaces.

-- Abhijit



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Replication identifiers, take 3
Следующее
От: Kouhei Kaigai
Дата:
Сообщение: Re: [v9.5] Custom Plan API