Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74a379b

Browse files
committed
Use repalloc_huge() to enlarge a SPITupleTable's tuple pointer array.
Commit23a27b0 widened the rows-stored counters to uint64, butthat's academic unless we allow the tuple pointer array to exceed 1GB.(It might be a good idea to provide some other limit on how much storagea SPITupleTable can eat. On the other hand, there are plenty of otherways to drive a backend into swap hell.)Dagfinn Ilmari Mannsåker
1 parent3adf9ce commit74a379b

File tree

1 file changed

+1
-1
lines changed
  • src/backend/executor

1 file changed

+1
-1
lines changed

‎src/backend/executor/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ spi_printtup(TupleTableSlot *slot, DestReceiver *self)
18001800
/* Double the size of the pointer array */
18011801
tuptable->free=tuptable->alloced;
18021802
tuptable->alloced+=tuptable->free;
1803-
tuptable->vals= (HeapTuple*)repalloc(tuptable->vals,
1803+
tuptable->vals= (HeapTuple*)repalloc_huge(tuptable->vals,
18041804
tuptable->alloced*sizeof(HeapTuple));
18051805
}
18061806

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp