def METHOD_NAME(cls, cursor: Any, query: Query) -> Optional[str]:
    """
    Get Redshift PID that will be used to cancel all other running
    queries in the same session.
    :param cursor: Cursor instance in which the query will be executed
    :param query: Query instance
    :return: Redshift PID
    """
    cursor.execute("SELECT pg_backend_pid()")
    row = cursor.fetchone()
    return row[0]