Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbed4db7

Browse files
committed
Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom
is eliminated (now I can copy 2000000-table from file without memmoryexhausting).
1 parent3cbebb4 commitbed4db7

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)

[8]ページ先頭

©2009-2025 Movatter.jp