Re: COPY Hacks (WAS: RE: Postgresql vs SQLserver for this

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Mischa <mischa(dot)Sandberg(at)telus(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: COPY Hacks (WAS: RE: Postgresql vs SQLserver for this
Date: 2005-04-07 02:04:26
Message-ID: 4254952A.7090705@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Stark 2005-04-07 03:00:54 Re: How to improve db performance with $7K?
Previous Message Alex Turner 2005-04-07 01:23:59 Re: How to improve db performance with $7K?