[erlang-questions] problems with creating table named 'user' in ets

Garret Smith garret.smith@REDACTED
Thu Aug 9 21:00:53 CEST 2012


On Wed, Aug 8, 2012 at 8:07 PM, cavaluo <cavaluo@REDACTED> wrote:

> Hi,
>   when i create a new ets table named 'user',result returned 'ok',and also
> i can do any operaton on it,but i can't find in The Table Visualizer,why?
>
>  (cavaluo@REDACTED)15> ets:new(user,[set,public,named_table]).
>   user
> (cavaluo@REDACTED)18> ets:info(user).
> [{compressed,false},
>  {memory,316},
>  {owner,<0.37.0>},
>  {heir,none},
>  {name,user},
>  {size,0},
>  {node,'cavaluo@REDACTED'},
>  {named_table,true},
>  {type,set},
>  {keypos,1},
>  {protection,public}]
>
> (cavaluo@REDACTED)20> ets:insert(user,{test,1,2,3}).
> true
> (cavaluo@REDACTED)21> ets:lookup(user,test).
> [{test,1,2,3}]
>
>
I cannot see the table in the Table View either.  I am not sure why.
However, I can see the table through observer:
> observer:start().

tv doesn't get much attention any more as observer is superseding it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120809/5ec7dc18/attachment.htm>


More information about the erlang-questions mailing list