Re: Online checksums patch - once again

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Online checksums patch - once again
Дата
Msg-id 0a79fe43-ec1e-ad7f-9bfe-4f2f0a69b480@iki.fi
обсуждение исходный текст
Ответ на Re: Online checksums patch - once again  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Online checksums patch - once again  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On 22/01/2021 14:21, Heikki Linnakangas wrote:
> On 22/01/2021 13:55, Heikki Linnakangas wrote:
>> I read through the latest patch,
>> v31-0001-Support-checksum-enable-disable-in-a-running-clu.patch. Some
>> comments below:
> 
> One more thing:
> 
> In SetRelationNumChecks(), you should use SearchSysCacheCopy1() to get a
> modifiable copy of the tuple. Otherwise you modify the tuple in the
> relcache as a side effect. Maybe that's harmless in this case, as the
> 'relhaschecksums' value in the relcache isn't used for anything, but
> let's be tidy.

Sorry, I meant SetRelHasChecksums. There is no SetRelationNumChecks 
function, I don't know where I got that from.

- Heikki



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

Предыдущее
От: Alexey Kondratov
Дата:
Сообщение: Re: Allow CLUSTER, VACUUM FULL and REINDEX to change tablespace on the fly
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Key management with tests