Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8190D475F8C for ; Sun, 15 Dec 2002 16:45:58 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id B4A0A47619E for ; Sun, 15 Dec 2002 16:45:36 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBFLjQpd021503; Sun, 15 Dec 2002 16:45:26 -0500 (EST) To: HT Levine Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Followup Question about Vacuum from newsgroup In-reply-to: References: Comments: In-reply-to HT Levine message dated "Sun, 15 Dec 2002 11:31:27 -0800" Date: Sun, 15 Dec 2002 16:45:25 -0500 Message-ID: <21502.1039988725@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/196 X-Sequence-Number: 6691 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