Re: poor performance when recreating constraints on large tables - Mailing list pgsql-performance

From Robert Haas
Subject Re: poor performance when recreating constraints on large tables
Date
Msg-id BANLkTi=zFRZb5AKXakVxvZqO=QWWCEGKZw@mail.gmail.com
Whole thread Raw
In response to Re: poor performance when recreating constraints on large tables  (Mike Broers <mbroers@gmail.com>)
Responses Re: poor performance when recreating constraints on large tables
List pgsql-performance
On Mon, Jun 6, 2011 at 6:10 PM, Mike Broers <mbroers@gmail.com> wrote:
> Thanks for the suggestion, maintenance_work_mem is set to the default of
> 16MB on the host that was taking over an hour as well as on the host that
> was taking less than 10 minutes.  I tried setting it to 1GB on the faster
> test server and it reduced the time from around 6-7 minutes to about 3:30.
>  this is a good start, if there are any other suggestions please let me know
> - is there any query to check estimated time remaining on long running
> transactions?

Sadly, no.  I suspect that coming up with a good algorithm for that is
a suitable topic for a PhD thesis.  :-(

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-performance by date:

Previous
From: Tony Capobianco
Date:
Subject: Re: Oracle v. Postgres 9.0 query performance
Next
From: "Kevin Grittner"
Date:
Subject: Re: Oracle v. Postgres 9.0 query performance