Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B1771632566 for ; Fri, 11 Jun 2010 11:50:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 77419-04 for ; Fri, 11 Jun 2010 14:50:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from snt0-omc1-s43.snt0.hotmail.com (snt0-omc1-s43.snt0.hotmail.com [65.54.61.80]) by mail.postgresql.org (Postfix) with ESMTP id F395763234F for ; Fri, 11 Jun 2010 11:50:23 -0300 (ADT) Received: from SNT123-W2 ([65.55.90.8]) by snt0-omc1-s43.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 11 Jun 2010 07:50:19 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_85e18b78-35f1-4e3f-9142-d179d668e352_" X-Originating-IP: [204.132.58.73] From: dx k9 To: posgres support Subject: check_postgres_bloat Date: Fri, 11 Jun 2010 10:50:20 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 11 Jun 2010 14:50:19.0633 (UTC) FILETIME=[6984DE10:01CB0975] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.791 tagged_above=-10 required=5 tests=BAYES_50=0.8, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/98 X-Sequence-Number: 34876 --_85e18b78-35f1-4e3f-9142-d179d668e352_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C =20 I'm running a the check_postgres.pl --action=3Dbloat on a database and find= ing that there is wasted space. =20 I'm using 95% for the crtical %. If I use 110% I get the same things=2C bu= t 115% shows everything is OK. =20 check_postgres_bloat -H host -p port -db thing -t thing1 -c 95% check_postgres.pl version 2.14.3 postgres version 8.3.9 =20 =20 POSTGRES_BLOAT CRITICAL: service=3Dthing1 (db thing) table public.thing1 ro= ws:25537152 pages:212311 shouldbe:187545 (1.1X) wasted size:202883072 (193 = MB) * (db thing) table public.thing2 rows:10109173 pages:101832 shouldbe:94= 016 (1.1X) wasted size:64028672 (61 MB) * (db thing) table thing3 rows:1184= 946 pages:28701 shouldbe:21434 (1.3X) wasted size:59531264 (56 MB) *=20 =20 =20 I have run a reindexdb on the table=2C full vacuum (fze)=2C still I can't g= et the wasted size to go down on these=2C so I continue to get critical ale= rts that my tables are bloated. =20 check_postgres checks for both index and table bloat. It looks like my ind= exes are ok=2C this is just picking up on table bloat. I'm not sure what I= can do to reclaim the wasted space other than vacuum full & analyze. Mayb= e a pgdump will do it. =20 Thanks for any insight=2C ~DjK =20 =20 _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your = inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID28326::T:WLMTAGL:O= N:WL:en-US:WM_HMP:042010_2= --_85e18b78-35f1-4e3f-9142-d179d668e352_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C
 =3B
I'm running a the check_postgres.pl --action=3Dbloat on a database and find= ing that there is wasted space.
 =3B
I'm using 95% for the crtical %. =3B If I use 110% I get the same thing= s=2C but 115% shows everything is OK.
 =3B
check_postgres_bloat -H host -p port -db thing -t thing1 -c 95%
check_postgres.pl version 2.14.3
postgres version 8.3.9
 =3B
 =3B

POSTGRES_BLOAT CRITICAL: service=3Dthing1 (db thing) table publ= ic.thing1 rows:25537152 pages:212311 shouldbe:187545 (1.1X) wasted size:202= 883072 (193 MB) * (db thing) table public.thing2 rows:10109173 pages:101832= shouldbe:94016 (1.1X) wasted size:64028672 (61 MB) * (db thing) table = =3Bthing3 rows:1184946 pages:28701 shouldbe:21434 (1.3X) wasted size:595312= 64 (56 MB) * =3B

 =3B

 =3B

I =3Bhave run a reindexdb on the table=2C =3Bfull vacuu= m (fze)=2C still I can't get the wasted size to go down on these=2C so I co= ntinue to get critical alerts that my tables are bloated.

 =3B

check_postgres checks for both index and table bloat. =3B I= t looks like my indexes are ok=2C this is just picking up on table bloat.&n= bsp=3B I'm not sure what I can do to reclaim the wasted space other than va= cuum full &=3B =3Banalyze. =3B Maybe a pgdump will do it.=

 =3B

Thanks for any insight=2C

~DjK

 =3B

 =3B

=

Hotmail is redefining busy with tools for the New Busy. Get = more from your inbox. See how. = --_85e18b78-35f1-4e3f-9142-d179d668e352_--