Re: [HACKERS] Online enabling of page level checksums

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [HACKERS] Online enabling of page level checksums
Дата
Msg-id CANP8+jLQn4w48K+c2dLYMkiRNzzrZ6fN9Q3BxsbikrB4KRXsOQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Online enabling of page level checksums  (David Christensen <david@endpoint.com>)
Ответы Re: [HACKERS] Online enabling of page level checksums  (David Christensen <david@endpoint.com>)
Список pgsql-hackers
On 23 January 2017 at 16:32, David Christensen <david@endpoint.com> wrote:

> ** Handling checksums on a standby:
>
> How to handle checksums on a standby is a bit trickier since checksums are inherently a local cluster state and not
WALlogged but we are storing state in the system tables for each database we need to make sure that the replicas
reflecttruthful state for the checksums for the cluster. 

Not WAL logged? If the objective of this feature is robustness, it
will need to be WAL logged.

Relation options aren't accessed by the startup process during
recovery, so that part won't work in recovery. Perhaps disable
checksumming until the everything is enabled rather than relation by
relation.

If y'all serious about this then you're pretty late in the cycle for
such a huge/critical patch. So lets think of ways of reducing the
complexity...

Seems most sensible to add the "enable checksums for table" function
into VACUUM because then it will happen automatically via autovacuum,
or you could force the issue using something like
vacuumdb --jobs 4 --enable-checksums
That gives you vacuum_delay and a background worker for no effort

Hope that helps

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



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

Предыдущее
От: Claudio Freire
Дата:
Сообщение: Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: [HACKERS] Logical Replication WIP