summaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-12-06 12:36:44 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-12-06 12:45:49 -0300
commitf858524ee4f0e7249959ee0ee8dd9f00b3e8d107 (patch)
tree1e55f648d4a67fa9fe4897d0f0cb108292038c32 /src/backend/access/common/heaptuple.c
parent8606271640401b5a4efd20c54e2850fa88118eb8 (diff)
Revert "Permit dump/reload of not-too-large >1GB tuples"
This reverts commit 646655d264f17cf7fdbc6425ef8bc9a2f9f9ee41. Per Tom Lane, changing the definition of StringInfoData amounts to an ABI break, which is unacceptable in back branches.
Diffstat (limited to 'src/backend/access/common/heaptuple.c')
-rw-r--r--src/backend/access/common/heaptuple.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/access/common/heaptuple.c b/src/backend/access/common/heaptuple.c
index 68eaa4bb41d..4363bc3d7e8 100644
--- a/src/backend/access/common/heaptuple.c
+++ b/src/backend/access/common/heaptuple.c
@@ -741,9 +741,7 @@ heap_form_tuple(TupleDesc tupleDescriptor,
* Allocate and zero the space needed. Note that the tuple body and
* HeapTupleData management structure are allocated in one chunk.
*/
- tuple = MemoryContextAllocExtended(CurrentMemoryContext,
- HEAPTUPLESIZE + len,
- MCXT_ALLOC_HUGE | MCXT_ALLOC_ZERO);
+ tuple = (HeapTuple) palloc0(HEAPTUPLESIZE + len);
tuple->t_data = td = (HeapTupleHeader) ((char *) tuple + HEAPTUPLESIZE);
/*