mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 10:40:57 +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 */
|
||||
IvfflatUpdateList(index, buildstate->listInfo[i], insertPage, InvalidBlockNumber, startPage, forkNum);
|
||||
}
|
||||
|
||||
pfree(tupdesc);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -249,7 +249,7 @@ IvfflatUpdateList(Relation index, ListInfo listInfo,
|
||||
TupleDesc
|
||||
IvfflatTupleDesc(Relation index)
|
||||
{
|
||||
TupleDesc tupdesc = RelationGetDescr(index);
|
||||
TupleDesc tupdesc = CreateTupleDescCopyConstr(RelationGetDescr(index));
|
||||
|
||||
/* Prevent compression */
|
||||
TupleDescAttr(tupdesc, 0)->attstorage = TYPSTORAGE_PLAIN;
|
||||
|
||||
Reference in New Issue
Block a user