[erlang-questions] mnesia:table_info(Table, size) returns 0 for remote tables

Serge Aleynikov <>
Thu Jun 5 04:46:38 CEST 2008


I ran into this non-intuitive behavior of the mnesia:table_info(Table, 
size) function.  Unlike other calls of the mnesia:table_info/2 family 
this one returns 0 if a table is not local.

The work around is to do:
Node = mnesia:table_info(Table, where_to_read),
rpc:call(Node, mnesia, table_info, [Table, size]).

Though, it's not clear to me why the caller of mnesia:table_info/2 has 
to go though this trouble.  Can this be fixed?

Serge



More information about the erlang-questions mailing list