resolves pg type, i think