**Describe the bug**
`SELECT i FROM generateRandom('i Array(Int8)', 1048575, 10, 1048577) LIMIT 1048575`

Memory limit should be respected.
{
    std::lock_guard lock(mutex);
    saving_thread = ThreadFromGlobalPool([this] { savingThreadFunction(); });
}
template <typename LogElement>
void SystemLog<LogElement>::add(const LogElement & element)
{
    
    
    
    
    auto temporarily_disable_memory_tracker = getCurrentMemoryTrackerActionLock();
    
    bool queue_is_half_full = false;
    {
        std::unique_lock lock(mutex);
        if (is_shutdown)
            return;
        if (queue.size() == DBMS_SYSTEM_LOG_QUEUE_SIZE / 2)
        {
            queue_is_half_full = true;