--
-- bookmark__name/1
--
create or replace function bookmark__name(
  p_object_id integer
) returns varchar as $$

DECLARE
    v_name bm_bookmarks.local_title%TYPE;
BEGIN
    select local_title into v_name
    from bm_bookmarks
         where bookmark_id = p_object_id;

    return v_name;
END;
$$ language plpgsql;