From: Tom Lane <tgl@sss.pgh.pa.us>
To: HT Levine <htlevine@ebates.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Followup Question about Vacuum from newsgroup
Date: Sun, 15 Dec 2002 16:45:25 -0500
Message-ID: <21502.1039988725@sss.pgh.pa.us> (raw)
In-Reply-To: <A0F24737FCB34F489EC955D143BDD851018EFEC2@exchange-sf1.corp.ebates.com>
References: <A0F24737FCB34F489EC955D143BDD851018EFEC2@exchange-sf1.corp.ebates.com>
HT Levine <htlevine@ebates.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, htlevine@ebates.com
Subject: Re: Followup Question about Vacuum from newsgroup
In-Reply-To: <21502.1039988725@sss.pgh.pa.us>
References: <A0F24737FCB34F489EC955D143BDD851018EFEC2@exchange-sf1.corp.ebates.com> <21502.1039988725@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox