pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix possible index corruption in pg_trgm GiST indexes 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:20 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:20 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8aea84d2b8a1233ae44bb0dc0fde2a2ab0f5e35f Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:21 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f10d58d1ff00c45abe2c8f3539a7b89650910b97 Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:21 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/60ccd730da518037484ce96cf270b811a463b3b7 Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:21 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/145a7175ee0abf9c0894662f34a42988e5ea6276 Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:21 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8ef710eb30d9848b2b57040dc06d1a762151549f Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:21 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2117bdccfffe2e809f396cb14a4812bb66f6ec6d Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix possible index corruption in pg_trgm GiST indexes @ 2026-11-04 02:22 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2026-11-04 02:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix possible index corruption in pg_trgm GiST indexes Commit 911e7020770, which added configurable signature lengths, introduced an error in how gist_trgm_ops index entries are combined. Some entries could lose the flag identifying their format, causing later inserts to treat them as empty and lose information about existing entries. As a result, queries using these indexes could miss matching rows. Fix this by preserving the format flag when combining index entries, so that subsequent inserts correctly retain the information they represent. This fix does not repair existing indexes. Users should REINDEX all existing gist_trgm_ops indexes after upgrading to a release containing this fix. Backpatch to all supported versions. Author: Nate Clark <natec425@gmail.com> Reviewed-by: Kirill Reshke <reshkekirill@gmail.com> Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/19720-b3e83f5e99c485c5@postgresql.org Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/42c6d2bc3f2e28be83bf9fda0bc4ac4f5a597963 Modified Files -------------- contrib/pg_trgm/trgm_gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-11-04 02:22 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-04 02:20 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:21 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:21 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:21 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:21 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:21 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org> 2026-11-04 02:22 pgsql: Fix possible index corruption in pg_trgm GiST indexes Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox