"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> Please see the attached patch. One change I made is to hold the SHARE lock
> on the page while ANALYZE is reading tuples from it. I thought it would
> be a right thing to do instead of repeatedly acquiring/releasing the lock.
I've applied a modified/extended form of this patch for 8.3.2.
regards, tom lane