def METHOD_NAME(max_id, _min, _max, timer):
    try:
        with psycopg2.connect(dsn=CONNECTION_STRING) as connection:
            connection.autocommit = True  # We are not concerned with transactions.
            with connection.cursor() as cursor:
                with Timer() as t:
                    cursor.execute(UPDATE_SQL.format(minid=_min, maxid=_max))
                row_count = cursor.rowcount
                print(
                    "[{:.2%}] {:,} => {:,}: {:,} updated in {} with an estimated remaining run time of {}".format(
                        _max / max_id,
                        _min,
                        _max,
                        row_count,
                        t.elapsed_as_string,
                        timer.estimated_remaining_runtime(_max / max_id),
                    ),
                    flush=True,
                )
    except Exception as e:
        print("Exception {:,} => {:,}: {}".format(_min, _max, e))
        raise