ALTER TABLE SET TABLESPACE and pg_toast

From: "PostgreSQL" <martin(at)portant(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: ALTER TABLE SET TABLESPACE and pg_toast
Date: 2005-12-16 14:25:41
Message-ID: dnuip3$1rpa$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

We're storing tif images in a table as bytea. We were running low on our
primary space and moved several tables, including the one with the images,
to a second tablespace using ALTER TABLE SET TABLESPACE.
This moved quite cleaned out quite a bit of space on the original
tablespace, but not as much as it should have. It does not appear that the
corresponding pg_toast tables were moved. So, my questions are:

1) Is there a way to move pg_toast tables to new tablespaces (or at least
assure that new ones are created there)?
2) Also, is there a good way to determine which pg_toast tables are
associated with any particular table and column?

Thank you for your help,
Martin

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Csaba Nagy 2005-12-16 14:32:47 Re: Crashing DB or Server?
Previous Message Kyle Cordes 2005-12-16 14:19:27 Re: Overriding the optimizer