Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

Started by Edson Richterover 13 years ago8 messagesgeneral
Jump to latest
#1Edson Richter
edsonrichter@hotmail.com

I know PostgreSQL from time to time runs automatically the vacuum process.
My applications grows due lots of data import during the day (about
100Mb/day).
Do I need also to schedule a Vacuum Analyze to happens from time to time?

Edson

#2François Beausoleil
francois@teksol.info
In reply to: Edson Richter (#1)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

Le 2012-07-24 à 16:36, Edson Richter a écrit :

I know PostgreSQL from time to time runs automatically the vacuum process.
My applications grows due lots of data import during the day (about 100Mb/day).
Do I need also to schedule a Vacuum Analyze to happens from time to time?

I already asked that question for 9.1 here: http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1

Bye!
François

#3John R Pierce
pierce@hogranch.com
In reply to: François Beausoleil (#2)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

On 07/24/12 2:15 PM, François Beausoleil wrote:

Le 2012-07-24 à 16:36, Edson Richter a écrit :

I know PostgreSQL from time to time runs automatically the vacuum process.
My applications grows due lots of data import during the day (about 100Mb/day).
Do I need also to schedule a Vacuum Analyze to happens from time to time?

I already asked that question for 9.1 here:http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1

autovacuum does analyze as it goes.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

#4Edson Richter
edsonrichter@hotmail.com
In reply to: François Beausoleil (#2)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

Em 24/07/2012 18:15, Fran�ois Beausoleil escreveu:

Le 2012-07-24 � 16:36, Edson Richter a �crit :

I know PostgreSQL from time to time runs automatically the vacuum process.
My applications grows due lots of data import during the day (about 100Mb/day).
Do I need also to schedule a Vacuum Analyze to happens from time to time?

I already asked that question for 9.1 here: http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1

Bye!
Fran�ois

There are great points on there, and for sure I'll read and analyze
carefuly.
But a simpler question remains: Auto vacuum also update statistics, or I
need to schedule Vacuum Analyze to do that?
I would not want to have two schedules doing same (or very close) things
bloating my database server.

Thanks,

#5Edson Richter
edsonrichter@hotmail.com
In reply to: François Beausoleil (#2)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

Em 24/07/2012 18:15, Fran�ois Beausoleil escreveu:

Le 2012-07-24 � 16:36, Edson Richter a �crit :

I know PostgreSQL from time to time runs automatically the vacuum process.
My applications grows due lots of data import during the day (about 100Mb/day).
Do I need also to schedule a Vacuum Analyze to happens from time to time?

I already asked that question for 9.1 here: http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1

Bye!
Fran�ois

There are great points on there, and for sure I'll read and analyze
carefully.
But a simpler question remains: Auto vacuum also update statistics, or I
need to schedule Vacuum Analyze to do that?
I would not want to have two schedules doing same (or very close) things
bloating my database server.

Thanks,

#6Edson Richter
edsonrichter@hotmail.com
In reply to: John R Pierce (#3)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

Em 24/07/2012 18:23, John R Pierce escreveu:

On 07/24/12 2:15 PM, Fran�ois Beausoleil wrote:

Le 2012-07-24 � 16:36, Edson Richter a �crit :

I know PostgreSQL from time to time runs automatically the vacuum

process.

My applications grows due lots of data import during the day (about

100Mb/day).

Do I need also to schedule a Vacuum Analyze to happens from time to

time?

I already asked that question for 9.1
here:http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1

autovacuum does analyze as it goes.

Thanks, that was the missing point :-)

Regards,

Edson

#7Anthony Bull
antsbull@gmail.com
In reply to: Edson Richter (#6)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

We found the auto vacuum would always kick in during our daily data loads
in the mornings and completely bottle neck our system, and in the end had
to turn it off and schedule our own vacuum analyze over the weekend each
week using crontab. We do a couple of gigs of inserts a week into our
postgres db - and having control of when vacuuming happens is pretty
important, as our system is online 24 hours to both northern and southern
hemispheres.

On Wed, Jul 25, 2012 at 9:30 AM, Edson Richter <edsonrichter@hotmail.com>wrote:

Show quoted text

Em 24/07/2012 18:23, John R Pierce escreveu:

On 07/24/12 2:15 PM, François Beausoleil wrote:

Le 2012-07-24 à 16:36, Edson Richter a écrit :

I know PostgreSQL from time to time runs automatically the vacuum
process.

My applications grows due lots of data import during the day (about

100Mb/day).

Do I need also to schedule a Vacuum Analyze to happens from time to

time?

I already asked that question for 9.1 here:http://dba.stackexchange.**
com/questions/18664/are-**regular-vacuum-analyze-stil-**
recommended-under-9-1<http://dba.stackexchange.com/questions/18664/are-regular-vacuum-analyze-stil-recommended-under-9-1&gt;

autovacuum does analyze as it goes.

Thanks, that was the missing point :-)

Regards,

Edson

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/**mailpref/pgsql-general&lt;http://www.postgresql.org/mailpref/pgsql-general&gt;

#8Scott Marlowe
scott.marlowe@gmail.com
In reply to: Anthony Bull (#7)
Re: Pg 9.1: Do I need to run vacuum analyze instead vacuum full?

On Tue, Jul 24, 2012 at 5:43 PM, Anthony Bull <antsbull@gmail.com> wrote:

We found the auto vacuum would always kick in during our daily data loads in
the mornings and completely bottle neck our system, and in the end had to
turn it off and schedule our own vacuum analyze over the weekend each week
using crontab. We do a couple of gigs of inserts a week into our postgres
db - and having control of when vacuuming happens is pretty important, as
our system is online 24 hours to both northern and southern hemispheres.

Please note that autovacuum is tunable in terms of how much load it
places on a system when it runs. Often making it somewhat less
aggressive can accomplish the same task as scheduling regular vacuums.