Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table
Date
Msg-id ZdvF3lD5W9IySEa8@paquier.xyz
Whole thread Raw
In response to Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table
List pgsql-bugs
On Sun, Feb 25, 2024 at 03:37:08PM -0500, Tom Lane wrote:
> Yeah, I guess so.  We periodically get reports of the non-assert
> failure, and this would let us issue a more on-point error message.
> I'm slightly worried about the extra cost, but typically
> pendingReindexedIndexes should be empty or at least short, so it's
> probably negligible.

An index expression that calls a function doing a scan of its parent
table is a funky case for sure, but perhaps f5a465f1a074 would have
been better with a test?
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table
Next
From: Tom Lane
Date:
Subject: Re: BUG #18363: Assert !ReindexIsProcessingIndex falsified with expression index over select from table