mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 00:26:55 +08:00
Copy the tuple descriptor
This commit is contained in:
@@ -339,6 +339,8 @@ InsertTuples(Relation index, IvfflatBuildState * buildstate, ForkNumber forkNum)
|
|||||||
/* Set the start and insert pages */
|
/* Set the start and insert pages */
|
||||||
IvfflatUpdateList(index, buildstate->listInfo[i], insertPage, InvalidBlockNumber, startPage, forkNum);
|
IvfflatUpdateList(index, buildstate->listInfo[i], insertPage, InvalidBlockNumber, startPage, forkNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfree(tupdesc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ IvfflatUpdateList(Relation index, ListInfo listInfo,
|
|||||||
TupleDesc
|
TupleDesc
|
||||||
IvfflatTupleDesc(Relation index)
|
IvfflatTupleDesc(Relation index)
|
||||||
{
|
{
|
||||||
TupleDesc tupdesc = RelationGetDescr(index);
|
TupleDesc tupdesc = CreateTupleDescCopyConstr(RelationGetDescr(index));
|
||||||
|
|
||||||
/* Prevent compression */
|
/* Prevent compression */
|
||||||
TupleDescAttr(tupdesc, 0)->attstorage = TYPSTORAGE_PLAIN;
|
TupleDescAttr(tupdesc, 0)->attstorage = TYPSTORAGE_PLAIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user