Copy the tuple descriptor

This commit is contained in:
Andrew Kane
2023-10-22 19:36:45 -07:00
parent 592a711a94
commit 1749ecb6e7
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
/*

View File

@@ -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;