Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group