dbTalk Databases Forums  

VACUUMING questions...

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss VACUUMING questions... in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe Maldonado
 
Posts: n/a

Default VACUUMING questions... - 11-04-2004 , 07:51 AM






Hello all,
I have a few somewhat simple questions....

Does the postmaster vacuum it's internal (pg_*) tables?
if not
what is the best way to vacuum them without having to vacuum the
entire db?
and how often is this recommended to be done?

Thanks,

-Joe

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #2  
Old   
Richard Huxton
 
Posts: n/a

Default Re: VACUUMING questions... - 11-04-2004 , 08:24 AM






Joe Maldonado wrote:
Quote:
Hello all,
I have a few somewhat simple questions....

Does the postmaster vacuum it's internal (pg_*) tables? if not
what is the best way to vacuum them without having to vacuum the
entire db?
and how often is this recommended to be done?
No, and I'd vacuum full template1.

How often? Depends on how much activity you've got on your system
tables. If you look at the output on vacuum verbose you can see how much
work it has to do.
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
  #3  
Old   
Matthew T. O'Connor
 
Posts: n/a

Default Re: VACUUMING questions... - 11-04-2004 , 09:48 AM



Richard Huxton wrote:

Quote:
Joe Maldonado wrote:

Hello all,
I have a few somewhat simple questions....

Does the postmaster vacuum it's internal (pg_*) tables? if not
what is the best way to vacuum them without having to vacuum the
entire db?
and how often is this recommended to be done?


No, and I'd vacuum full template1.
I'm not sure what you mean by No. If I fun a vacuum command from psql
inside one of my databases, then all the pg_ tables will get vacuumed.
Also, vacuum full on template1 is only going to help with the small
handful of shared tables. Most of the pg_ tables are not shared, so
vacuuming them inside template1 is not going to help the their
performance inside a particular DB.

Quote:
How often? Depends on how much activity you've got on your system
tables. If you look at the output on vacuum verbose you can see how
much work it has to do.

You can also run pg_autovacuum which does monitor activity for you and
does vacuum system tables.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly



Reply With Quote
  #4  
Old   
Richard Huxton
 
Posts: n/a

Default Re: VACUUMING questions... - 11-04-2004 , 10:46 AM



Matthew T. O'Connor wrote:
Quote:
Richard Huxton wrote:

Joe Maldonado wrote:

Hello all,
I have a few somewhat simple questions....

Does the postmaster vacuum it's internal (pg_*) tables? if not
what is the best way to vacuum them without having to vacuum the
entire db?
and how often is this recommended to be done?



No, and I'd vacuum full template1.


I'm not sure what you mean by No.
I'd read the question as asking if they got dealt with automatically,
without sysadmin involvement.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.