Re: pg_restore takes ages

Поиск
Список
Период
Сортировка
Искать
От
Shridhar Daithankar
Тема
Re: pg_restore takes ages
Дата
Msg-id
3F7D3393.8020608@persistent.co.in
Ответ на
Список
Дерево обсуждения
Re: pg_restore takes ages Vivek Khera <khera@kcilink.com>
Re: pg_restore takes ages Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages Vivek Khera <khera@kcilink.com>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages Alvaro Herrera <alvherre@dcc.uchile.cl>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages Bruce Momjian <pgman@candle.pha.pa.us>
Re: pg_restore takes ages "scott.marlowe" <scott.marlowe@ihs.com>
Re: pg_restore takes ages Bruce Momjian <pgman@candle.pha.pa.us>
Alex wrote:

> Hi,
> I use pg_restore to load a previously dumped database.  (10mil records).
> the load of the data runs quite fast but when starting creating the 
> triggers for foreign keys it takes forever.
> 
> Isnt there are a faster way. after all the triggers in the source db 
> already made sure the data was clean.

You can try creating index/triggers first and load the data. At the end it will 
take a while before you get a usable database with either approach but see what 
works faster for you.

Personally I was in a situation where postgresql was hogging space while 
creating index on a table that had 81M rows with 3GB disk footprint. I dropped 
the table and recreated it. Also created index before loading data. The loading 
was slow with this approach but it finished in 3 hours. And I had an updated 
index as well. Just had to run vacuum over it.

Take your pick..

  Shridhar


В списке pgsql-general по дате отправления
От: Robert Wille
Дата:
Сообщение: LC_COLLATE=C not working
От: Peter Childs
Дата:
FAQ