are there any methods to disable updating index before inserting large number tuples?

Поиск
Список
Период
Сортировка
Искать
От
sunpeng
Тема
are there any methods to disable updating index before inserting large number tuples?
Дата
Msg-id
CAOYKhLrpS0zZJcP_J_a8A-oSZnC5BX0krS42UzJoc+pgGkSSzQ@mail.gmail.com
Список
Дерево обсуждения
are there any methods to disable updating index before inserting large number tuples? sunpeng <bluevaley@gmail.com>
Re: are there any methods to disable updating index before inserting large number tuples? Andrew Sullivan <ajs@crankycanuck.ca>
Re: are there any methods to disable updating index before inserting large number tuples? John R Pierce <pierce@hogranch.com>
Re: are there any methods to disable updating index before inserting large number tuples? Andres Freund <andres@anarazel.de>
Re: are there any methods to disable updating index before inserting large number tuples? John R Pierce <pierce@hogranch.com>
hi, friends,
  Now each hour I want to insert about 20 millions tuples into table A,  which has a  btree index.
  How to disable index update before inserting those 20 millions tuples, and then enable it after those tuples having being inserted? Just as the followings:
  >disable index update
  >insert into A ....//here will insert 20 millions tuples
  > enable index update

  The purpose is to improve the performance.
  Thanks!
peng
В списке pgsql-general по дате отправления
От: Andrew Sullivan
Дата:
FAQ