def METHOD_NAME(req_version, *, force=False):
    cur_version = db.engine.execute("SELECT current_setting('server_version_num')::int / 10000").scalar()
    if cur_version >= req_version:
        return True
    click.secho(f'Postgres version {cur_version} too old; you need at least {req_version} (or newer)', fg='red')
    if force:
        click.secho('Continuing anyway, you have been warned.', fg='yellow')
        return True
    return False