pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
To: pgsql-admin@postgresql.org
To: pgsql-performance@postgresql.org
Subject: Re: TOAST tables, cannot truncate
Date: Tue,  7 Sep 2004 08:12:58 -0300 (GMT+3)
Message-ID: <20040907111258.23BA56C4EA@honorio.sinectis.com.ar> (raw)

Ok, problem solved.

A previous ALTER TABLE DROP COLUMN over this table was performed.
By some reason, truncate didn't work then. Would like to know why...it does not seems to be a very frequent problem, due to the fact I only found one chat on the mailing lists talking about this issue, and was hard to find :( !

A dump of the table schema, passed to the psql command 
(cat table_dump.sql | psql xxx) worked fine.

TRUNCATE is now available.

Thanks.

Guido

> Sorry for crossposting, didn't know where to post.
> 
> Any hint/help on this?!
> 
> db_postgres1=# truncate ref_v2_drs_valid_product ;
> ERROR:  expected both swapped tables to have TOAST tables
> 
> I need to truncate this table, this is the first time I see this error.
> 
> Regards,
> Guido
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend




view thread (3+ messages)  latest in thread

Message-ID: <20040907111258.23BA56C4EA@honorio.sinectis.com.ar>
Permalink:  ../20040907111258.23BA56C4EA@honorio.sinectis.com.ar/
Also on:    postgresql.org/message-id/20040907111258.23BA56C4EA@honorio.sinectis.com.ar

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gbarosio@uolsinectis.com.ar, pgsql-admin@postgresql.org
  Subject: Re: TOAST tables, cannot truncate
  In-Reply-To: <20040907111258.23BA56C4EA@honorio.sinectis.com.ar>

* 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