Commit b555822f authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom

is eliminated (now I can copy 2000000-table from file without memmory
exhausting).
parent 255363f8
...@@ -6,7 +6,7 @@ ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment