pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek Lewczuk <newsy@lewczuk.com>
To: Goutam Paruchuri <gparuchuri@oneil.com>
Cc: Lista dyskusyjna pgsql-general <pgsql-general@postgresql.org>
Cc: Lista dyskusyjna pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: how to use COPY within plperl
Date: Mon, 08 Nov 2004 20:14:22 +0100
Message-ID: <418FC58E.1000404@lewczuk.com> (raw)
In-Reply-To: <B2C547DF42419645804F05B54290755ADC7C9A@DAYTONEX.oneilinc.net>
References: <B2C547DF42419645804F05B54290755ADC7C9A@DAYTONEX.oneilinc.net>

Goutam Paruchuri wrote:
> Why can you not use simple insert statements (sql insert).
> Copy is meant to transfer large amount of data from text files to
> databases and vice versa.
"Insert" is much slower if there are many (hundreds, thousands) data to 
be inserted - and in my case there will be thousands of inserts made by 
plperl. I can make a file with the data (and load using COPY), but it 
would be better to use copy from stdin.

Thanks

ML

 



view thread (3+ messages)

Message-ID: <418FC58E.1000404@lewczuk.com>
Permalink:  ../418FC58E.1000404@lewczuk.com/
Also on:    postgresql.org/message-id/418FC58E.1000404@lewczuk.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-sql@postgresql.org
  Cc: newsy@lewczuk.com, gparuchuri@oneil.com, pgsql-general@postgresql.org
  Subject: Re: how to use COPY within plperl
  In-Reply-To: <418FC58E.1000404@lewczuk.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