Backend crash (signal 11) in pg_trgm makesign() after ALTER TABLE ... SET STORAGE on a column with a gist_trgm_ops index

Edit
ID 7413
Title Backend crash (signal 11) in pg_trgm makesign() after ALTER TABLE ... SET STORAGE on a column with a gist_trgm_ops index
CI (CFBot) Needs rebase! Needs rebase since 38 minutes. Failing since 38 minutes.
Additional links previous successfully applied patch (outdated):
Stats (from CFBot) Unknown
Tags Bugfix
Created 2026-10-08 10:52:14
Last modified 2026-10-08 10:54:00 (50 minutes ago)
Latest email 2026-10-04 13:12:19 (3 days ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
Target version
Authors Andrey Rachitskiy (a.rachitskiy)
Reviewers Become reviewer
Committer
Links
Emails
Backend crash (signal 11) in pg_trgm makesign() after ALTER TABLE ... SET STORAGE on a column with a gist_trgm_ops index
First at 2026-10-02 03:22:51 by Thiago Bonfante <thiago at subbase.io>
Latest at 2026-10-04 13:12:19 by Kirill Reshke <reshkekirill at gmail.com>
Latest attachment (fix-storclass-0002-reindex-heal-poc.diff) at 2026-10-04 13:12:19 from Kirill Reshke <reshkekirill at gmail.com>
    Attachment (fix-storclass-0002-reindex-heal-poc.diff) at 2026-10-04 13:12:19 from Kirill Reshke <reshkekirill at gmail.com> (Patch: Yes)
    Attachment (0001-Don-t-copy-heap-attstorage-onto-opclass-STORAGE-type.patch) at 2026-10-02 07:57:48 from Andrey Rachitskiy <pl0h0yp1 at gmail.com> (Patch: No)
    Attachment (repro.sql) at 2026-10-02 03:22:51 from Thiago Bonfante <thiago at subbase.io> (Patch: No)

Annotations

When Who Mail Annotation
2026-10-08 10:54:00 Andrey Rachitskiy (a.rachitskiy) From Andrey Rachitskiy <pl0h0yp1@gmail.com>
at 2026-10-02 07:57:48
The main fix is here
History
When Who What
2026-10-08 11:06:24 CFbot Patch needs rebase
2026-10-08 10:54:00 Andrey Rachitskiy (a.rachitskiy) Added annotation "The main fix is here" to CAB8bMitfqZY32oVmB2ZgSRFA68HwpBYD5sKHtL0uKrwMyHNmMQ@mail.gmail.com
2026-10-08 10:52:15 Andrey Rachitskiy (a.rachitskiy) Attached mail thread CAA8TiqELrCMyAkNMev0NerxACZTaQL5a2Y2htzfDxFirJ+QGkw@mail.gmail.com
2026-10-08 10:52:14 Andrey Rachitskiy (a.rachitskiy) Created patch record
Edit