Re: pg_rewind: Skip log directory for file type check like pg_wal

Поиск
Список
Период
Сортировка
От Alexander Kukushkin
Тема Re: pg_rewind: Skip log directory for file type check like pg_wal
Дата
Msg-id CAFh8B==cNpVV7SaRbKQyhg4t5pJvXWzgTupSX6L2M9+dLc3OEQ@mail.gmail.com
обсуждение исходный текст
Ответ на pg_rewind: Skip log directory for file type check like pg_wal  (Soumyadeep Chakraborty <soumyadeep2007@gmail.com>)
Ответы Re: pg_rewind: Skip log directory for file type check like pg_wal  (Soumyadeep Chakraborty <soumyadeep2007@gmail.com>)
Список pgsql-hackers
Hello Soumyadeep,

The problem indeed exists, but IMO the "log" directory case must be handled differently:
1. We don't need or I would even say we don't want to sync log files from the new primary, because it destroys the actual logs, which could be very important to figure out what has happened with the old primary
2. Unlike "pg_wal", the "log" directory is not necessarily located inside PGDATA. The actual value is configured using "log_directory" GUC, which just happened to be "log" by default. And in fact actual values on source and target could be different.

Regards,
--
Alexander Kukushkin

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Add support for unit "B" to pg_size_pretty()
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: [PATCH] Use indexes on the subscriber when REPLICA IDENTITY is full on the publisher