Hi,
I am trying to use hierarchy in pubsub nodes, but could not find much help anywhere. I need to know what the parent column exactly holds in the pubsub_node table. I created collection nodes but it does not have a parent, am I missing out something.
In pubsub_state table the column subscriptions appears to be a foreign entity, so where can I find its master table.
Also, is the unix like node naming, /home/host/... a practice or convention.
Thanks,
Prasad
when using hometree node
when using hometree node plugin with default nodetree_tree tree plugin, you de facto have a hierarchy like /home/host/user/... this is design choice for hometree plugin.
in this case, the parent column contains node id of parent. example if you create /home/host/user/test, then parent is /home/host/user. each node can contain items or be parent of other child nodes, but a publish to a parent node does not propagate to child nodes. this is the preferred plugin to be used when one need a hierarchy.
you can also choose to use the dag node plugin with nodetree_dag tree plugin to get something with better support of collection and and leaf nodes as it was specified years ago in a xep which is defered now. with this plugin, either leaf nodes contains items, either collection node contains child nodes. you can not publish to a collection node. this plugin is not maintained, but used to work.
prasadv wrote: In
In pubsub_state table the column subscriptions appears to be a foreign entity, so where can I find its master table.
I know this is an off question, but how are you able to view the pubsub_state and pubsusb_node tables in ejabberd? I don't see any pubsub related tables in the webadmin nor am i able to interpret data in var/lib/ejabberd/pubsub_*.DCD/DCL/DAT files.
If i try the ejabberdctl dump_table command like:
ejabberdctl --admin <user> <host> <pwd> dump_table pubsub_subscription.DCD ./ps-sub.txt
it fails...
Problem 'exit {aborted,{no_exists,'./ps-sub.txt',record_name}}' occurred executing the command.
Stacktrace: [{mnesia,abort,1,[{file,"mnesia.erl"},{line,310}]},
{ejabberd_admin,'-dump_to_textfile/3-fun-0-',1,
[{file,"src/ejabberd_admin.erl"},{line,538}]},
{lists,map,2,[{file,"lists.erl"},{line,1237}]},
{ejabberd_admin,dump_to_textfile,3,
[{file,"src/ejabberd_admin.erl"},{line,537}]},
{ejabberd_admin,dump_tables,2,
[{file,"src/ejabberd_admin.erl"},{line,521}]},
{ejabberd_commands,execute_command2,2,
[{file,"src/ejabberd_commands.erl"},
{line,378}]},
{ejabberd_ctl,call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,292}]},
{ejabberd_ctl,try_call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,268}]}]
Any suggestions?
Thanks !!
$ ejabberdctl dump_table
You can also try: