Re: slow dropping of tables, DropRelFileNodeBuffers, tas - Mailing list pgsql-hackers

From Sergey Koposov
Subject Re: slow dropping of tables, DropRelFileNodeBuffers, tas
Date
Msg-id alpine.LRH.2.02.1205311849370.6351@calx046.ast.cam.ac.uk
Whole thread Raw
In response to Re: slow dropping of tables, DropRelFileNodeBuffers, tas  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: slow dropping of tables, DropRelFileNodeBuffers, tas
Re: slow dropping of tables, DropRelFileNodeBuffers, tas
List pgsql-hackers
On Thu, 31 May 2012, Simon Riggs wrote:

>
> That struck me as a safe and easy optimisation. This was a problem I'd
> been trying to optimise for 9.2, so I've written a patch that appears
> simple and clean enough to be applied directly.

Thanks! The patch indeed improved the timings, 
The dropping of 100 tables in a single commit before the patch took ~ 50 
seconds, now it takes ~ 5 sec (it would be nice to reduce it further 
though, because the dropping of 10000 tables still takes ~10 min).

Cheers,    S

*****************************************************
Sergey E. Koposov, PhD, Research Associate
Institute of Astronomy, University of Cambridge
Madingley road, CB3 0HA, Cambridge, UK
Tel: +44-1223-337-551 Web: http://www.ast.cam.ac.uk/~koposov/


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Create collation incorrect error code
Next
From: Tom Lane
Date:
Subject: Re: Issues with MinGW W64