Re: type cache cleanup improvements - Mailing list pgsql-hackers

From Artur Zakirov
Subject Re: type cache cleanup improvements
Date
Msg-id CAKNkYnzFg5jpeEjsdYutqtCoJs9VD27mFtH1cPEb6OQzYti2Hg@mail.gmail.com
Whole thread Raw
In response to Re: type cache cleanup improvements  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
On Tue, 15 Oct 2024 at 11:50, jian he <jian.universality@gmail.com> wrote:
> based on above information, i am still  confused with
> cleanup_in_progress_typentries, in_progress_list_len
> is there any simple sql example to demo
> cleanup_in_progress_typentries,  in_progress_list_len> 0.

AFAIK to reproduce cases when `in_progress_list_len > 0`
`lookup_type_cache()` should fail during its execution.

To do so you can call `lookup_type_cache()` with non-existing type_id
from a C function.

-- 
Kind regards,
Artur



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: replace strtok()
Next
From: Peter Eisentraut
Date:
Subject: Re: FOREIGN TABLE and IDENTITY columns