Re: Vacuum now uses AccessShareLock for analyze

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Vacuum now uses AccessShareLock for analyze
Date: 2000-05-29 18:20:18
Message-ID: 21791.959624418@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> How do I find the number of pages from heapscan?

IIRC, heap_beginscan updates the relcache entry with the current number
of blocks (as determined the hard way, with lseek). Should be able to
use that, even though it might be a little bit out of date by the time
you finish the scan ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Trond Eivind=?iso-8859-1?q?_Glomsr=F8d?= 2000-05-29 18:59:26 Re: Configuration and build clean-up
Previous Message Tom Lane 2000-05-29 18:10:19 Re: Configuration and build clean-up