X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 40BE611F600C for ; Fri, 28 Apr 2006 13:10:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 51529-07 for ; Fri, 28 Apr 2006 13:10:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.meridiascapital.com (exchange.meridiascapital.com [65.90.55.78]) by postgresql.org (Postfix) with ESMTP id 6E8A911F61B7 for ; Fri, 28 Apr 2006 13:09:58 -0300 (ADT) Received: from 192.168.9.55 ([192.168.9.55]) by atherton-ex-01.meridias.local ([192.168.8.78]) with Microsoft Exchange Server HTTP-DAV ; Fri, 28 Apr 2006 16:09:57 +0000 Received: from wlittle.meridias.local by exchange.meridiascapital.com; 28 Apr 2006 10:09:57 -0600 Subject: questions on toast tables From: Warren Little To: pgsql-admin@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 28 Apr 2006 10:09:56 -0600 Message-Id: <1146240597.9528.17.camel@wlittle.meridias.local> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/340 X-Sequence-Number: 21509 I have a toast table that is referenced by a single user table define below: CREATE TABLE casedocument ( pid varchar(12) NOT NULL, createdt timestamp NOT NULL, descr varchar(40), docformat varchar(10) NOT NULL, version int4 NOT NULL, casepid varchar(12) NOT NULL, createuserpid varchar(12) NOT NULL, typepid varchar(12) NOT NULL, sent bool DEFAULT false, active bool DEFAULT true, auxpid varchar(12), CONSTRAINT copycasedoc_pkey PRIMARY KEY (pid) ) WITH OIDS; There are 40k rows in the user table The toast table contains 5781417 pages Something does not seem right here. 1) should the user table even be relying on a toast table 2) the 40k rows and data sizes do not seem to equal the number of pages in the related toast table. 3) I know that once upon a time the table had a bytea column, but that was dropped. Do I need to do a full vacuum on that table to get rid of the related toast data? thanks -- Warren Little Chief Technology Officer Meridias Capital Inc 1018 W Atherton Dr Salt Lake City, UT 84123 ph: 866.369.7763