mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 18:21:17 +02:00
Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom
is eliminated (now I can copy 2000000-table from file without memmory exhausting).
This commit is contained in:
parent
255363f859
commit
b555822fed
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.17 1996/11/13 20:48:18 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.18 1996/12/14 04:58:20 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -550,7 +550,11 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
|
|||||||
}
|
}
|
||||||
if (done) continue;
|
if (done) continue;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Does it have any sence ? - vadim 12/14/96
|
||||||
|
*
|
||||||
tupDesc = CreateTupleDesc(attr_count, attr);
|
tupDesc = CreateTupleDesc(attr_count, attr);
|
||||||
|
*/
|
||||||
tuple = heap_formtuple(tupDesc, values, nulls);
|
tuple = heap_formtuple(tupDesc, values, nulls);
|
||||||
if (oids)
|
if (oids)
|
||||||
tuple->t_oid = loaded_oid;
|
tuple->t_oid = loaded_oid;
|
||||||
|
Loading…
Reference in New Issue
Block a user