|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.12 1997/03/19 07:44:45 vadim Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.13 1997/03/24 07:39:47 vadim Exp $ |
11 | 11 | *
|
12 | 12 | *
|
13 | 13 | * INTERFACE ROUTINES
|
@@ -414,6 +414,9 @@ ConstructTupleDescriptor(Oid heapoid,
|
414 | 414 |
|
415 | 415 | to= (char*) (indexTupDesc->attrs[i ]);
|
416 | 416 | memcpy(to,from,ATTRIBUTE_TUPLE_SIZE);
|
| 417 | + |
| 418 | +((AttributeTupleForm)to)->attnum=i+1; |
| 419 | +((AttributeTupleForm)to)->attcacheoff=-1; |
417 | 420 |
|
418 | 421 | /* if the keytype is defined, we need to change the tuple form's
|
419 | 422 | atttypid & attlen field to match that of the key's type */
|
@@ -656,8 +659,10 @@ AppendAttributeTuples(Relation indexRelation, int numatts)
|
656 | 659 | * ----------------
|
657 | 660 | */
|
658 | 661 | replace[Anum_pg_attribute_attnum-1 ]='r';
|
| 662 | +replace[Anum_pg_attribute_attcacheoff-1 ]='r'; |
659 | 663 |
|
660 | 664 | value[Anum_pg_attribute_attnum-1 ]=Int16GetDatum(1);
|
| 665 | +value[Anum_pg_attribute_attcacheoff-1 ]=Int32GetDatum(-1); |
661 | 666 |
|
662 | 667 | tuple=heap_addheader(Natts_pg_attribute,
|
663 | 668 | sizeof*(indexRelation->rd_att->attrs[0]),
|
|