Re: autocommit (true/false) for more than 1 million records

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: autocommit (true/false) for more than 1 million records
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17D2F06F@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: autocommit (true/false) for more than 1 million records  (Felipe Santos <felipepts@gmail.com>)
Список pgsql-performance
[about loadling large amounts of data]

Felipe Santos wrote:
> This might also help:
> http://www.postgresql.org/docs/9.1/static/populate.html
> 
> 
> Bulk load tables from text files in almost all RDMS are "log free" (Postgres' COPY is one of them).
> 
> The reason is that the database doesn't need to waste resources by writing the log because there's no
> risk of data loss. If the COPY operation fails, your data will still live in the text files you're
> trying to bulk load from.

That is only true if the table was created in the same transaction as the COPY statement.

Otherwise it could be that recovery starts after CREATE TABLE but before COPY, and
it would have to recover the loaded data.

Yours,
Laurenz Albe

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

Предыдущее
От: Felipe Santos
Дата:
Сообщение: Re: autocommit (true/false) for more than 1 million records
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: autocommit (true/false) for more than 1 million records