PBXT MEMORY based table cannot be converted to DISK based table

Bug #683235 reported by shinguz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBXT
Fix Committed
Undecided
Vladimir Kolesnikov

Bug Description

When I was playing around with PBXT MEMORY based tables I tried to convert them forwards and backwards.

What I found is, that once a PBXT table is converted to a MEMORY based table with:

mysql> system ls -la
-rw-rw---- 1 mysql dba 4 2010-11-20 15:32 test-3.xtr
-rw-rw---- 1 mysql dba 8612 2010-11-20 15:32 test.frm
-rw-rw---- 1 mysql dba 155 2010-11-20 15:32 test.xtd
-rw-rw---- 1 mysql dba 4096 2010-11-20 15:32 test.xti

mysql> ALTER TABLE test ENGINE = PBXT STORAGE MEMORY;

mysql> system ls -la
-rw-rw---- 1 mysql dba 8612 2010-11-20 15:32 test.frm

I cannot convert it back to a DISK based table with the following command.

mysql> ALTER TABLE test ENGINE=PBXT;
mysql> ALTER TABLE test ENGINE=PBXT STORAGE DISK;

This imho is a problem/bug

For details see also here: http://www.fromdual.com/transactional-memory-resident-tables-with-pbxt

Related branches

Changed in pbxt:
assignee: nobody → Vladimir Kolesnikov (vkolesnikov)
status: New → In Progress
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote :

In a query like "ALTER TABLE t1 STORAGE DISK" PBXT dictionary setup code sets up the dictionary for the new table by copying the dictionary from the altered table (which is heap-based).

Changed in pbxt:
status: In Progress → Fix Committed
Revision history for this message
shinguz (oli-sennhauser) wrote :

Thanks Vlad!

For me it seems to work now!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.