Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f17fd6

Browse files
committed
Fix CompareIndexInfo's attnum comparisons
When an index column is an expression, it makes no sense to compare itsattribute numbers.This seems to account for remaining buildfarm fallout from8b08f7d.At least, it solves the issue in my local 32bit VM -- let's see what therest thinks.
1 parent8b9e964 commit7f17fd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/catalog/index.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,8 +1795,10 @@ CompareIndexInfo(IndexInfo *info1, IndexInfo *info2,
17951795
if (maplen<info2->ii_KeyAttrNumbers[i])
17961796
elog(ERROR,"incorrect attribute map");
17971797

1798-
if (attmap[info2->ii_KeyAttrNumbers[i]-1]!=
1799-
info1->ii_KeyAttrNumbers[i])
1798+
/* ignore expressions at this stage */
1799+
if ((info1->ii_KeyAttrNumbers[i]!=InvalidAttrNumber)&&
1800+
(attmap[info2->ii_KeyAttrNumbers[i]-1]!=
1801+
info1->ii_KeyAttrNumbers[i]))
18001802
return false;
18011803

18021804
if (collations1[i]!=collations2[i])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp