Re: Use WALReadFromBuffers in more places

2024-06-12 Thread Bharath Rupireddy
ject: [PATCH v2 1/2] Use WALReadFromBuffers in more places Commit 91f2cae introduced WALReadFromBuffers, and used it only for physical replication walsenders. There are couple of other callers that use read_local_xlog_page page_read callback and logical replication walsenders can also benefit reading WAL from W

Re: Use WALReadFromBuffers in more places

2024-06-08 Thread Nitin Jadhav
Hi Bharath, I spent some time examining the patch. Here are my observations from the review. - I believe there’s no need for an extra variable ‘nbytes’ in this context. We can repurpose the ‘count’ variable for the same function. If necessary, we might think about renaming ‘count’ to ‘nbytes’.

Re: Use WALReadFromBuffers in more places

2024-05-13 Thread Bharath Rupireddy
On Wed, May 8, 2024 at 9:51 AM Jingtang Zhang wrote: > > Hi, Bharath. I've been testing this. It's cool. Is there any way we could > monitor the hit rate about directly reading from WAL buffers by exporting > to some views? Thanks for looking into this. I used purpose-built patches for verifying

Re: Use WALReadFromBuffers in more places

2024-05-07 Thread Jingtang Zhang
Hi, Bharath. I've been testing this. It's cool. Is there any way we could monitor the hit rate about directly reading from WAL buffers by exporting to some views? --- Regards, Jingtang

Use WALReadFromBuffers in more places

2024-04-24 Thread Bharath Rupireddy
Hi, Commit 91f2cae7a4e that introduced WALReadFromBuffers only used it for physical walsenders. It can also be used in more places benefitting logical walsenders, backends running pg_walinspect and logical decoding functions if the WAL is available in WAL buffers. I'm attaching a 0001 patch for