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

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: COPY Hacks (WAS: RE: Postgresql vs SQLserver for this
Дата
Msg-id 4254952A.7090705@familyhealth.com.au
обсуждение исходный текст
Ответ на COPY Hacks (WAS: RE: Postgresql vs SQLserver for this application ?)  (Mischa <mischa.Sandberg@telus.net>)
Список 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

В списке pgsql-performance по дате отправления:

Предыдущее
От: Alex Turner
Дата:
Сообщение: Re: How to improve db performance with $7K?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: How to improve db performance with $7K?