[erlang-questions] mnesia:subscribe on remote table

Håkan Mattsson <>
Thu Aug 4 16:23:10 CEST 2011


Hi!

mnesia:subscribe/1 allows you only to subscribe on *local* events in
Mnesia, even though the manual does not spell out that restriction.

Table events are generated when the local replica is updated.

/Håkan

On Thu, Aug 4, 2011 at 3:46 PM, karol skocik <> wrote:
> Hi,
>  I have just found out, that I can't mnesia:subscribe to table which
> does not have a replica on the caller's node.
> I am getting:
>
> ()3> mnesia:subscribe({table, 'waiting_task.type.1', simple}).
> {error,{not_active_local,'waiting_task.type.1'}}
>
> Or, am I mistaken, is it possible? How? I couldn't find this
> restriction in the manual.
>
> Thanks,
>  Karol



More information about the erlang-questions mailing list