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 General > Re: auto-vacuum...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 15490 of 17437
Post > Topic >>

Re: auto-vacuum questions

by alvherre@[EMAIL PROTECTED] (Alvaro Herrera) May 8, 2008 at 10:54 AM

John Gateley wrote:
> Hi, I have a couple of questions on the auto-vacuum daemon:
> 
> 1) How do I know it is running. I suspect it has not been, and
> I carefully checked the do***entation and found a variable that
> wasn't set (stats_row_level defaults to off in 8.1, should be
> "on"). So I changed that and restarted, but how do I *know* that
> is or isn't vacuuming?

Open a session and run "SHOW autovacuum".  If it says "on", it's
vacuuming.  Keep an eye on the autovacuum_naptime setting too.

> 2) Every night I do 
> 
> pg_dump -c mydb | psql -d mydbtest
> 
> so I create a copy of the database in a different name for testing
> purposes. But the new database, mydbtest, always has slow queries.
> I run an analyze and they speed up. There are NO transactions in
> mydbtest until I come in and start testing, does this mean
> auto-vacuum won't analyze it? Is this maybe related to question
> 1 where I think auto-vacuum actually wasn't running?

It might mean it hasn't been analyzed _yet_.  If there are too many
databases, it may take a while.

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

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




 6 Posts in Topic:
auto-vacuum questions
gateley@[EMAIL PROTECTED]  2008-05-08 09:43:02 
Re: auto-vacuum questions
alvherre@[EMAIL PROTECTED  2008-05-08 10:54:32 
Re: auto-vacuum questions
gateley@[EMAIL PROTECTED]  2008-05-08 10:04:20 
Re: auto-vacuum questions
ahodgson@[EMAIL PROTECTED  2008-05-08 10:58:47 
Re: auto-vacuum questions
gateley@[EMAIL PROTECTED]  2008-05-08 13:10:12 
Re: auto-vacuum questions
scott.marlowe@[EMAIL PROT  2008-05-09 01:17:23 

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 12:57:44 CST 2008.