pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Mischa <mischa.Sandberg@telus.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: COPY Hacks (WAS: RE: Postgresql vs SQLserver for this
Date: Thu, 07 Apr 2005 10:04:26 +0800
Message-ID: <4254952A.7090705@familyhealth.com.au> (raw)
In-Reply-To: <1112813199.42542e8f17b4d@webmail.telus.net>
References: <OF9F44D17F.4458ADD0-ONC1256FDB.0027AF25-C1256FDB.002792BB@beauchamp.loxane.fr>
	<33c6269f05040608377dfc9272@mail.gmail.com>
	<1112813199.42542e8f17b4d@webmail.telus.net>

> Using COPY ... FROM STDIN via the Perl DBI (DBD::Pg) interface,
> I accidentally strung together several \n-terminated input lines,
> and sent them to the server with a single "putline".
> 
> To my (happy) surprise, I ended up with exactly that number of rows
> in the target table.
> 
> Is this a bug? Is this fundamental to the protocol?
> 
> Since it hasn't been documented (but then, "endcopy" isn't documented),
> I've been shy of investing in perf testing such mass copy calls.
> But, if it DOES work, it should be reducing the number of network 
> roundtrips.

I think it's documented in the libpq docs...

Chris



view thread (6+ messages)  latest in thread

Message-ID: <4254952A.7090705@familyhealth.com.au>
Permalink:  ../4254952A.7090705@familyhealth.com.au/
Also on:    postgresql.org/message-id/4254952A.7090705@familyhealth.com.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, mischa.Sandberg@telus.net
  Subject: Re: COPY Hacks (WAS: RE: Postgresql vs SQLserver for this
  In-Reply-To: <4254952A.7090705@familyhealth.com.au>
  References: <OF9F44D17F.4458ADD0-ONC1256FDB.0027AF25-C1256FDB.002792BB@beauchamp.loxane.fr> <33c6269f05040608377dfc9272@mail.gmail.com> <1112813199.42542e8f17b4d@webmail.telus.net> <4254952A.7090705@familyhealth.com.au>

* 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