Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1A4E2635157 for ; Tue, 31 Mar 2009 13:14:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 50405-02-8 for ; Tue, 31 Mar 2009 13:14:15 -0300 (ADT) X-Greylist: delayed 00:08:04.945434 by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mail.postgresql.org (Postfix) with ESMTP id 7F0A0636F7E for ; Tue, 31 Mar 2009 13:12:20 -0300 (ADT) Received: by qw-out-2122.google.com with SMTP id 8so1805883qwh.61 for ; Tue, 31 Mar 2009 09:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1WfVHTA0gfwT2iG7RSchnVQAzDutLrqJ+4QhPEyEFx0=; b=tLxVN//SDXniMMP1lsdPd8sjBjgbe35jXlxnAWeVA1DfyNq9O7U6WJ+FNm+rV1Oby6 sy8WRSqQaKh0Lg3gS6zMic8Uhksxjgb0VRDBcbRTB9f4JcR8cA7WrAA3S2CXFoODp4eY Yf+Gz+zlZWiD7iavo4bQfPQ7nVUKBCrrsuMFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cGNNpqcnbE21PyuPbE46KdXDWCXvIfSxNGAu9d9mbQi1jHlzoMzxGQ3JPZD9HugxHW CQID2Ir9ovVKX5dE+7+v781mBeWyuQd+RuNq8KOBMOvThIe5zmsBgT6Kd/z6pDk36h7K oamiSNU5hK0pPOHjqUltdadlnvZcFPUPWWIzA= MIME-Version: 1.0 Received: by 10.229.84.196 with SMTP id k4mr2531764qcl.86.1238515455739; Tue, 31 Mar 2009 09:04:15 -0700 (PDT) Date: Tue, 31 Mar 2009 13:04:15 -0300 Message-ID: <3a0028490903310904q3df73b6dob4d62511df38563c@mail.gmail.com> Subject: Vacuum Full From: Rafael Domiciano To: "pgsql-admin@postgresql.org" Content-Type: multipart/alternative; boundary=001636427491c9c98704666c59e5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200903/268 X-Sequence-Number: 31768 --001636427491c9c98704666c59e5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello People, I have some doubts about Vacuum Full. There We go: 1) The Only thing that *Vacuum Full* (Only Full, not Analyze) is to clean "dead space" on the disc, and reorganize the relation at the physical level? If it's true, so doing this may speed up *select's*, while the Postgres will going to do less hit in the disc. I'm right? 2) Doing only *Vacuum Analyze* I have a enlargement of the parameter * max_fsm_pages*. Does it have any impact in the operation? Should I increment the value in the conf to be so large than the Vacuum Verbose shows me? 3) There are differences in performace of Vacuum Full between versions 8.1.4 and 8.3.7? As soon as possible we are going to migrate the Postgres to 8.3.7, just waiting the finish of the tests of the software in the new version. 4) The right way to run Vacuum and Reindex is: Vacuum and Reindex or Reindex and Vacuum? Running Vacuum I have a Index Bloat, right?! So I have to run Reindex afet Vacuum?! If true I'll change the script to make first Vacuum and then Reindex. 5) Does have any way to see how much is left to finish vacuum? Example: select * from vacuum_finish; Relation Total Bytes Total Bytes Done Total Bytes Remaining Table01 1000 600 400 Or Something like that! Thnks for responses, Rafael Domiciano --001636427491c9c98704666c59e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello People,

I have some doubts about Vacuum Full. There We go:
= 1) The Only thing that Vacuum Full (Only Full, not Analyze) is to cl= ean "dead space" on the disc, and reorganize the relation at the = physical level?
If it's true, so doing this may speed up select's, while the= Postgres will going to do less hit in the disc. I'm right?

2) D= oing only Vacuum Analyze I have a enlargement of the parameter ma= x_fsm_pages. Does it have any impact in the operation?
Should I increment the value in the conf to be so large than the Vacuum Ver= bose shows me?

3) There are differences in performace of Vacuum Full= between versions 8.1.4 and 8.3.7?
As soon as possible we are going to m= igrate the Postgres to 8.3.7, just waiting the finish of the tests of the s= oftware in the new version.

4) The right way to run Vacuum and Reindex is: Vacuum and Reindex or Re= index and Vacuum?
Running Vacuum I have a Index Bloat, right?! So I have= to run Reindex afet Vacuum?!
If true I'll change the script to make= first Vacuum and then Reindex.

5) Does have any way to see how much is left to finish vacuum?
Examp= le:
select * from vacuum_finish;
Relation=A0=A0 Total Bytes=A0=A0=A0 = Total Bytes Done=A0=A0=A0=A0=A0 Total Bytes Remaining
Table01=A0=A0=A0 1= 000=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 600=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 400

Or Something like that!


Thnks for responses,

Rafael D= omiciano
--001636427491c9c98704666c59e5--