Re: Use heap scan routines directly in vac_update_datfrozenxid()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Soumyadeep Chakraborty <soumyadeep2007(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use heap scan routines directly in vac_update_datfrozenxid()
Date: 2024-10-06 21:40:54
Message-ID: 1505295.1728250854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Soumyadeep Chakraborty <soumyadeep2007(at)gmail(dot)com> writes:
> Attached is a simple patch to directly use heap scan routines in
> vac_update_datfrozenxid(), avoiding the multilayer overhead from the
> sysscan infrastructure.

I would think the overhead of that is minuscule. If it isn't,
we should try to make it so, not randomly hack up some of the callers
to avoid it. The intention certainly was that it wouldn't cost
anything compared to what happens within the actual table access.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alena Rybakina 2024-10-06 21:43:18 Re: Add parallel columns for seq scan and index scan on pg_stat_all_tables and _indexes
Previous Message Soumyadeep Chakraborty 2024-10-06 20:39:42 Use heap scan routines directly in vac_update_datfrozenxid()