pgsql: Fix initdb --sync-only to also sync tablespaces.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Fix initdb --sync-only to also sync tablespaces.
Дата
Msg-id E1XpRJr-0002kr-1c@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix initdb --sync-only to also sync tablespaces.

630cd14426dc added initdb --sync-only, for use by pg_upgrade, by just
exposing the existing fsync code. That's wrong, because initdb so far
had absolutely no reason to deal with tablespaces.

Fix --sync-only by additionally explicitly syncing each of the
tablespaces.

Backpatch to 9.3 where --sync-only was introduced.

Abhijit Menon-Sen and Andres Freund

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/26a4e0ed7166f7b87b5ad3bb33dbde2ebc6ff82b

Modified Files
--------------
src/bin/initdb/initdb.c |   63 +++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 61 insertions(+), 2 deletions(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Ensure unlogged tables are reset even if crash recovery errors o
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Sync unlogged relations to disk after they have been reset.