-- -- nlevel/1 -- create or replace function nlevel( ltree ) returns int4 as $$ nlevel$$ language plpgsql;