Re: Fast load

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Fast load
Дата
Msg-id Pine.LNX.4.30.0108250154060.677-100000@peter.localdomain
обсуждение исходный текст
Ответ на Fast load  ("Ted Rolle" <ted@tvlconn.com>)
Список pgsql-admin
Ted Rolle writes:

> We have 73 databases, two dozen with hundreds of thousands to millions of
> records, with lengths in the 500-byte range.  I'm planning to convert them
> >from Btrieve to PostgreSQL.
>
> Of course, I want the highest reasonable speed so that the conversion can be
> completed - say - in a week-end.

The fastest possible way to get data loaded into PostgreSQL is to create a
tab-delimited file and feed it directly to the backend with the COPY
command.  To speed things up even more, turn off fsync (-F), create the
indexes after loading, and the same with triggers, if you have any.  I'd
like to think that all of this should take significantly less than a
weekend. ;-)

Formatting the data into the right format for COPY can be done with your
favourite text mashing tools.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


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

Предыдущее
От: "Ted Rolle"
Дата:
Сообщение: RE: Fast load
Следующее
От: pmiranda@vm.com.br
Дата:
Сообщение: Re: Problems with remote access