X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 480BB8B9B6C for ; Tue, 15 Feb 2005 02:29:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16024-02 for ; Tue, 15 Feb 2005 02:29:12 +0000 (GMT) Received: from millenium.mst.co.jp (millenium.mst.co.jp [210.251.240.193]) by svr1.postgresql.org (Postfix) with ESMTP id 449B28B9B8A for ; Tue, 15 Feb 2005 02:29:10 +0000 (GMT) Received: from mst1x5r347kymb (lc12114 [192.168.1.114]) by millenium.mst.co.jp (8.11.6p2/3.7W) with SMTP id j1F2RVQ19171; Tue, 15 Feb 2005 11:27:31 +0900 Message-ID: <009201c51306$6e9ece80$7201a8c0@mst1x5r347kymb> From: "Iain" To: "Michael Ryan S. Puncia" , References: <200502150202.j1F22flW029903@mail.census.gov.ph> Subject: Re: VACCUM FULL ANALYZE PROBLEM Date: Tue, 15 Feb 2005 11:31:14 +0900 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_008C_01C51351.DB73B840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200502/225 X-Sequence-Number: 10554 This is a multi-part message in MIME format. ------=_NextPart_000_008C_01C51351.DB73B840 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit >> But I need to do full vacuum because I deleted some of the fields that >> are not use anymore and I also add another fields. Is there >> another way to speed up full vacuum? Hmmm... a full vacuum may help to re-organize the structure of modified tables, but whether this is significant or not is another matter. I don't know enough of the internals to comment on that maybe someone else who knows more can. The obvious thing is the vacuum memory setting (in postgresql.conf). Presumably, you could set this quite high at least just for the duration of the vacuum anyway. Would the total time be reduced by dropping the indexes, then vacuuming and rebuilding the indexes? I havn't tried anything like this so I can't say. You should probably say what version of the db you are using and describe your system a little. Regards Iain ----- Original Message ----- From: Michael Ryan S. Puncia To: 'Iain' ; pgsql-performance@postgresql.org Sent: Tuesday, February 15, 2005 11:10 AM Subject: RE: [PERFORM] VACCUM FULL ANALYZE PROBLEM But I need to do full vacuum because I deleted some of the fields that are not use anymore and I also add another fields. Is there another way to speed up full vacuum? ------------------------------------------------------------------------------ From: Iain [mailto:iain@mst.co.jp] Sent: Tuesday, February 15, 2005 9:52 AM To: Michael Ryan S. Puncia; pgsql-performance@postgresql.org Subject: Re: [PERFORM] VACCUM FULL ANALYZE PROBLEM Hi, just make sure that your freespace map is big enough and then do a vacuum analyse without the full option. I can imagine that database performance might not be as good as it would be after a vacuum full, though I expect that it wouldn't make much difference. regards Iain ----- Original Message ----- From: Michael Ryan S. Puncia To: pgsql-performance@postgresql.org Sent: Tuesday, February 15, 2005 10:34 AM Subject: [PERFORM] VACCUM FULL ANALYZE PROBLEM Hi, I have 3 tables in the database with 80G of data, one of them is almost 40G and the remaining 2 tables has 20G each. We use this database mainly for query and updating is done only quarterly and the database perform well. My problem is after updating and then run VACCUM FULL ANALYZE vacuuming the tables takes days to complete. I hope someone can help me solve my problem. Thanks __________ NOD32 1.998 (20050212) Information __________ This message was checked by NOD32 Antivirus System. http://www.nod32.com ------=_NextPart_000_008C_01C51351.DB73B840 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable

>> But = I need to=20 do full vacuum because I deleted some of the fields that are not use = anymore and=20 I also add another fields. Is there

>> = another=20  way  to speed up full vacuum?

 

Hmmm... a = full vacuum=20 may help to re-organize the structure of modified tables, but whether = this is=20 significant or not is another matter. I don't know enough of the = internals to=20 comment on that maybe someone else who knows more = can.

 

The obvious = thing is=20 the vacuum memory setting (in postgresql.conf). Presumably, you could = set this=20 quite high at least just for the duration of the vacuum=20 anyway.

 

Would the = total time be=20 reduced by dropping the indexes, then vacuuming and rebuilding the = indexes? I=20 havn't tried anything like this so I can't say.

 

You should = probably say=20 what version of the db you are using and describe your system a=20 little.

 

Regards

Iain

-----=20 Original Message -----

From:=20 Michael=20 Ryan S. Puncia
To: 'Iain' ; pgsql-performance@postgr= esql.org=20
Sent: Tuesday, February = 15, 2005=20 11:10 AM
Subject: RE: [PERFORM] = VACCUM FULL=20 ANALYZE PROBLEM

 

But I need = to do full=20 vacuum because I deleted some of the fields that are not use anymore = and I=20 also add another fields. Is there

another =  way=20  to speed up full vacuum?

 

 


From: Iain=20 [mailto:iain@mst.co.jp]
Sent:
Tuesday, February 15, = 2005 9:52=20 AM
To: Michael Ryan = S.=20 Puncia; pgsql-performance@postgr= esql.org
Subject: Re: [PERFORM] VACCUM = FULL=20 ANALYZE PROBLEM

 

Hi,

 

just make sure = that your=20 freespace map is big enough and then do a vacuum analyse without the = full=20 option.

 

I can imagine = that=20 database performance might not be as good as it would be after a = vacuum full,=20 though I expect that it wouldn't make much=20 difference.

 

regards

Iain=20

----- = Original Message=20 -----

From: Michael Ryan=20 S. Puncia

To: pgsql-performance@postgr= esql.org=20

Sent: Tuesday, = February 15,=20 2005 10:34 AM

Subject: [PERFORM] = VACCUM FULL=20 ANALYZE PROBLEM

 

Hi,

 

I have 3 tables in the = database=20 with 80G of data, one of them is almost 40G and the remaining 2 = tables has=20 20G each.

We use this database mainly for query and = updating=20 is done only quarterly and the database perform well. My=20 problem

is after updating and then run VACCUM FULL = ANALYZE=20  vacuuming the tables takes days to complete. I hope=20 someone

can help me solve my=20 problem.

 

Thanks

 

 



__________ NOD32 1.998 (20050212) = Information=20 __________

This message was checked by NOD32 Antivirus = System.
http://www.nod32.com<= /FONT>

------=_NextPart_000_008C_01C51351.DB73B840--