def get_column_type(curs, table_name, column_name):
    curs.execute('SELECT pgpartitioner.get_column_type(%s, %s);', (table_name, column_name))
    return curs.fetchone()[0]
If column_name exists on table_name it's SQL type is returned.  Else an
dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/get_column_type