Re: Read data from Postgres table pages - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: Read data from Postgres table pages
Date
Msg-id CAPpHfdthek979Q9K7GOKHf2-2joE6NdZ3q6bZ_c=QV8dnDgOtQ@mail.gmail.com
Whole thread Raw
In response to Re: Read data from Postgres table pages  (Sushrut Shivaswamy <sushrut.shivaswamy@gmail.com>)
Responses Re: Read data from Postgres table pages
List pgsql-hackers
On Tue, Mar 19, 2024 at 4:48 PM Sushrut Shivaswamy
<sushrut.shivaswamy@gmail.com> wrote:
>
> If we query the DB directly, is it possible to know which new rows have been added since the last query?
> Is there a change pump that can be latched onto?

Please, check this.
https://www.postgresql.org/docs/current/logicaldecoding.html

> I’m assuming the page data structs are encapsulated in specific headers which can be used to list / read pages.
> Why would Postgres need to be stopped to read the data? The read / query path in Postgres would also be reading these
pageswhen the instance is running? 

I think this would be a good point to start studying.
https://www.interdb.jp/
The information there should be more than enough to forget this idea forever :)

------
Regards,
Alexander Korotkov



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Streaming I/O, vectored I/O (WIP)
Next
From: Alexander Korotkov
Date:
Subject: Re: POC: Lock updated tuples in tuple_update() and tuple_delete()