-- -- static_page__five_n_spaces/1 -- create or replace function static_page__five_n_spaces( integer ) returns varchar as $$ declare p_n alias for $1; space_string varchar(400); begin space_string := ''; for i in 1..p_n loop space_string := space_string || ' '; end loop; return space_string; end;$$ language plpgsql;