mnesia disc schema nodes - how to add?

Ulf Wiger ulf@REDACTED
Wed Feb 15 06:25:40 CET 2006


Den 2006-02-15 03:12:49 skrev Ryan Rawson <ryanobjc@REDACTED>:

> Hey,
>
> I've messed about with mnesia a bunch today.  It seems that mnesia
> needs to know the list of disc schema nodes when the schema is first
> created.  But what if I want to add a disc schema node after the
> schema was created?  Does it even make sense to do so?  As far as I
> can tell there is no way - you can extend the schema onto the node,
> but you can only do so as a ram_copies, and you can't change the type
> of schema later.

Actually, you can, but this was a bit shaky before
the last patch package.

The answer was posted by Chandru and Dan G yesterday:

http://www.erlang.org/ml-archive/erlang-questions/200602/msg00237.html
http://www.erlang.org/ml-archive/erlang-questions/200602/msg00236.html

The operative command is

   mnesia:change_table_copy_type(schema,Node, disc_copies)

/Ulf W
-- 
Ulf Wiger



More information about the erlang-questions mailing list