Re: Concurrent COPY commands

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Concurrent COPY commands
Дата
Msg-id 200807021002.48627@hal.medialogik.com
обсуждение исходный текст
Ответ на Concurrent COPY commands  (Phillip Sitbon <phillip@sitbon.net>)
Ответы Re: Concurrent COPY commands
Список pgsql-novice
On Wednesday 02 July 2008, Phillip Sitbon <phillip@sitbon.net> wrote:
> Hello,
>
> I am running some queries that use multiple connections to issue COPY
> commands which bring data into the same table via different files (FIFOs
> to be precise). This is being done on a SMP machine and I am noticing
> that none of the postgres worker processes operate in parallel, even
> though there is data available to all of them. The performance is nearly
> exactly the same as it is for issuing a single COPY command.
> Is this
> normal behavior, even with all of the separate transactions still in
> progress? Would I be better off doing multithreaded bulk inserts from my
> C program rather than sending the data to FIFOs?

Sounds like you're I/O bound - I doubt any other concurrency mechanism will
change that much.

>
> The machine I am using has 16GB of memory and 8 cores, so I've tried to
> optimize the configuration accordingly but I am a little lost in some
> places.

Ah, but what does your RAID controller and drives look like?


--
Alan

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Calculating repeating events - functionality lost with the demise of tinterval ?
Следующее
От: richard terry
Дата:
Сообщение: date formatting question