Re: [PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
"Alvaro Herrera" <[EMAIL PROTECTED]> writes: > Steinar H. Gunderson wrote: > >> Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples, >> as compared to the random selection employed by ANALYZE? > > You are wrong, but it won't be me the one to shoot you. > > There have been noises towards making the ANALYZE portion use the same > scan that VACUUM already does, but nobody has written the code (it would > be useful for some kinds of stats). I think it does for the count of total records in the table. But not for the rest of the stats. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster
Re: [PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
Steinar H. Gunderson wrote: > On Tue, May 08, 2007 at 05:52:13PM -0400, Alvaro Herrera wrote: > >> I am trying to follow a message thread. One guy says we should be running > >> vacuum analyze daily and the other says we should be running vacuum > >> multiple > >> times a day. I have tried looking for what a vacuum analyze is to help me > >> understand but no luck. > > VACUUM ANALYZE is like VACUUM, except that it also runs an ANALYZE > > afterwards. > > Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples, > as compared to the random selection employed by ANALYZE? You are wrong, but it won't be me the one to shoot you. There have been noises towards making the ANALYZE portion use the same scan that VACUUM already does, but nobody has written the code (it would be useful for some kinds of stats). -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate
Re: [PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
On Tue, May 08, 2007 at 05:52:13PM -0400, Alvaro Herrera wrote: >> I am trying to follow a message thread. One guy says we should be running >> vacuum analyze daily and the other says we should be running vacuum multiple >> times a day. I have tried looking for what a vacuum analyze is to help me >> understand but no luck. > VACUUM ANALYZE is like VACUUM, except that it also runs an ANALYZE > afterwards. Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples, as compared to the random selection employed by ANALYZE? /* Steinar */ -- Homepage: http://www.sesse.net/ ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org
Re: [PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
Y Sidhu escribió: > I am trying to follow a message thread. One guy says we should be running > vacuum analyze daily and the other says we should be running vacuum multiple > times a day. I have tried looking for what a vacuum analyze is to help me > understand but no luck. VACUUM ANALYZE is like VACUUM, except that it also runs an ANALYZE afterwards. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
Re: [PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
On Tue, 8 May 2007, Y Sidhu wrote: I am trying to follow a message thread. One guy says we should be running vacuum analyze daily and the other says we should be running vacuum multiple times a day. I have tried looking for what a vacuum analyze is to help me understand but no luck. vaccum frees tuples that are no longer refrenced vaccum analyse does the same thing, but then does some additional information gathering about what data is in the tables Postgres uses this data to adjust it's estimates of how long various things will take (sequential scan, etc). if these estimates are off by a huge amount (especially if you have never done a vaccum analyse after loading your table) then it's very likely that postgres will be slow becouse it's doing expensive operations that it thinks are cheap. David Lang ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings
[PERFORM] What's The Difference Between VACUUM and VACUUM ANALYZE?
I am trying to follow a message thread. One guy says we should be running vacuum analyze daily and the other says we should be running vacuum multiple times a day. I have tried looking for what a vacuum analyze is to help me understand but no luck. -- Yudhvir Singh Sidhu 408 375 3134 cell