创建带point类型表,使用point列创建spgist索引,插入超过10w条记录时失败

This commit is contained in:
lexin184383
2023-12-14 16:29:19 +08:00
committed by zhang_xubo
parent 905af8eb0f
commit 667dce8074

View File

@ -139,7 +139,7 @@ void spgPageIndexMultiDelete(SpGistState *state, Page page, OffsetNumber *itemno
* replacement tuples.) However, we must not scribble on the caller's
* array, so we have to make a copy.
*/
errorno = memcpy_s(sortednos, MaxIndexTuplesPerPage, itemnos, sizeof(OffsetNumber) * nitems);
errorno = memcpy_s(sortednos, sizeof(OffsetNumber) * MaxIndexTuplesPerPage, itemnos, sizeof(OffsetNumber) * nitems);
securec_check(errorno, "\0", "\0");
if (nitems > 1) {
qsort(sortednos, nitems, sizeof(OffsetNumber), cmpOffsetNumbers);