Postgresql Get Data Type Of Variable In R