Re: scan_recycle_buffers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: scan_recycle_buffers
Date: 2007-03-09 21:45:40
Message-ID: 3522.1173476740@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> I wonder if calling RelationGetNumberOfBlocks on every seq scan becomes
> a performance issue for tiny tables with for example just 1 page. It
> performs an lseek, which isn't free.

We do that anyway; but certainly Simon's patch ought not be injecting
an additional one.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-03-09 22:06:07 Re: scan_recycle_buffers
Previous Message Jim Nasby 2007-03-09 21:41:10 Re: Auto creation of Partitions

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2007-03-09 22:06:07 Re: scan_recycle_buffers
Previous Message Jim Nasby 2007-03-09 21:41:10 Re: Auto creation of Partitions