pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
TOAST tables, cannot truncate
3+ messages / 2 participants
[nested] [flat]

* TOAST tables, cannot truncate
@ 2004-09-07 10:41 G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
  0 siblings, 0 replies; 3+ messages in thread

From: G u i d o B a r o s i o @ 2004-09-07 10:41 UTC (permalink / raw)
  To: pgsql-admin@postgresql.org; +Cc: pgsql-performance

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: TOAST tables, cannot truncate
@ 2004-09-07 11:12 G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
  2004-09-07 14:16 ` Re: [PERFORM] TOAST tables, cannot truncate Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: G u i d o B a r o s i o @ 2004-09-07 11:12 UTC (permalink / raw)
  To: pgsql-admin@postgresql.org; pgsql-performance

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [PERFORM] TOAST tables, cannot truncate
  2004-09-07 11:12 Re: TOAST tables, cannot truncate G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
@ 2004-09-07 14:16 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2004-09-07 14:16 UTC (permalink / raw)
  To: gbarosio@uolsinectis.com.ar; +Cc: pgsql-admin@postgresql.org; pgsql-performance

G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar> writes:
> 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 :( !

http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/commands/cluster.c

(note: cvsweb seems mighty slow today, but it is working...)

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-09-07 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-07 10:41 TOAST tables, cannot truncate G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
2004-09-07 11:12 Re: TOAST tables, cannot truncate G u i d o B a r o s i o <gbarosio@uolsinectis.com.ar>
2004-09-07 14:16 ` Tom Lane <tgl@sss.pgh.pa.us>

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