Re: bulk inserts

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: bulk inserts
Дата
Msg-id 20090928205236.GD5407@samason.me.uk
обсуждение исходный текст
Ответ на bulk inserts  (Dave Huber <DHuber@letourneautechnologies.com>)
Ответы Re: bulk inserts  (Dave Huber <DHuber@letourneautechnologies.com>)
Re: bulk inserts  (Martin Gainty <mgainty@hotmail.com>)
Список pgsql-general
On Mon, Sep 28, 2009 at 10:38:05AM -0500, Dave Huber wrote:
> Using COPY is out of the question as the file is not formatted for
> that and since other operations need to occur, the file needs to be
> read sequentially anyway.

Just to expand on what Martin said; if you can generate a set of EXECUTE
commands, you can certainly generate a COPY command to insert the same
data.  The advantage is a large drop in parse time for inserting larger
numbers of rows.  As you're saying you want to insert 500 rows, I'd
suggest at least trying to get COPY working.

--
  Sam  http://samason.me.uk/

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: PostgreSQL reads each 8k block - no larger blocks are used - even on sequential scans
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgday.eu 2009: Schedule available and registration open