mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Revert "Permit dump/reload of not-too-large >1GB tuples"
This reverts commit 646655d264
.
Per Tom Lane, changing the definition of StringInfoData amounts to an
ABI break, which is unacceptable in back branches.
This commit is contained in:
@ -400,7 +400,7 @@ ReceiveCopyBegin(CopyState cstate)
|
||||
pq_sendint(&buf, format, 2); /* per-column formats */
|
||||
pq_endmessage(&buf);
|
||||
cstate->copy_dest = COPY_NEW_FE;
|
||||
cstate->fe_msgbuf = makeLongStringInfo();
|
||||
cstate->fe_msgbuf = makeStringInfo();
|
||||
}
|
||||
else if (PG_PROTOCOL_MAJOR(FrontendProtocol) >= 2)
|
||||
{
|
||||
@ -1865,7 +1865,7 @@ CopyTo(CopyState cstate)
|
||||
cstate->null_print_client = cstate->null_print; /* default */
|
||||
|
||||
/* We use fe_msgbuf as a per-row buffer regardless of copy_dest */
|
||||
cstate->fe_msgbuf = makeLongStringInfo();
|
||||
cstate->fe_msgbuf = makeStringInfo();
|
||||
|
||||
/* Get info about the columns we need to process. */
|
||||
cstate->out_functions = (FmgrInfo *) palloc(num_phys_attrs * sizeof(FmgrInfo));
|
||||
@ -2681,8 +2681,8 @@ BeginCopyFrom(Relation rel,
|
||||
cstate->cur_attval = NULL;
|
||||
|
||||
/* Set up variables to avoid per-attribute overhead. */
|
||||
initLongStringInfo(&cstate->attribute_buf);
|
||||
initLongStringInfo(&cstate->line_buf);
|
||||
initStringInfo(&cstate->attribute_buf);
|
||||
initStringInfo(&cstate->line_buf);
|
||||
cstate->line_buf_converted = false;
|
||||
cstate->raw_buf = (char *) palloc(RAW_BUF_SIZE + 1);
|
||||
cstate->raw_buf_index = cstate->raw_buf_len = 0;
|
||||
|
Reference in New Issue
Block a user