table_info on non-local mnesia table

Ulf Wiger <>
Wed Oct 28 09:05:45 CET 2009

I recently came across the problem that calling
mnesia:table_info(Tab, size) will return 0 if the table
does not reside locally. This behaviour is not obvious from
the documentation, nor is the remedy:


mnesia:activity(Type, fun() ->
                       end, mnesia_frag),

will always return the correct value, even if the table
isn't fragmented.

I consider this a bug. Mnesia should detect that the table
is remote and act accordingly, rather than returning a bogus

Ulf W
Ulf Wiger
CTO, Erlang Training & Consulting Ltd

More information about the erlang-bugs mailing list