Re: Use read streams in pg_visibility

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use read streams in pg_visibility
Date: 2024-08-19 11:01:00
Message-ID: CAN55FZ3rD4Z8RhrAWNcoO9eYkr3iJj76BWqYpZf21M505C49EQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Mon, 19 Aug 2024 at 09:30, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Tue, Aug 13, 2024 at 03:22:27PM +0300, Nazir Bilal Yavuz wrote:
> > Hi,
> >
> > I am working on using the read stream in pg_visibility. There are two
> > places to use it:
> >
> > 1- collect_visibility_data()
> >
> > This one is straightforward. I created a read stream object if
> > 'include_pd' is true because read I/O is done when 'include_pd' is
> > true. There is ~4% timing improvement with this change. I started the
> > server with the default settings and created a 6 GB table. Then run
> > 100 times pg_visibility() by clearing the OS cache between each run.
> > ----------
>
> Mind sharing a script for reproducibility? Except for the drop_caches
> part, of course..

Sure, the script is attached.

--
Regards,
Nazir Bilal Yavuz
Microsoft

Attachment Content-Type Size
setup.sh application/x-shellscript 572 bytes

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-08-19 11:15:19 Re: possible issue in postgres_fdw batching
Previous Message Ashutosh Bapat 2024-08-19 10:57:17 Re: [PROPOSAL] : Disallow use of empty column name in (column_name '') in ALTER or CREATE of foreign table.