Re: Vacuum now uses AccessShareLock for analyze - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Vacuum now uses AccessShareLock for analyze
Date
Msg-id 21791.959624418@sss.pgh.pa.us
Whole thread Raw
In response to Re: Vacuum now uses AccessShareLock for analyze  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Configuration and build clean-up
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: Configuration and build clean-up