-- -- person__first_names/1 -- create or replace function person__first_names( integer ) returns varchar as $$ declare first_names__person_id alias for $1; begin return first_names from persons where person_id = first_names__person_id; end;$$ language plpgsql;