473,394 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

expected both swapped tables to have TOAST tables

I tried to truncate a table and received the following error:
"expected both swapped tables to have TOAST tables".

Googling provided no insight. What does it mean?

Version 7.4.1.

Note: I can delete from the table and vacuum full to empty it, I just
can't truncate it. I don't see anything special with this table and
can truncate a nearly identical one. Here's the structure:

Table "foobar"
Column | Type | Modifiers
--------+--------------------------+-------------------------------------------
asof | timestamp with time zone | default
date_trunc('second'::text, now())
r0 | smallint |
r1 | character varying(30) |
r2 | character varying(30) |
r3 | character varying(30) |
r4 | character varying(30) |
r5 | character varying(30) |
r6 | character varying(30) |

Cheers,
Steve
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #1
2 1426
Steve Crawford <sc*******@pinpointresearch.com> writes:
I tried to truncate a table and received the following error:
"expected both swapped tables to have TOAST tables".
Googling provided no insight. What does it mean?


It's a bug. You probably dropped the last toastable column from
the table.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2
On Tuesday 31 August 2004 3:52 pm, Tom Lane wrote:
Steve Crawford <sc*******@pinpointresearch.com> writes:
I tried to truncate a table and received the following error:
"expected both swapped tables to have TOAST tables".
Googling provided no insight. What does it mean?


It's a bug. You probably dropped the last toastable column from
the table.


Thanks. This table was created from another table as a "create table
foo as select * from bar limit 0" followed by an "alter table foo
drop column lastcolumn" so that would make sense.

As long as this isn't indicitave of future problems with this table I
won't worry as it is only being used for a couple weeks for debugging
and will only have inserts from here on out.

Cheers,
Steve
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TomT | last post by:
As per subject... Does anyone know how to convert a Toast 1.6 forum (ASP) to a php based forum like phpbb2 ?? The current forum has 280+ members, and 0000's of posts... Thanks
2
by: Richard J Lacroix | last post by:
I have two tables that I am trying to use to create a report by using a join. When the query is executed, the SUM on the second table is 4 times the expected amount. As a stand alone query on the...
0
by: Luc Foisy | last post by:
Last week many of our server and client servers had a power problem. Not = quite sure how the servers were handled, wasn't on site, but I don't = think some of these servers got shut down...
30
by: btober | last post by:
Whenever I create a temporary table, with something like CREATE TEMPORARY TABLE temptable1 AS SELECT * FROM paid.ad_hoc_query; New schemas appear, with names like "pg_temp_1". I guess the...
2
by: William Harazim | last post by:
Is it possible to define a table that spans all db's in a cluster similar to pg_database, pg_users? Perhaps by altering relfilenode in pg_class of all db's to point to the same shared table... ...
17
by: Chris Travers | last post by:
Hi all; I just made an interesting discovery. Not sure if it is a good thing or not, and using it certainly breakes first normal form.... Not even sure if it really works. However, as I am...
3
by: Jon | last post by:
I'm learning about datatables. When using the example provided by MS in the ..NET Framework Class Library for DATATABLE (see below) I get an error on line 3 that says "Type expected". Is something...
1
by: Diogo Biazus | last post by:
Hi, can anyone help me with this error: ERROR: missing chunk number 0 for toast value 14227980 Is there a solution? -- Diogo Biazus diogob@gmail.com http://www.postgresql.org.br
4
by: dstorms | last post by:
I'm trying to run an update query on multiple tables, and since Access doesn't allow me to update tables from a union query, I'm writing a module as a workaround. So I've set up a temporary recordest...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.