model-writtenrun 9223 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane discovered unreliable GiST results for empty-array containment while expanding intarray regression coverage, tracing the failure to non-leaf overlap checks that skip subtrees containing empty arrays #1.
- Tom's patch forces both GiST operator classes to search the whole tree for contained-by queries and adds regression cases; he deferred removing operator support or redesigning empty-array placement because those approaches were unsuitable for backpatching #1.
- Alexander Korotkov confirmed the flaw, supported eventual removal of GiST containment support, and suggested adding an overlap condition for applications wanting the previous non-empty-array behavior #2; Tom endorsed that workaround in the thread's final message #3.
- Tom subsequently committed the attached changes with an additional empty-array construction fix as efc77cf5f1, crediting Alexander's review and backpatching the containment correction to all supported versions.
- The proposed removal remained future work in this thread and later landed as 20e7e1fe31 from the newer submission #455361 in thread #42749, removing GiST containment operators while retaining compatibility code for older extension definitions.