Re: [HACKERS] ANALYZE getting dead tuple count hopelessly wrong - Mailing list pgsql-general

From Tom Lane
Subject Re: [HACKERS] ANALYZE getting dead tuple count hopelessly wrong
Date
Msg-id 2718.1207240348@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] ANALYZE getting dead tuple count hopelessly wrong  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: [HACKERS] ANALYZE getting dead tuple count hopelessly wrong  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-general
"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

pgsql-general by date:

Previous
From: rihad
Date:
Subject: deadlock
Next
From: rihad
Date:
Subject: choosing the right locking mode