Re: pgsql: Don't archive bogus recycled or preallocated files after timelin

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: pgsql: Don't archive bogus recycled or preallocated files after timelin
Дата
Msg-id 552CB5E4.8050207@iki.fi
обсуждение исходный текст
Ответ на Re: pgsql: Don't archive bogus recycled or preallocated files after timelin  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Don't archive bogus recycled or preallocated files after timelin  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On 04/14/2015 02:24 AM, Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:
>> To fix, whenever we switch to a new timeline, scan the data directory for
>> WAL segments on the old timeline, but with a higher segment number, and
>> remove them.
>
> Wait a minute.  Didn't you just break PITR scenarios?  The *entire point*
> of the multiple-timeline mechanism is that you can start a new WAL history
> from a point in the past without destroying WAL history after that point
> on the old timeline.

It deletes the files belonging to other timelines from pg_xlog only. The
WAL archive is not touched.

- Heikki



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Reorganize our CRC source files again.