def table_exists(curs, table_name=''):
    curs.execute('SELECT pgpartitioner.table_exists(%s)', (table_name,))
    return curs.fetchone()
If table_name is a schema qualified table name and it exists it is returned,
dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/table_exists