postgresql7.1 select etp__create_symlink(:package_id, :target_id); select i.item_id, i.name, etp__get_title(i.item_id, null) as title, repeat(' ',(tree_level(i.tree_sortkey) - 1) * 4) as indent from cr_items i, acs_objects o where i.item_id = o.object_id and o.object_type in ('content_item', 'content_folder') and i.name != 'index' and i.tree_sortkey not like (select tree_sortkey from cr_items where item_id = -400) || '%' order by i.tree_sortkey