Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8493C9FBDB9 for ; Fri, 12 Oct 2007 18:19:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 87313-07 for ; Fri, 12 Oct 2007 18:19:10 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from bay0-omc2-s8.bay0.hotmail.com (bay0-omc2-s8.bay0.hotmail.com [65.54.246.144]) by postgresql.org (Postfix) with ESMTP id B71E49FBF46 for ; Fri, 12 Oct 2007 18:19:10 -0300 (ADT) Received: from BAY124-W9 ([207.46.11.172]) by bay0-omc2-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 12 Oct 2007 14:19:09 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_b6086ee9-a28d-4268-8f35-ab1a788774d4_" X-Originating-IP: [86.81.58.36] From: henk de wit To: "pgsql-performance@postgresql.org" Subject: Re: How to speed up min/max(id) in 50M rows table? Date: Fri, 12 Oct 2007 23:19:09 +0200 Importance: Normal In-Reply-To: <470F9863.EE98.0025.0@wicourts.gov> References: <470F9863.EE98.0025.0@wicourts.gov> MIME-Version: 1.0 X-OriginalArrivalTime: 12 Oct 2007 21:19:09.0886 (UTC) FILETIME=[878035E0:01C80D15] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/154 X-Sequence-Number: 27176 --_b6086ee9-a28d-4268-8f35-ab1a788774d4_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Do you have autovacuum turned on? With what settings? Yes, I have it turned on. The settings are: autovacuum on=20 autovacuum_analyze_scale_factor 0.1 autovacuum_analyze_threshold 250 autovacuum_freeze_max_age 200000000 autovacuum_naptime 1min=20 autovacuum_vacuum_cost_delay -1 autovacuum_vacuum_cost_limit -1 autovacuum_vacuum_scale_factor 0.2 autovacuum_vacuum_threshold 500 vacuum_cost_delay 0 vacuum_cost_limit 200 vacuum_cost_page_dirty 20 vacuum_cost_page_hit 1 vacuum_cost_page_miss 10 vacuum_freeze_min_age 100000000 > Do you run scheduled VACUUM ANALYZE? This too, every night. > What does the tail of the output from your last > VACUUM ANALYZE VERBOSE look like? I'll try to look it up and post it back here once I got it. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= --_b6086ee9-a28d-4268-8f35-ab1a788774d4_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Do you have autovacuum turned on? With what= settings?

Yes, I have it turned on. The settings are:

autova= cuum     on
autovacuum_analyze_scale_factor   =   0.1
autovacuum_analyze_threshold     250
autova= cuum_freeze_max_age     200000000
autovacuum_naptime &nbs= p;   1min
autovacuum_vacuum_cost_delay     -1<= br>autovacuum_vacuum_cost_limit     -1
autovacuum_vacuum_= scale_factor     0.2
autovacuum_vacuum_threshold  &n= bsp;  500
vacuum_cost_delay     0
vacuum_cost_lim= it     200
vacuum_cost_page_dirty     20vacuum_cost_page_hit     1
vacuum_cost_page_miss  =    10
vacuum_freeze_min_age     100000000
> Do you run scheduled VACUUM ANALYZE?

This too, every night.
> What does the tail of the output from your last
> VACUUM A= NALYZE VERBOSE look like?

I'll try to look it up and post it back he= re once I got it.


Express yourself instantly with MSN Messen= ger! MSN Messenger = --_b6086ee9-a28d-4268-8f35-ab1a788774d4_--