Re: Online checksums patch - once again

Поиск
Список
Период
Сортировка
Искать
От
Daniel Gustafsson
Тема
Re: Online checksums patch - once again
Дата
Msg-id
F7AFCFCD-8F77-4546-8D42-C7F675A4B680@yesql.se
Ответ на
Список
Дерево обсуждения
Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Online checksums patch - once again Bruce Momjian <bruce@momjian.us>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Bruce Momjian <bruce@momjian.us>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Andres Freund <andres@anarazel.de>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Michael Paquier <michael@paquier.xyz>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Sergei Kornilov <sk@zsrv.org>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again David Steele <david@pgmasters.net>
Re: Online checksums patch - once again David Steele <david@pgmasters.net>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Magnus Hagander <magnus@hagander.net>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Andres Freund <andres@anarazel.de>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Justin Pryzby <pryzby@telsasoft.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Michael Paquier <michael@paquier.xyz>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Daniel Gustafsson <daniel@yesql.se>
Re: Online checksums patch - once again Robert Haas <robertmhaas@gmail.com>
> On 22 Jun 2020, at 18:29, Robert Haas  wrote:
> 
> On Mon, Jun 22, 2020 at 8:27 AM Daniel Gustafsson  wrote:
>> Restartability is implemented by keeping state in pg_class.  I opted for a bool
>> which is cleared as the first step of checksum enable, since it offers fewer
>> synchronization cornercases I think.
> 
> Unless you take AccessExclusiveLock on the table, this probably needs
> to be three-valued. Or maybe I am misunderstanding the design...

Sorry being a bit thick, can you elaborate which case you're thinking about?
CREATE TABLE sets the attribute according to the value of data_checksums, and
before enabling checksums (and before changing data_checksums to inprogress)
the bgworker will update all relhaschecksums from true (if any) to false.  Once
the state is set to inprogress all new relations will set relhaschecksums to
true.

The attached v19 fixes a few doc issues I had missed.

cheers ./daniel

В списке pgsql-hackers по дате отправления
От: David Rowley
Дата:
От: Devrim Gündüz
Дата:
Сообщение: CUBE_MAX_DIM
FAQ