Re: Checksum errors in pg_stat_database

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Checksum errors in pg_stat_database
Дата
Msg-id CA+TgmoY4ExqYbhurdi=D-J2ovWD6hkhc0XDH+B1z3FDpYAe+nw@mail.gmail.com
обсуждение исходный текст
Ответ на Checksum errors in pg_stat_database  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Checksum errors in pg_stat_database  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Список pgsql-hackers
On Fri, Jan 11, 2019 at 5:21 AM Magnus Hagander <magnus@hagander.net> wrote:
> Would it make sense to add a column to pg_stat_database showing the total number of checksum errors that have
occurredin a database?
 
>
> It's really a ">1 means it's bad", but it's a lot easier to monitor that in the statistics views, and given how much
alot of people set their systems out to log, it's far too easy to miss individual checksum matches in the logs.
 
>
> If we track it at the database level, I don't think the overhead of adding one more counter would be very high
either.

It's probably not the idea way to track it.  If you have a terabyte or
fifty of data, and you see that you have some checksum failures, good
luck finding the offending blocks.

But I'm tentatively in favor of your proposal anyway, because it's
pretty simple and cheap and might help people, and doing something
noticeably better is probably annoyingly complicated.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Ryu floating point output patch
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Ryu floating point output patch