Re: Avoid overwiriting cache entry (src/backend/utils/cache/relcache.c)

2025-08-29 Thread Ranier Vilela
Em sex., 29 de ago. de 2025 às 07:58, Álvaro Herrera escreveu: > On 2025-Aug-26, Ranier Vilela wrote: > > > In function *CheckNNConstraintFetch* the array index is > > incremented only when "null combin" is not found. > > > > IMO the last cache entry can be overwriting if the next tuple is null,

Re: Avoid overwiriting cache entry (src/backend/utils/cache/relcache.c)

2025-08-29 Thread Álvaro Herrera
On 2025-Aug-26, Ranier Vilela wrote: > In function *CheckNNConstraintFetch* the array index is > incremented only when "null combin" is not found. > > IMO the last cache entry can be overwriting if the next tuple is null, > because, the fill array fields is not syncronized with array index > incr

Avoid overwiriting cache entry (src/backend/utils/cache/relcache.c)

2025-08-26 Thread Ranier Vilela
Hi. In function *CheckNNConstraintFetch* the array index is incremented only when "null combin" is not found. IMO the last cache entry can be overwriting if the next tuple is null, because, the fill array fields is not syncronized with array index increment. Fix by moving the array fill. patch