X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id F2C73D1C94B for ; Thu, 15 Apr 2004 01:23:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 39124-02 for ; Thu, 15 Apr 2004 01:23:44 -0300 (ADT) Received: from web41608.mail.yahoo.com (web41608.mail.yahoo.com [66.218.93.108]) by svr1.postgresql.org (Postfix) with SMTP id 31019D1B49B for ; Thu, 15 Apr 2004 01:23:43 -0300 (ADT) Message-ID: <20040415042342.78626.qmail@web41608.mail.yahoo.com> Received: from [24.0.163.49] by web41608.mail.yahoo.com via HTTP; Wed, 14 Apr 2004 21:23:42 PDT Date: Wed, 14 Apr 2004 21:23:42 -0700 (PDT) From: Shelby Cain Subject: Re: Bulk updates/inserts To: Christoph Haller Cc: pgsql-interfaces@postgresql.org In-Reply-To: <200404141251.OAA21416@rodos> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/28 X-Sequence-Number: 4849 --- Christoph Haller wrote: > > There is a way to use COPY programmatically via > libpq: > > > PQexec("COPY xxx FROM stdin"); > for (...) > { > sprintf(buf, "%d\t%d\t...\n", > values[0], values[1], ... values[n]); > PQputline(conn, buf); > } > PQputline(conn, "\\.\n"); > PQendcopy(conn); > > Regards, Christoph > Excellent. That'll help reduce my load times. Thanks for the help. Regards, Shelby Cain __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html