| From: | Álvaro Rodríguez <alvaro(at)datadoghq(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Unexpected reindex when altering column types for partitioned tables |
| Date: | 2026-06-16 11:24:59 |
| Message-ID: | CA+C_kKXCfrqOzBr5HqAOPoQxcARLkD1v84UQzBDdeMXpcTmHdw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I am also attaching a new version of the patches where we scope the
new constraint recreating behavior to UNIQUE and PK constraints
(instead of everything that is index-backed). This avoids unwanted
impact on how FKs that reference partitioned tables are handled and
should as a bonus fix the CI.
Thanks,
Álvaro
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0002-Skip-index-rewriting-when-possible-on-ALTER-TABLE.patch | application/octet-stream | 10.1 KB |
| v2-0003-Skip-index-rewriting-for-PK-associated-indexes-wh.patch | application/octet-stream | 5.9 KB |
| v2-0001-Add-regression-test-to-highlight-unexpected-behav.patch | application/octet-stream | 4.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ashutosh Sharma | 2026-06-16 11:25:45 | Re: Report bytes and transactions actually sent downtream |
| Previous Message | Amit Langote | 2026-06-16 11:19:54 | Re: Fast-path FK checks reject valid inserts for domain-typed FK columns |