473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Vacuuming and already vacuumed table?

Greetings,

Would it make sense for vacuum to keep a list of 'last vacuumed' or
similar so that it doesn't vacuum a table which hasn't changed since
the last time it was vacuum'd? Seems to me that would be a pretty
simple optimization which would help out alot on systems which have
both a large set of tables which are relatively static and data which
changes a great deal. This is especially true for vacuum full which
also locks the table.

Thoughts?

Thanks,

Stephen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/TmutrzgMPqB3kigRAuTSAJoDx5D5tFwL/09K14vY5y8yPOHz/QCghRra
crKHUx//OF9ld6iUCfWpI/c=
=Bvvw
-----END PGP SIGNATURE-----

Nov 11 '05 #1
2 1278
In the last exciting episode, sf****@snowman.net (Stephen Frost) wrote:
Would it make sense for vacuum to keep a list of 'last vacuumed' or
similar so that it doesn't vacuum a table which hasn't changed since
the last time it was vacuum'd? Seems to me that would be a pretty
simple optimization which would help out alot on systems which have
both a large set of tables which are relatively static and data which
changes a great deal. This is especially true for vacuum full which
also locks the table.


See, in 7.4, the "pg_autovacuum" daemon.

It does much what you suggest...
--
(format nil "~S@~S" "cbbrowne" "ntlug.org")
http://www.ntlug.org/~cbbrowne/finances.html
Rules of the Evil Overlord #110. "I will not employ devious schemes
that involve the hero's party getting into my inner sanctum before the
trap is sprung." <http://www.eviloverlord.com/>
Nov 11 '05 #2
On Thu, 2003-08-28 at 16:53, Stephen Frost wrote:
Would it make sense for vacuum to keep a list of 'last vacuumed' or
similar so that it doesn't vacuum a table which hasn't changed since
the last time it was vacuum'd? Seems to me that would be a pretty
simple optimization which would help out alot on systems which have
both a large set of tables which are relatively static and data which
changes a great deal. This is especially true for vacuum full which
also locks the table.


7.4Beta has a contrib module called pg_autovacuum. It attempts to do
exactly what you are talking about. It only vacuums a table that has
had sufficient activity since the last vacuum. It runs as a standalone
daemon. Also, it can be used against 7.3 if that is what you are
running.
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: None | last post by:
Hello, I am a total newbie to PHP and programming in general. I am playing around with a PHP / MySQL shopping cart script which I found at...
4
by: Jim in Arizona | last post by:
I'm wanting to do a simple controlled voting page. I too our webserver off anonymous and everyone who accesses the website is a domain authenticated user. I've already done some control structure...
0
by: Rajesh Kumar Mallah | last post by:
Hi, Will it be a good idea for vacuum command to allow vacumming specific schemas? eg we have a schema for archiving purposes which we do not want to vacumm everytime as they are huge. ...
1
by: Tambet Matiisen | last post by:
My Postgres databases used to have default (SQL_ASCII) encoding. I could store any 8-bit character in it regardless of actual charset, because all clients also used default encoding and no charset...
2
by: Shelby Cain | last post by:
I'm putting 8.0 through its paces and here are a few things I've noticed on the native win32 port running on my workstation (2.0g p4 w/256 megs of ram). Here is the output of "vacuum verbose...
3
by: Joe Maldonado | last post by:
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?...
15
by: OfficeDummy | last post by:
Hello all! I searched the Internet and this forum for a similar problem, but I found no help... Also, I'm a complete newbie to the fascinating world of programming, VBA and Access, so my question...
5
by: bananahead | last post by:
Hello all, and thanks again for the help, I have been very pleased with the quality posts on this forum! Here what I need to solve: I have 2 tables on a db, one is called visitor_log and here...
0
by: bharathreddy | last post by:
This article will explain you how to check weather a column already exists in a table before you add the column to the table using alter command. Using the system tables...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.