Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: [GENERAL] A...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 9081 of 10834
Post > Topic >>

Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong

by pavan.deolasee@[EMAIL PROTECTED] ("Pavan Deolasee") Apr 1, 2008 at 12:04 AM

On Mon, Mar 31, 2008 at 9:02 PM, Tom Lane <tgl@[EMAIL PROTECTED]
> wrote:

>
>  [ Please see if you can stop using the "redirected dead" terminology ]
>
>

Apologies, will keep that in mind. Seems like a hang-over from the past
:-)

>  Yeah, I think I agree.  The page pruning code is set up so that
changing
>  a line pointer to DEAD state doesn't change the count of dead tuples in
>  the table, so we are counting unreclaimed DEAD pointers as still being
>  dead tuples requiring VACUUM.  ANALYZE should surely not affect that.
>
>  It looks like there's no trivial way to get ANALYZE to do things that
>  way, though.  heap_release_fetch() doesn't distinguish a DEAD line
>  pointer from an unused or redirected one.  But in the current
>  implementation of ANALYZE there's really no benefit to using
>  heap_release_fetch anyway --- it always examines all line pointers
>  on each selected page, so we might as well rewrite it to use a simple
>  loop more like vacuum uses.
>

I agree. I would write a patch on these lines, unless you are already on
to it.


Thanks,
Pavan

-- 
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 6 Posts in Topic:
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
pavan.deolasee@[EMAIL PRO  2008-04-01 00:04:25 
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
tgl@[EMAIL PROTECTED] (T  2008-03-31 15:52:46 
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly
stuartb@[EMAIL PROTECTED]  2008-04-01 15:00:31 
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
tgl@[EMAIL PROTECTED] (T  2008-04-02 16:29:31 
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
tgl@[EMAIL PROTECTED] (T  2008-04-02 19:04:09 
Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
tgl@[EMAIL PROTECTED] (T  2008-04-03 12:32:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:06:23 CST 2008.