We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36389a0 commit 805a397Copy full SHA for 805a397
src/backend/utils/mmgr/README
@@ -67,6 +67,12 @@ chunk might later be repalloc'd larger; it can also be pfree'd without
67
error. Similarly, repalloc allows realloc'ing to zero size.
68
69
* pfree and repalloc do not accept a NULL pointer. This is intentional.
70
+(For repalloc, this is necessary: As mentioned above, repalloc does
71
+not depend on the current memory context. But then it needs to know
72
+which memory context to do the allocation in. So the first allocation
73
+has to be done outside of repalloc. For pfree, this behavior is
74
+mostly historical and partially because the extra check would impact
75
+performance.)
76
77
78
The Current Memory Context
0 commit comments