Received: from mocha2.baileylink.net (mocha2.baileylink.net [12.152.112.28]) by postgresql.org (8.11.3/8.11.4) with SMTP id fATI0Em79962 for ; Thu, 29 Nov 2001 13:00:14 -0500 (EST) (envelope-from banghe@baileylink.net) Received: (qmail 7499 invoked from network); 29 Nov 2001 17:53:45 -0000 Received: from dhcp61.baileylink.net (HELO baileylink.net) (12.152.112.61) by mocha2.baileylink.net with SMTP; 29 Nov 2001 17:53:45 -0000 Message-ID: <3C0677C3.6D244165@baileylink.net> Date: Thu, 29 Nov 2001 12:00:35 -0600 From: bangh X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en,zh-CN,zh,zh-TW,pdf MIME-Version: 1.0 To: "Leong, Fushan" CC: pgsql-admin@postgresql.org Subject: Re: Vaccum References: <2DFBC8374F5A0F4E954C07C158844F323886D8@milton.sonosite.com> Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/171 X-Sequence-Number: 2696 Hello, You can use vacuum at different levels. As a command you can use vacuumdb database_name. In psql, you can use psql> vacuum table_name; I don't think it is going to delete records. To delete records you need to issue SQL command: like: delete from table_name where condi. It must delete the cells. when you delete the reocrds, the space does not get compressed. You can check the size changes of a table or database before and after you issue "vacuum" command. You don't need to shut down postmoaster. It would be nice if you do such jobs at midnight, because such a job does keep your CPU busy. Bangh "Leong, Fushan" wrote: > Hi : > > Want to get your opinion. > > I am thinking to schedule to run Vaccum everynight. > > 1) As I understand, Vaccum is the command to delete old data, right? > 1) Do I have to stop the postmaster before run the Vaccum command? > 2) Should I run it everynight? How often should I run it? > > thanks > Fushan > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org