diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-12-06 12:36:44 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-12-06 12:45:49 -0300 |
commit | f858524ee4f0e7249959ee0ee8dd9f00b3e8d107 (patch) | |
tree | 1e55f648d4a67fa9fe4897d0f0cb108292038c32 /src/backend/access/common/heaptuple.c | |
parent | 8606271640401b5a4efd20c54e2850fa88118eb8 (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.c | 4 |
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); /* |