Re: COPY FROM STDIN instead of INSERT

Поиск
Список
Период
Сортировка
Искать
От
Merlin Moncure
Тема
Re: COPY FROM STDIN instead of INSERT
Дата
Msg-id
b42b73150610180854p2395d963j107d64aed22875b7@mail.gmail.com
Ответ на
Список
Дерево обсуждения
COPY FROM STDIN instead of INSERT "Ilja Golshtein" <ilejn@yandex.ru>
Re: COPY FROM STDIN instead of INSERT Shane Ambler <pgsql@007Marketing.com>
Re: COPY FROM STDIN instead of INSERT "Ilja Golshtein" <ilejn@yandex.ru>
Re: COPY FROM STDIN instead of INSERT Shane Ambler <pgsql@007Marketing.com>
Re: COPY FROM STDIN instead of INSERT "Ilja Golshtein" <ilejn@yandex.ru>
Re: COPY FROM STDIN instead of INSERT Martijn van Oosterhout <kleptog@svana.org>
Re: COPY FROM STDIN instead of INSERT "Ilja Golshtein" <ilejn@yandex.ru>
Re: COPY FROM STDIN instead of INSERT "Merlin Moncure" <mmoncure@gmail.com>
Re: COPY FROM STDIN instead of INSERT Ron Johnson <ron.l.johnson@cox.net>
Re: COPY FROM STDIN instead of INSERT "Merlin Moncure" <mmoncure@gmail.com>
Re: COPY FROM STDIN instead of INSERT Ron Johnson <ron.l.johnson@cox.net>
Re: COPY FROM STDIN instead of INSERT Alvaro Herrera <alvherre@commandprompt.com>
Re: COPY FROM STDIN instead of INSERT "Merlin Moncure" <mmoncure@gmail.com>
Re: COPY FROM STDIN instead of INSERT Shane Ambler <pgsql@007Marketing.com>
Re: COPY FROM STDIN instead of INSERT Casey Duncan <casey@pandora.com>
Re: COPY FROM STDIN instead of INSERT "Ilja Golshtein" <ilejn@yandex.ru>
Re: COPY FROM STDIN instead of INSERT "Merlin Moncure" <mmoncure@gmail.com>
On 10/18/06, Ron Johnson  wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/18/06 09:47, Merlin Moncure wrote:
> > On 10/18/06, Ron Johnson  wrote:
> >> > I tested binary quite a bit and only found it to be a win if moving
> >> > blobs in and out of the database.  On 'normal' tables of mixed fields
> >> > types of small size, it can actually be slower.  Binary is a bit
> >> > faster for native types and bytea, and slower for character types.
> >>
> >> "native types"?
> >
> > types operated on directly by the processor. int2, int4, int8, float4,
> > and float8, and their various aliases :).
> >
> > in short, i think using binary for anything other than bytea is a
> > waste of effort/time, except for bytea.
>
> That's counter-intuitive, since you'd (well, I'd) think that doing a
> binary copy would be faster since the code would bypass the int-to-
> ascii conversion.

you missed the point: binary copy is (very marginally) faster for
'native types' aka ints, etc.  however text fields are slower
according to my testing.  however, the speed differences are extremely
marginal overall.  only exception to this is binary (bytea)
fields...you get a 2x speed improvement easily due to skipping the
encoding.

merlin
В списке pgsql-general по дате отправления
От: Philip Hallstrom
Дата:
От: Tom Lane
Дата:
FAQ