Skip to content

Commit b555822

Browse files
committed
Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom
is eliminated (now I can copy 2000000-table from file without memmory exhausting).
1 parent 255363f commit b555822

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/commands/copy.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.17 1996/11/13 20:48:18 scrappy Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.18 1996/12/14 04:58:20 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -549,8 +549,12 @@ CopyFrom(Relation rel, bool binary, bool oids, FILE *fp, char *delim)
549549
}
550550
}
551551
if (done) continue;
552-
552+
553+
/*
554+
* Does it have any sence ? - vadim 12/14/96
555+
*
553556
tupDesc = CreateTupleDesc(attr_count, attr);
557+
*/
554558
tuple = heap_formtuple(tupDesc, values, nulls);
555559
if (oids)
556560
tuple->t_oid = loaded_oid;

0 commit comments

Comments
 (0)