473,480 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

vacuum

I am using a 7.3.4.

just simple questions ;=)

1.when I launch a vacuum verbose analyze on my database. Does it re-cretae all the indexes of each table ?

2.In addition to the vacuum, do I have to re-index my database using REINDEX

3.Is REINDEX only used for created corrupt indexes (as I understood from 7.3 documentation) or can it be used to re-index a database or a table (as I understood from documentation for 7.4)

Thank you for your help.
Nov 12 '05 #1
1 1744
On Thu, 8 Jan 2004, Guillaume Houssay wrote:
I am using a 7.3.4.

just simple questions ;=)

1.when I launch a vacuum verbose analyze on my database. Does it
re-cretae all the indexes of each table ?
No, vacuuming (harvesting dead tuples from tables) and analyzing
(determining the statistical layout of your data) do not cause any form of
reindexing.
2.In addition to the vacuum, do I have to re-index my database using
REINDEX
Not usually. Generally reindexing is used to fix broken / corrupted
indexes, like the 7.3 docs say. However...
3.Is REINDEX only used for created corrupt indexes (as I understood
from 7.3 documentation) or can it be used to re-index a database or a
table (as I understood from documentation for 7.4)


somewhere before 7.3 came out an issue with index growth in monotonically
increasing indexes was noted and the two standard ways to fix it were to
either drop / recreate the index or reindex the index. the problem was
that with an index that increased in only one direction, the old pages
that held the older entries were never freed or collapsed down. I had a
1.5 Meg table that was updated every day, and it had an 85 meg index
hanging on the side due to this problem.

The short term solution for postgresql up to and including version 7.3.5
is to reindex indexes that experience this problem. As of 7.4, empty
pages are now collapsed and reclaimed. Note that sparsely populated pages
are NOT collapsed, and therefore there is still the possiblity that you
could be hit by sparsely populated indexes that are larger than optimal,
but that chance is greatly reduced for most, if not nearly all,
situations now in 7.4.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #2

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

Similar topics

6
3458
by: Holger Marzen | last post by:
Hi all, the docs are not clear for me. If I want (in version 7.1.x, 7.2.x) to help the analyzer AND free unused space do I have to do a vacuum vacuum analyze or is a
1
1553
by: Dmitry Tkach | last post by:
Hi, everybody! I am getting a weird failure, trying to vacuum a table in 7.3 - it says "ERROR: Index pg_toast_89407_index is not a btree". Does it ring a bell to anyone? Any ideas what's wrong?...
10
3122
by: Stephen | last post by:
Hello, Is it normal for plain VACUUM on large table to degrade performance by over 9 times? My database becomes unusable when VACUUM runs. From reading newsgroups, I thought VACUUM should only...
8
4542
by: Sean Shanny | last post by:
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. DB size...
2
6292
by: lnd | last post by:
Any comments on multi-versioning problem: As far as I understand from PG documentation, *CURRENTLY* VACUUM must be run regulary, otherwise: -Q. database will grow as fast as there are many DML...
6
2602
by: Alex | last post by:
Hi, just a few questions on the Vaccum I run a vacuum analyze on the database every night as part of a maintenance job. During the day I have a job that loads 30-70,000 records into two...
0
1693
by: Jim Seymour | last post by:
Hi, Environment: PostgreSQL 7.4.2 Locally built with GCC 3.3.1 Solaris 8 (Sparc) I have a relatively simple database created with...
6
1791
by: spied | last post by:
look please http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=253295 ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend
2
2511
by: Russell Smith | last post by:
Postgresql 7.4.5 The following VACUUMs were run within a couple of minutes of each other completing. This table concerned is a table that has not been changed in a long time. (a month) There...
9
2731
by: Aleksey Serba | last post by:
Hello! I have 24/7 production server under high load. I need to perform vacuum full on several tables to recover disk space / memory usage frequently ( the server must be online during vacuum...
0
7055
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
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7103
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...
1
6758
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
5362
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,...
1
4799
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...
0
4499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.