[ADMIN] Auto Vacuum

2012-10-19 Thread teyking2003
Can anyone provide me a sample of auto vacuum and also step by step to configure it inside my linux ubuntu server? thanks -- View this message in context: http://postgresql.1045698.n5.nabble.com/Auto-Vacuum-tp5728770.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

Re: [ADMIN] Auto Vacuum

2012-10-19 Thread Scott Marlowe
On Thu, Oct 18, 2012 at 2:13 AM, teyking2003 tchongk...@hotmail.com wrote: Can anyone provide me a sample of auto vacuum and also step by step to configure it inside my linux ubuntu server? Here's the basic instructions on autovacuum for pgsql 8.2. Note that since it's out of support, if you

Re: [ADMIN] Auto Vacuum

2012-10-19 Thread Scott Marlowe
On Fri, Oct 19, 2012 at 11:49 AM, Scott Marlowe scott.marl...@gmail.com wrote: On Thu, Oct 18, 2012 at 2:13 AM, teyking2003 tchongk...@hotmail.com wrote: Can anyone provide me a sample of auto vacuum and also step by step to configure it inside my linux ubuntu server? Here's the basic

Re: [ADMIN] auto vacuum errors

2012-07-05 Thread Isabella Ghiurea
Hi Tom , Here is my error , the missing files were removed by mistake , I have another similar db cfg with this tables:spherrtmp% and no issues. I 'm thinking to restore this tables content from this second db , will this eliminate the auto vacuum error ? 07:45:59.770

Re: [ADMIN] auto vacuum errors

2012-07-05 Thread Tom Lane
Isabella Ghiurea isabella.ghiu...@nrc-cnrc.gc.ca writes: Here is my error , the missing files were removed by mistake , I have another similar db cfg with this tables:spherrtmp% and no issues. I 'm thinking to restore this tables content from this second db , will this eliminate the

[ADMIN] auto vacuum errors

2012-07-04 Thread Isabella Ghiurea
HI Gurus I'm seeing a issue with some temp tables in contrib_regression db , the auto vacuum job will not run for this tables due some files/QID's missing how can I fix this ? The temp tables are growing too fast and they don't get empty/clean-up...any tips ? I 'm running PGSQL 8.3.6 on

Re: [ADMIN] auto vacuum errors

2012-07-04 Thread Tom Lane
Isabella Ghiurea isabella.ghiu...@nrc-cnrc.gc.ca writes: I'm seeing a issue with some temp tables in contrib_regression db , the auto vacuum job will not run for this tables due some files/QID's missing how can I fix this ? Um ... in general, autovacuum just silently ignores temp tables,

[ADMIN] auto vacuum question

2010-11-12 Thread Dinesh Bhandary
Hi All - I am working to tune the auto vacuum in 8.4 and 8.2. I am finding that some of the tables are not getting vacuumed even though they exceed analyze/vacuum threshold. Do you know where auto vacuum process looks to get the number of rows deleted/updated/inserted? pg_stat_user_tables

Re: [ADMIN] auto vacuum question

2010-11-12 Thread Joshua D. Drake
On Fri, 2010-11-12 at 11:44 -0800, Dinesh Bhandary wrote: Hi All - I am working to tune the auto vacuum in 8.4 and 8.2. I am finding that some of the tables are not getting vacuumed even though they exceed analyze/vacuum threshold. Do you know where auto vacuum process looks to get the

[ADMIN] auto vacuum

2010-11-10 Thread Dinesh Bhandary
Hi All - We run both postgres 8.2.3 and 8.4.1 in unix environment. We have auto vacuum configured and I am trying to find out its effectiveness. Here are a couple of questions: 1) I'm running a query that compares actual table count with the pg_stat table count (

[ADMIN] auto vacuum for opentaps

2008-07-21 Thread Ernesto Eduardo Medina Núñez
Hi I installed the open source ERP Opentaps which have *802* tables and using PostgreSQL as backend, and also filled the tables with demo data. When I browse the tables using PgAdmin3 I get messages saying that:* The estimated row count on the table some_table deviates significantly from the

Re: [ADMIN] auto vacuum for opentaps

2008-07-21 Thread Scott Marlowe
On Mon, Jul 21, 2008 at 9:41 AM, Ernesto Eduardo Medina Núñez [EMAIL PROTECTED] wrote: Hi I installed the open source ERP Opentaps which have 802 tables and using PostgreSQL as backend, and also filled the tables with demo data. When I browse the tables using PgAdmin3 I get messages saying

Re: [ADMIN] auto vacuum for opentaps

2008-07-21 Thread Alvaro Herrera
Ernesto Eduardo Medina Núñez escribió: Hi, *autovacuum = on * # enable autovacuum subprocess? #autovacuum_naptime = 60# time between autovacuum runs, in secs #autovacuum_vacuum_threshold = 1000 # min # of tuple updates before

Re: [ADMIN] Auto Vacuum question?

2007-06-05 Thread Charles.Hou
On 6 4 , 10 49 , [EMAIL PROTECTED] (Alvaro Herrera) wrote: Charles.Hou wrote: i set the auto vacuum option to enable. but my database size(hard- disk space) still increased from 420MB to 440MB in 8 hours. most of the operations in this database are the Select query command, just few

Re: [ADMIN] Auto Vacuum question?

2007-06-05 Thread Alvaro Herrera
Charles.Hou wrote: On 6 4 , 10 49 , [EMAIL PROTECTED] (Alvaro Herrera) wrote: It is normal that the tables grow a bit to a stationary state of dead space (generated by UPDATE and DELETE). However it is not normal if it loses track of that dead space. One thing you can and should do is

[ADMIN] Auto Vacuum question?

2007-06-04 Thread Charles.Hou
i set the auto vacuum option to enable. but my database size(hard- disk space) still increased from 420MB to 440MB in 8 hours. most of the operations in this database are the Select query command, just few of Update or Insert. why it can be increased so strongly? after i executed the command

Re: [ADMIN] Auto Vacuum question?

2007-06-04 Thread Alvaro Herrera
Charles.Hou wrote: i set the auto vacuum option to enable. but my database size(hard- disk space) still increased from 420MB to 440MB in 8 hours. most of the operations in this database are the Select query command, just few of Update or Insert. why it can be increased so strongly? after i

Re: [ADMIN] Auto vacuum

2007-04-22 Thread Robert Treat
On Thursday 19 April 2007 13:54, Carol Walter wrote: I certainly appreciate the help you've given. Here's what the code in this part of postgresql.conf file says. autovacuum = on autovacuum_naptime = 30 # time between autovacuum runs, in secs autovacuum_vacuum_threshold = 500

Re: [ADMIN] Auto vacuum

2007-04-20 Thread Carol Walter
Yes, Here's the results table name | setting | unit | category | short_desc| ex tra_desc | context | vartype | source | min_val | max_val

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Alvaro Herrera
Carol Walter wrote: Robert, I did as you suggested and the values for autovacuum are null, therefore I'm guessing it isn't running. Since postgres reports that it is running, what other things might keep in from running? Too high thresholds? All tables disabled in pg_autovacuum?

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Carol Walter
I certainly appreciate the help you've given. Here's what the code in this part of postgresql.conf file says. autovacuum = on autovacuum_naptime = 30 # time between autovacuum runs, in secs autovacuum_vacuum_threshold = 500 # min # of tuple updates before

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Carol Walter
My pg_catalog.pg_autovacuum table contains no entries. Carol Walter On Apr 19, 2007, at 10:53 AM, Alvaro Herrera wrote: Carol Walter wrote: Robert, I did as you suggested and the values for autovacuum are null, therefore I'm guessing it isn't running. Since postgres reports that it is

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Carol Walter
Are you talking about the log that is configured in postgresql.conf? it goes to stderr and is redirected to pg_log directory with a time and date stamp in the filename. It doesn't seem to logging anything but planner statistics. Carol On Apr 19, 2007, at 3:55 PM, Alvaro Herrera wrote:

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Alvaro Herrera
Carol Walter wrote: Are you talking about the log that is configured in postgresql.conf? it goes to stderr and is redirected to pg_log directory with a time and date stamp in the filename. It doesn't seem to logging anything but planner statistics. Yes, that one. If it's not logging

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Carol Walter
I'm not sure if we've done a reload. I'm in an academic environment and our department is in a state of flux right now. I'm in the process of trying to get up to speed on postgreSQL as fast as I can. Here is the result set from that query. select * from pg_settings where name =

Re: [ADMIN] Auto vacuum

2007-04-19 Thread Alvaro Herrera
Carol Walter wrote: I'm not sure if we've done a reload. I'm in an academic environment and our department is in a state of flux right now. I'm in the process of trying to get up to speed on postgreSQL as fast as I can. Here is the result set from that query. select * from

[ADMIN] Auto vacuum

2007-04-17 Thread Carol Walter
I asked questions about auto vacuum earlier. As I said in my earlier email, when I select autovacuum the system responds that it's on. Some here told me when I asked the questions before that I should see log entries for it when it kicks off. In postgresql.conf, it says that the

Re: [ADMIN] Auto vacuum

2007-04-17 Thread Tom Lane
Carol Walter [EMAIL PROTECTED] writes: I don't see any references to auto-vacuum in the log. What would the references look like? Which PG version are you running, exactly? regards, tom lane ---(end of broadcast)---

Re: [ADMIN] Auto vacuum

2007-04-17 Thread Carol Walter
8.2.3 is what is reported when I run psql with the -V option. Thanks, Carol On Apr 17, 2007, at 4:14 PM, Tom Lane wrote: Carol Walter [EMAIL PROTECTED] writes: I don't see any references to auto-vacuum in the log. What would the references look like? Which PG version are you running,

Re: [ADMIN] Auto vacuum

2007-04-17 Thread Tom Lane
Carol Walter [EMAIL PROTECTED] writes: 8.2.3 is what is reported when I run psql with the -V option. In 8.2 you need to increase log_min_messages to see anything about autovacuum. It reports per-database activity at DEBUG1 and per-table activity at DEBUG2 level. Unfortunately DEBUG2 will fill

[ADMIN] Auto Vacuum not starting unless postgres is restarted

2006-09-15 Thread Nick Howden
Hi, On startup we get an error in the postgres log that the Autovacuum process has failed to start -- autovacuum not started because of misconfiguration. However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the autovacuum starts fine. Does anybody have any idea what the

[ADMIN] Auto Vacuum not starting unless postgres is restarted

2006-09-15 Thread Nick Howden
Hi, On startup we get an error in the postgres log that the Autovacuum process has failed to start -- autovacuum not started because of misconfiguration. However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the autovacuum starts fine. Does anybody have any idea what the

Re: [ADMIN] Auto Vacuum not starting unless postgres is restarted

2006-09-15 Thread Alvaro Herrera
Nick Howden wrote: Hi, On startup we get an error in the postgres log that the Autovacuum process has failed to start -- autovacuum not started because of misconfiguration. However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the autovacuum starts fine. Does

Re: [ADMIN] Auto Vacuum not starting unless postgres is restarted

2006-09-15 Thread Nick Howden
Hi, On startup we get an error in the postgres log that the Autovacuum process has failed to start -- autovacuum not started because of misconfiguration. However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the autovacuum starts fine. Does anybody have any idea what

Re: [ADMIN] Auto Vacuum not starting unless postgres is restarted

2006-09-15 Thread Tom Lane
Nick Howden [EMAIL PROTECTED] writes: The firewall rules I have are : # Postgres Statistics Collector iptables -A INPUT -p udp \ -i lo --sport 32779 --dport 32779 \ -j ACCEPT iptables -A OUTPUT -p udp \ -o lo --sport 32779 --dport 32779 \ -j ACCEPT ###

[ADMIN] auto vacuum doens't appear to be working

2006-06-30 Thread Warren Little
We have a bytea column where we store large attachments (ie pdf file). every so often (2 weekly) we replace the large a attachment (5-15mb) with a much smaller binary file (15k). when I run SELECT sum( relpages*8/1024 ) as MB FROM pg_class where relname != '' I get a value of 104995 which I

Re: [ADMIN] auto vacuum doens't appear to be working

2006-06-30 Thread Tom Lane
Warren Little [EMAIL PROTECTED] writes: when I run SELECT sum( relpages*8/1024 ) as MB FROM pg_class where relname != '' I get a value of 104995 which I interpret to mean I have 104GB of stored data in the database and this value has remained relatively static (+/- 1GB) over the past

Re: [ADMIN] auto vacuum doens't appear to be working

2006-06-30 Thread Jim C. Nasby
Also, remember that a regular vacuum won't actually free any disk space*, it only marks it as re-useable in the table. * OK, technically it will reclaim space from the very end of the table * in certain circumstances, but in reality it's pretty rare for that to * happen. On Fri, Jun 30, 2006 at

Re: [ADMIN] auto vacuum settings

2005-08-31 Thread Tom Lane
Jeff Frost [EMAIL PROTECTED] writes: Since we're on the vacuum kick these days, what's the best way to tell if my autovacuum settings are working well? I'm sure I can query some info out of the pg_stats tables, no? If the database isn't bloating (ie, physical storage growing faster than

Re: [ADMIN] auto vacuum settings

2005-08-31 Thread Alvaro Herrera
On Wed, Aug 31, 2005 at 09:47:35AM -0400, Tom Lane wrote: Jeff Frost [EMAIL PROTECTED] writes: Since we're on the vacuum kick these days, what's the best way to tell if my autovacuum settings are working well? I'm sure I can query some info out of the pg_stats tables, no? If the

Re: [ADMIN] auto vacuum settings

2005-08-31 Thread Jeff Frost
Thanks Tom! Now what does the relpages column mean? I.e. how should I interpret that entry for my tables? On Wed, 31 Aug 2005, Tom Lane wrote: If the database isn't bloating (ie, physical storage growing faster than valid data volume) then it's getting the job done. Keep an eye on du

Re: [ADMIN] auto vacuum settings

2005-08-31 Thread Alvaro Herrera
On Wed, Aug 31, 2005 at 10:59:49AM -0700, Jeff Frost wrote: Thanks Tom! Now what does the relpages column mean? I.e. how should I interpret that entry for my tables? relpages is the number of pages of the table. A page is 8kb (unless you changed a compile-time setting -- you can check it

[ADMIN] auto vacuum settings

2005-08-30 Thread Jeff Frost
Since we're on the vacuum kick these days, what's the best way to tell if my autovacuum settings are working well? I'm sure I can query some info out of the pg_stats tables, no? Also, if using autovacuum, should I still do a vacuum full on a regular basis? -- Jeff Frost, Owner [EMAIL