Use postgresql adapter to identify ruby type