PostgreSQL, Replace instance_variable hack by returning an Array.