From: Warren Little <warren.little@meridiascapital.com>
To: pgsql-admin@postgresql.org
Subject: questions on toast tables
Date: Fri, 28 Apr 2006 10:09:56 -0600
Message-ID: <1146240597.9528.17.camel@wlittle.meridias.local> (raw)
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
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: warren.little@meridiascapital.com
Subject: Re: questions on toast tables
In-Reply-To: <1146240597.9528.17.camel@wlittle.meridias.local>
References: <1146240597.9528.17.camel@wlittle.meridias.local>
* 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