Re: Bulk Insert into PostgreSQL

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Bulk Insert into PostgreSQL
Дата
Msg-id CAMsr+YFH=HVr5_q4Hqt4YPJyjGAmqsD8aDqTwqBF58CtT6HHOw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bulk Insert into PostgreSQL  (Srinivas Karthik V <skarthikv.iitb@gmail.com>)
Ответы Re: Bulk Insert into PostgreSQL  (Ashwin Agrawal <aagrawal@pivotal.io>)
Список pgsql-hackers
On 30 June 2018 at 06:47, Srinivas Karthik V <skarthikv.iitb@gmail.com> wrote:
I was using copy command to load. Removing the primary key constraint on the table and then loading it helps a lot. In fact, a 400GB table was loaded and the primary constraint was added in around 15 hours.  Thanks for the wonderful suggestions. 


You can also gain a bit by running with wal_level = minimal. On newer version you can use UNLOGGED tables then convert them to logged, but that won't be an option for 9.4.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix "base" snapshot handling in logical decoding
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Concurrency bug in UPDATE of partition-key