Re: problem with archive_command as suggested by documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problem with archive_command as suggested by documentation
Дата
Msg-id 5596.1232725094@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: problem with archive_command as suggested by documentation  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Список pgsql-hackers
"Albe Laurenz" <laurenz.albe@wien.gv.at> writes:
> Heikki Linnakangas wrote:
>> Well, the documentation states the reason to do that:
>> 
>> This is an important safety feature to preserve the 
>> integrity of your archive in case of administrator error 
>> (such as sending the output of two different servers to the 
>> same archive directory)

> But isn't it true that the vast majority of people have only one
> PostgreSQL cluster per machine, and it is highly unlikely that
> somebody else creates a file with the same name as a WAL segment
> in the archive directory?

That's not the point.  You'd typically be sending the WAL archive to
another machine (via NFS or FTP or whatever), and it's not very hard at
all to imagine accidentally setting up two different machines to point
at the same archive directory on the same backup server.  For instance,
imagine that you're cloning your DB in preparation for an upgrade.
You'll probably start by copying your configuration file...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Pluggable Indexes
Следующее
От: Andrew Chernow
Дата:
Сообщение: Re: AIX 4.3 getaddrinfo busted