1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-09 18:21:05 +03:00
Alvaro Herrera 7009f1a2df 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 was passing the number
of attributes of the partition rather than the parent, which confused
the length check.  Repair.

This can cause pg_upgrade to fail when used on such a database.  Leave
some more objects around after regression tests, so that the case is
detected by pg_upgrade test suite.

Remove some spurious empty lines noticed while looking for other cases
of the same problem.

Discussion: https://postgr.es/m/20190326213924.GA2322@alvherre.pgsql
2019-03-26 20:19:39 -03:00
..
2018-04-26 14:47:16 -04:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-07-18 16:17:42 +03:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-01-02 23:30:12 -05:00
2018-03-16 13:18:06 -04:00
2018-01-02 23:30:12 -05:00
2018-03-16 13:18:06 -04:00
2018-10-03 13:11:44 -07:00
2018-04-26 14:47:16 -04:00
2018-04-26 14:47:16 -04:00
2018-04-12 11:22:56 +01:00
2018-01-02 23:30:12 -05:00
2018-04-26 14:47:16 -04:00
2018-04-07 17:45:39 -04:00
2018-01-19 14:01:15 -05:00
2018-01-02 23:30:12 -05:00