-- -- content_keyword__get_heading/1 -- create or replace function content_keyword__get_heading( integer ) returns text as $$ declare get_heading__keyword_id alias for $1; v_heading text; begin select heading into v_heading from cr_keywords where keyword_id = get_heading__keyword_id; return v_heading; end;$$ language plpgsql;