mnesia:create_table in transaction?

Shawn Pearce <>
Sat Feb 7 05:08:38 CET 2004

Is the following not allowed?

mnesia:transaction(fun() ->

as mnesia:create_table/2 is returning {aborted, nested_transaction}.

I just thought I'd create all of my tables in a single transaction,
in case one fails to create.  Apparently its not supported.
Understandable, as very few databases allow table creation within
transactions.  I just thought it was possible in Mnesia.


More information about the erlang-questions mailing list