pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading

pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading

pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading

pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading

pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading

pgsql: Fix GIN's shimTriConsistentFn to not corrupt its input.

2025-04-12 Thread Tom Lane
Fix GIN's shimTriConsistentFn to not corrupt its input. Commit 0f21db36d made an assumption that GIN triConsistentFns would not modify their input entryRes[] arrays. But in fact, the "shim" triConsistentFn that we use for opclasses that don't supply their own did exactly that, potentially leading