Re: How to write a new tuple into page? - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Re: How to write a new tuple into page?
Date
Msg-id CALj2ACULpowpvPeWUjefHCO1bK6Ax-0kVnwK37c=3q7jWUaFmg@mail.gmail.com
Whole thread Raw
In response to How to write a new tuple into page?  ("jacktby@gmail.com" <jacktby@gmail.com>)
List 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 by date:

Previous
From: chanukya SDS
Date:
Subject: Index problem Need an urgent fix
Next
From: Bharath Rupireddy
Date:
Subject: Re: when the startup process doesn't (logging startup delays)