fix "Success" error messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема fix "Success" error messages
Дата
Msg-id 5de61b6b-8be9-7771-0048-860328efe027@2ndquadrant.com
обсуждение исходный текст
Ответы Re: fix "Success" error messages
Список pgsql-hackers
In a case of a corrupted database, I saw an error message like

    Could not read from file ...: Success.

from the SLRU module.  This is because it checks that it reads or writes
exactly BLCKSZ, and else goes to the error path.  The attached patch
gives a different error message in this case.

Because of the structure of this code, we don't have the information to
do the usual "read %d of %zu", but at least this is better than
reporting a "success" error.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Replacing the EDH SKIP primes
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions