Skip to content

Commit bed4db7

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 3cbebb4 commit bed4db7

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.17.2.1 1996/12/14 04:55:52 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy