def METHOD_NAME(psql):
    """Ensure a backend is running for 30s in monitored Postgres."""
    logger.info("Starting pg_sleep in background.")
    proc = psql(
        c="SELECT pg_sleep(30), 'test-activity';",
        _bg=True)
    assert proc.is_alive()
    yield proc
    logger.info("Stopping pg_sleep.")
    terminate(proc)