Re: Improve WALRead() to suck data directly from WAL buffers when possible

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Improve WALRead() to suck data directly from WAL buffers when possible
Дата
Msg-id 20230228004452.GA1391969@nathanxps13
обсуждение исходный текст
Ответ на Re: Improve WALRead() to suck data directly from WAL buffers when possible  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Improve WALRead() to suck data directly from WAL buffers when possible  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Wed, Feb 08, 2023 at 08:00:00PM +0530, Bharath Rupireddy wrote:
> +            /*
> +             * We read some of the requested bytes. Continue to read remaining
> +             * bytes.
> +             */
> +            ptr += nread;
> +            nbytes -= nread;
> +            dst += nread;
> +            *read_bytes += nread;

Why do we only read a page at a time in XLogReadFromBuffersGuts()?  What is
preventing us from copying all the data we need in one go?

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Non-superuser subscription owners
Следующее
От: Peter Smith
Дата:
Сообщение: Re: Rework LogicalOutputPluginWriterUpdateProgress