|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.66 1998/12/15 12:45:43 vadim Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.67 1999/01/21 22:48:05 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *
|
13 | 13 | * INTERFACE ROUTINES
|
@@ -82,7 +82,7 @@ static void
|
82 | 82 | staticvoidUpdateIndexRelation(Oidindexoid,Oidheapoid,
|
83 | 83 | FuncIndexInfo*funcInfo,intnatts,
|
84 | 84 | AttrNumber*attNums,Oid*classOids,Node*predicate,
|
85 |
| -List*attributeList,boolislossy,boolunique); |
| 85 | +List*attributeList,boolislossy,boolunique,boolprimary); |
86 | 86 | staticvoidDefaultBuild(RelationheapRelation,RelationindexRelation,
|
87 | 87 | intnumberOfAttributes,AttrNumber*attributeNumber,
|
88 | 88 | IndexStrategyindexStrategy,uint16parameterCount,
|
@@ -734,7 +734,8 @@ UpdateIndexRelation(Oid indexoid,
|
734 | 734 | Node*predicate,
|
735 | 735 | List*attributeList,
|
736 | 736 | boolislossy,
|
737 |
| -boolunique) |
| 737 | +boolunique, |
| 738 | +boolprimary) |
738 | 739 | {
|
739 | 740 | Form_pg_indexindexForm;
|
740 | 741 | IndexElem*IndexKey;
|
@@ -775,6 +776,7 @@ UpdateIndexRelation(Oid indexoid,
|
775 | 776 | indexForm->indproc= (PointerIsValid(funcInfo)) ?
|
776 | 777 | FIgetProcOid(funcInfo) :InvalidOid;
|
777 | 778 | indexForm->indislossy=islossy;
|
| 779 | +indexForm->indisprimary=primary; |
778 | 780 | indexForm->indisunique=unique;
|
779 | 781 |
|
780 | 782 | indexForm->indhaskeytype=0;
|
@@ -1014,7 +1016,8 @@ index_create(char *heapRelationName,
|
1014 | 1016 | Datum*parameter,
|
1015 | 1017 | Node*predicate,
|
1016 | 1018 | boolislossy,
|
1017 |
| -boolunique) |
| 1019 | +boolunique, |
| 1020 | +boolprimary) |
1018 | 1021 | {
|
1019 | 1022 | RelationheapRelation;
|
1020 | 1023 | RelationindexRelation;
|
@@ -1126,7 +1129,7 @@ index_create(char *heapRelationName,
|
1126 | 1129 | */
|
1127 | 1130 | UpdateIndexRelation(indexoid,heapoid,funcInfo,
|
1128 | 1131 | numatts,attNums,classObjectId,predicate,
|
1129 |
| -attributeList,islossy,unique); |
| 1132 | +attributeList,islossy,unique,primary); |
1130 | 1133 |
|
1131 | 1134 | predInfo= (PredInfo*)palloc(sizeof(PredInfo));
|
1132 | 1135 | predInfo->pred=predicate;
|
|