```
milovidov-desktop :) CREATE TABLE hits2 AS hits

CREATE TABLE hits2 AS hits

Query id: ef73b907-c73b-42ba-8194-db88c88cc85b

Ok.

0 rows in set. Elapsed: 0.024 sec. 

milovidov-desktop :) INSERT INTO hits2 FROM INFILE 'hits.tsv'

INSERT INTO hits2 FROM INFILE 'hits.tsv'

Query id: 0588941e-ff9e-4741-97ce-7784aee1e253

↓ Progress: 0.00 rows, 0.00 B (0.00 rows/s., 0.00 B/s.)
```

Two problems:
- no progress;
- it is displaying a fractional number of rows (`0.00`).
else if (server_logs_file == "-")
            {
                /// Use stdout if --server_logs_file=- specified
                wb = &std_out;
                color_logs = stdout_is_a_tty;
            }
            else
            {
                out_logs_buf
                    = std::make_unique<WriteBufferFromFile>(server_logs_file, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_APPEND | O_CREAT);
                wb = out_logs_buf.get();
            }
        }
        logs_out_stream = std::make_unique<InternalTextLogs>(*wb, color_logs);
    }
}
void ClientBase::initTtyBuffer(bool to_err)
{
    if (!tty_buf)
    {
        static constexpr auto tty_file_name = "/dev/tty";
        /// Output all progress bar commands to terminal at once to avoid flicker.
        /// This size is usually greater than the window size.
        static constexpr size_t buf_size = 1024;
        if (!to_err)
        {
            std::error_code ec;
            std::filesystem::file_status tty = std::filesystem::status(tty_file_name, ec);
            if (!ec && exists(tty) && is_character_file(tty)
                && (tty.permissions() & std::filesystem::perms::others_write) != std::filesystem::perms::none)