Hello! While looking at 6713a6e04cb I noticed a similar issue with statistics targets: ALTER TABLE ALTER COLUMN TYPE forgets the statistics targets when it recreates the extended statistics that depend on the altered column, or on an index that depends on the altered column.
The attached patches fix this limitation.
0002-Preserve-statistics-targets-of-indexes-rebuilt-by-AL.patch
Description: Binary data
0001-Preserve-statistics-target-of-extended-statistics-re.patch
Description: Binary data
