def get_index_defs(curs, table_name):
    curs.execute('SELECT * FROM pgpartitioner.get_table_index_defs(%s);', (table_name,))
    return [res[0] for res in curs.fetchall()]
Returns a list of 2-tuples consisting of each index creation def  statement
dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/get_index_defs