Re: slow building index and reference after Sybase to Pg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gary Fu <gfu(at)sigmaspace(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: slow building index and reference after Sybase to Pg
Date: 2011-02-25 18:07:12
Message-ID: 29768.1298657232@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gary Fu <gfu(at)sigmaspace(dot)com> writes:
> I'm testing on converting a big Sybase db to Pg. It took about 45 hours
> to convert all sybase tables (bcp) to Pg (copy) without index and
> reference. After that I built the index (one by one, sequentially) and
> it took about 25 hours and then I started to add the references (one by
> one), however, it has been more than 30 hours and still has no sign of
> finishing. I wonder, is there any suggestion that may speed up the index
> and reference building (on Pg).

Have you read
http://www.postgresql.org/docs/9.0/static/populate.html
? In particular I'm wondering what you have maintenance_work_mem
set to.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-02-25 18:12:07 Re: Autovacuum Error Message out of memory
Previous Message akp geek 2011-02-25 15:42:18 Re: select to_timestamp('02/26/2011 14:50', 'MM/DD/YYYY HH24MI')