def load_hyperedges(pc, table_name):
    """
    Returns the hyperedge list from the Postgres table.
    :param pc: (PostgresConnector) Object for communication.
    :param table_name: (string) Where to retrieve the values from
    :return: (list) Tuple values for (edge_id, term_id)
    """
    with pc as open_pc:
        open_pc.cursor.execute("SELECT * FROM {}".format(table_name))
        data = open_pc.cursor.fetchall()

    return data