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 > handling TOAST ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 9495 of 10965
Post > Topic >>

handling TOAST tables in autovacuum

by alvherre@[EMAIL PROTECTED] (Alvaro Herrera) Jun 8, 2008 at 07:03 PM

Hi,

We've been making noises about dealing with TOAST tables as separate
entities in autovacuum for some time now.  So here's a proposal:

Let's do it.

That's about it :-)

The only change of some consideration is that we will need two p*****
over pg_class to get the list of relations to vacuum, instead of one as
we do currently.  The problem is that we first need to fetch the
(heap relid, toast relid) mapping before attempting to figure out if any
given TOAST table needs vacuuming.  This is because we want to be using
the main table's pg_autovacuum, and we can't get at that unless we know
the main relid.

Another open question is whether the TOAST table should be processed at
all if the main table is vacuumed.  My opinion is we don't -- if we're
going to deal with them separately, let's go the whole nine yards.
Autovacuum will only process a toast table when, by itself, it shows
that it needs processing.  (Obviously this doesn't mean we change
semantics of user-invoked VACUUM -- those will continue to vacuum the
TOAST table along the main table).

Should we display TOAST tables separately in pg_stat_*_tables?  (Maybe
pg_stat_toast_tables?)

Thoughts?

-- 
Alvaro Herrera                               
http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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




 8 Posts in Topic:
handling TOAST tables in autovacuum
alvherre@[EMAIL PROTECTED  2008-06-08 19:03:48 
Re: handling TOAST tables in autovacuum
tgl@[EMAIL PROTECTED] (T  2008-06-08 19:17:46 
Re: handling TOAST tables in autovacuum
alvherre@[EMAIL PROTECTED  2008-06-08 20:15:15 
Re: handling TOAST tables in autovacuum
tgl@[EMAIL PROTECTED] (T  2008-06-08 20:23:25 
Re: handling TOAST tables in autovacuum
euler@[EMAIL PROTECTED]   2008-06-08 23:03:27 
Re: handling TOAST tables in autovacuum
alvherre@[EMAIL PROTECTED  2008-06-08 22:19:12 
Re: handling TOAST tables in autovacuum
tgl@[EMAIL PROTECTED] (T  2008-06-08 23:10:06 
Re: handling TOAST tables in autovacuum
Zdenek.Kotala@[EMAIL PROT  2008-06-09 21:11:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 9:17:41 CST 2008.