Read data from Postgres table pages

From: Sushrut Shivaswamy <sushrut(dot)shivaswamy(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Read data from Postgres table pages
Date: 2024-03-19 14:22:44
Message-ID: CAH5mb9928FPm-7VwuQStc7EbAha2tr848Me4XeHkfJJoUekFrw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hey,

I'm trying to build a postgres export tool that reads data from table pages
and exports it to an S3 bucket. I'd like to avoid manual commands like
pg_dump, I need access to the raw data.

Can you please point me to the postgres source header / cc files that
encapsulate this functionality?
- List all pages for a table
- Read a given page for a table

Any pointers to the relevant source code would be appreciated.

Thanks,
Sushrut

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2024-03-19 14:26:06 Re: Table AM Interface Enhancements
Previous Message Tom Lane 2024-03-19 13:50:36 Re: documentation structure