Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 8C34A9FA111 for ; Mon, 20 Nov 2006 07:42:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 03146-08 for ; Mon, 20 Nov 2006 07:42:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from nihrelayxway2.hub.nih.gov (mailfwd.nih.gov [128.231.90.107]) by postgresql.org (Postfix) with ESMTP id 7F5F39F9EED for ; Mon, 20 Nov 2006 07:42:25 -0400 (AST) Received: from pressa.nci.nih.gov ([137.187.209.230]) by nihrelayxway2.hub.nih.gov with ESMTP; 20 Nov 2006 06:42:24 -0500 X-IronPortListener: NIH_Relay X-SBRS: None X-IronPort-AV: i="4.09,440,1157342400"; d="scan'208"; a="225438521:sNHT14038428" From: Sean Davis Reply-To: sdavis2@mail.nih.gov Organization: NIH/NCI To: pgsql-interfaces@postgresql.org Subject: Re: ECPG and COPY FROM STDIN Date: Mon, 20 Nov 2006 06:42:23 -0500 User-Agent: KMail/1.9.1 Cc: Niels Laakmann References: <20061120111317.9889D77A3B@mail.toxisch.net> In-Reply-To: <20061120111317.9889D77A3B@mail.toxisch.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611200642.23872.sdavis2@mail.nih.gov> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/2 X-Sequence-Number: 6317 On Monday 20 November 2006 06:12, Niels Laakmann wrote: > Hey List! > I have to do a Benchmark-Test in C (ECPG) with and without network. > After reading the Performance and COPY Documentation (not correctly), I > wanted to Copy a File over the Network by using "COPY FROM 'filename'". > After some curious Problems I knew why. > Now I read some about "COPY FROM STDIN. But I didn't find an Example. > Can someone please give me an Example for that ? > > Or: > > Is there another command to insert many tuples from a Client to a > Server in an adequate time ? How about here: http://www.postgresql.org/docs/8.1/interactive/libpq-copy.html Sean