pgsql: Fix CompareIndexInfo's attnum comparisons

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix CompareIndexInfo's attnum comparisons
Date: 2018-01-19 20:01:04
Message-ID: E1eccqW-0004qW-0U@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix CompareIndexInfo's attnum comparisons

When an index column is an expression, it makes no sense to compare its
attribute numbers.

This seems to account for remaining buildfarm fallout from 8b08f7d4820f.
At least, it solves the issue in my local 32bit VM -- let's see what the
rest thinks.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7f17fd6fc7125b41218bc99ccfa8165e2d730cd9

Modified Files
--------------
src/backend/catalog/index.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-01-19 20:33:38 pgsql: Allow UPDATE to move rows between partitions.
Previous Message Peter Eisentraut 2018-01-19 19:21:14 pgsql: Replace AclObjectKind with ObjectType