Re: How to write a new tuple into page?

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: How to write a new tuple into page?
Дата
Msg-id CALj2ACULpowpvPeWUjefHCO1bK6Ax-0kVnwK37c=3q7jWUaFmg@mail.gmail.com
обсуждение исходный текст
Ответ на How to write a new tuple into page?  ("jacktby@gmail.com" <jacktby@gmail.com>)
Список pgsql-hackers
On Thu, Feb 2, 2023 at 7:31 PM jacktby@gmail.com <jacktby@gmail.com> wrote:
>
> Hi, I'm trying to construct a new tuple type, that's not heaptuple,
> When I get a tupleTableSlot, I will get data info from it and then I
> will constuct a new tuple, and now I need to put it into a physical
> page, how should I do?

Postgres writes table pages from shared buffers/buffer pool to disk
via storage manager (smgr.c). I think looking at the code around
FlushBuffer()/FlushRelationBuffers()/smgrwrite() might help.

-- 
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: chanukya SDS
Дата:
Сообщение: Index problem Need an urgent fix
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: when the startup process doesn't (logging startup delays)