Re: DataChecksumsStateStruct cost_delay fields and locking

Поиск
Список
Период
Сортировка
Искать

Re: DataChecksumsStateStruct cost_delay fields and locking

От:
Heikki Linnakangas <hlinnaka@iki.fi>
Дата:
On 17/06/2026 16:04, Daniel Gustafsson wrote:
> All comments addressed in the attached.

Thanks, LGTM.

> @@ -1533,9 +1532,13 @@ DataChecksumsWorkerMain(Datum arg)
>  	/*
>  	 * Get a list of all temp tables present as we start in this database. We
>  	 * need to wait until they are all gone until we are done, since we cannot
> -	 * access these relations and modify them.
> +	 * access these relations and modify them.  For the list of relations to
> +	 * process once the temp relations are gone, check if shared catalogs have
> +	 * been processed already.
>  	 */
>  	InitialTempTableList = BuildRelationList(true, false);
> +	LWLockAcquire(DataChecksumsWorkerLock, LW_EXCLUSIVE);
> +	process_shared = DataChecksumState->process_shared_catalogs;
>  
>  	/*
>  	 * Enable vacuum cost delay, if any.  While this process isn't doing any

Not new with this patch, but caught my eye now: the double "until" in 
the phrase "We need to wait until they are all gone until we are done" 
sounds a little awkward. I had to read it a few times to parse it right. 
I'd suggest "We need to wait until they are all gone before we exit" or 
something like that.

- Heikki



Re: DataChecksumsStateStruct cost_delay fields and locking

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 17 Jun 2026, at 20:12, Heikki Linnakangas  wrote:
> 
> On 17/06/2026 16:04, Daniel Gustafsson wrote:
>> All comments addressed in the attached.
> 
> Thanks, LGTM.

Thanks for review of the patch and the post-commit review of the file.  Pushed
(with the additional commit fix you mentioned).

--
Daniel Gustafsson



FAQ