Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 65DA14759BD for ; Sun, 15 Dec 2002 22:46:23 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id F04F3474E42 for ; Sun, 15 Dec 2002 22:46:22 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id E0AA343A56A; Sun, 15 Dec 2002 22:46:22 -0500 (EST) From: "HT" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Followup Question about Vacuum from newsgroup Date: Sun, 15 Dec 2002 19:46:22 -0800 Organization: Levine Lines: 40 Message-ID: References: <21502.1039988725@sss.pgh.pa.us> Reply-To: "HT" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/197 X-Sequence-Number: 6692 Now here's a little more information. I did this VACUUM on a table which was NOT truncated. It has many additions and updates, but very few if any deletions. In this case, did I have anything to gain with VACUUM? Does the thing about the toast files still hold? same instructions below? Thanks so much! "Tom Lane" wrote in message news:21502.1039988725@sss.pgh.pa.us... > HT Levine writes: > > My suspicion is that there are pg_toast_xxxxx files left in the base > > directory? If I identify them with oid2name (waiting for netops to build > > that) is it ok to just delete those toast files? > > No. > > In pre-7.3 releases, TRUNCATE TABLE did not automatically truncate the > associated TOAST table, which was a nasty oversight :-(. However, those > releases would also allow you to manually truncate a TOAST table (which > was also a bad oversight, but rather fortunate in hindsight). The bad > news is that they think TOAST tables are system tables --- so the only > way to fully truncate a toastable table in 7.2 is > > TRUNCATE TABLE toast-table-for-foo; > TRUNCATE TABLE foo; > > in a standalone backend started with -O option :-( > > This mess is fixed in 7.3 --- TRUNCATE automatically truncates the toast > table along with its master, when you truncate the master. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org