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
v2-0002-Skip-index-rewriting-when-possible-on-ALTER-TABLE.patch
Description: Binary data
v2-0003-Skip-index-rewriting-for-PK-associated-indexes-wh.patch
Description: Binary data
v2-0001-Add-regression-test-to-highlight-unexpected-behav.patch
Description: Binary data
