Re: BUG #4089: When available disk space is low pg_stop_backup() fails, as do subsequent recovery attempts.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4089: When available disk space is low pg_stop_backup() fails, as do subsequent recovery attempts.
Дата
Msg-id 19115.1207320388@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4089: When available disk space is low pg_stop_backup() fails, as do subsequent recovery attempts.  ("John Smith" <sodgodofall@gmail.com>)
Список pgsql-bugs
"John Smith" <sodgodofall@gmail.com> writes:
> Steps to reproduce:
>  -- start with a running PG instance with WAL archiving enabled
>  -- select pg_start_backup('test');
>  -- Fill up the disk on which the data directory is present
>  -- select pg_stop_backup();
>     -- fails with: ERROR:  could not write file
> "pg_xlog/000000010000000000000000.004989E8.backup": No space left on device
>     -- at this point there is a 0-byte file
> pg_xlog/000000010000000000000000.004989E8.backup present on disk
>  -- stop and start PG
>  -- recovery fails with: FATAL:  invalid data in file
> "000000010000000000000000.004989E8.backup"
>  -- NOTE: At this point removing 000000010000000000000000.004989E8.backup
> allows PG to start successfully

What do you see as the bug here?  Seems like reasonable behavior to me.

            regards, tom lane

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

Предыдущее
От: "John Smith"
Дата:
Сообщение: Re: BUG #4089: When available disk space is low pg_stop_backup() fails, as do subsequent recovery attempts.
Следующее
От: "Peter Koczan"
Дата:
Сообщение: BUG #4092: initdb fails if the xlog directory is the same as [pg_data]/pg_xlog