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

Commit39b0c76

Browse files
committed
Record the proper typmod for an index expression column.
We should use exprTypmod() to extract the typmod of the expression,instead of just blindly storing -1. This seems to have been an aboriginaloversight in commitfc8d970 whichintroduced general-expression indexes. The consequences are only cosmeticat present, since the index machinery doesn't really look at typmod forindex columns; but still it seems best to describe the column type asprecisely as we can. Per off-list complaint from Thomas Fanghaenel.
1 parent4bfc5f1 commit39b0c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/catalog/index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ ConstructTupleDescriptor(Relation heapRelation,
389389
to->attalign=typeTup->typalign;
390390
to->attstattarget=-1;
391391
to->attcacheoff=-1;
392-
to->atttypmod=-1;
392+
to->atttypmod=exprTypmod(indexkey);
393393
to->attislocal= true;
394394
to->attcollation=collationObjectId[i];
395395

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp