pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shelby Cain <alyandon@yahoo.com>
To: Christoph Haller <ch@rodos.fzk.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Bulk updates/inserts
Date: Wed, 14 Apr 2004 21:23:42 -0700 (PDT)
Message-ID: <20040415042342.78626.qmail@web41608.mail.yahoo.com> (raw)
In-Reply-To: <200404141251.OAA21416@rodos>

--- Christoph Haller <ch@rodos.fzk.de> 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



view thread (3+ messages)

Message-ID: <20040415042342.78626.qmail@web41608.mail.yahoo.com>
Permalink:  ../20040415042342.78626.qmail@web41608.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040415042342.78626.qmail@web41608.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: alyandon@yahoo.com, ch@rodos.fzk.de
  Subject: Re: Bulk updates/inserts
  In-Reply-To: <20040415042342.78626.qmail@web41608.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox