Re: Corner case in xlog stuff: what happens exactly at a seg boundary?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Corner case in xlog stuff: what happens exactly at a seg boundary?
Дата
Msg-id 18482.1154836780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Corner case in xlog stuff: what happens exactly at a seg boundary?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Corner case in xlog stuff: what happens exactly at a
Re: Corner case in xlog stuff: what happens exactly at a seg boundary?
Список pgsql-hackers
I wrote:
> Rather than expecting user-level scripts to get this corner case
> right, I suggest that we ought to modify pg_stop_backup and friends
> so that what they return is the last used byte address of WAL, not
> the first unused byte address as now.  Then, blindly extracting
> the filename will give the right answer about which file to archive,
> even in the boundary case.

After further thought I desisted from that plan: changing the result
convention of existing functions like pg_stop_backup() will break any
existing archiving scripts that do get it right.  Instead, we can put
the boundary-case logic into the new functions that extract a filename
from the WAL location string that the action functions return.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Forcing current WAL file to be archived
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: 8.2 features status