create or replace function zipsrc2(text) returns setof text as $$ select address from zipcode where to_char(num1,'FM000-') || to_char(num2,'FM0000') = $1; $$ language sql;