pgsql: Fix partitioned index creation bug with dropped columns

2019-03-26 Thread Alvaro Herrera
Fix partitioned index creation bug with dropped columns ALTER INDEX .. ATTACH PARTITION fails if the partitioned table where the index is defined contains more dropped columns than its partition, with this message: ERROR: incorrect attribute map The cause was that one caller of CompareIndexInfo

pgsql: Fix partitioned index creation bug with dropped columns

2019-03-26 Thread Alvaro Herrera
Fix partitioned index creation bug with dropped columns ALTER INDEX .. ATTACH PARTITION fails if the partitioned table where the index is defined contains more dropped columns than its partition, with this message: ERROR: incorrect attribute map The cause was that one caller of CompareIndexInfo