[erlang-questions] dumping schema on a ram node (was: Re: `mnesia:dump_tables/1' and the schema table)

Francesco Mazzoli <>
Thu May 10 13:09:50 CEST 2012


OK, I think I have misunderstood the condition for dump_tables to work: 
"To dump the tables to disc all replicas must have the storage type 
ram_copies.". In this case then the check for schema makes sense since 
there must be one disc copy of the schema.

Then my question changes to: is it possible to dump the schema of a ram 
node somewhere so that it will be recovered my mnesia when the node gets 
restarted?

Francesco.

On 10/05/12 11:57, Francesco Mazzoli wrote:
> Hi,
>
> For some reason, `mnesia:dump_tables/1' refuses to dump the schema
> table:
> https://github.com/erlang/otp/blob/maint/lib/mnesia/src/mnesia_schema.erl#L2797
> .
>
> 1) Why is this the case?
> 2) This is not documented, see
> http://www.erlang.org/doc/man/mnesia.html#dump_tables-1 and
> http://www.erlang.org/doc/apps/mnesia/Mnesia_chap7.html#id77600
>
> Francesco.
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list