Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > cb664fc35171072d04824accda2566aa > files > 245

pgadmin3-1.12.2-2.fc13.i686.rpm

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="STYLESHEET" type="text/css" href="pgadmin3.css">
<title>Maintain a database object</title>
</head>

<body>

<H3>Maintain a database object</H3>

<center><img src="images/maintenance.png"></center>

<P>This tool allows to maintain the database in total, or only a
selected table, or a selected index.</P>
<P>Maintenance comes in three flavors:</P>
<H3>VACUUM</H3>
<P>VACUUM will scan the database or table for rows, that are not in
use any more. If a row is updated or deleted, the previous content
isn't replaced, but rather marked invalid. The new data is inserted
freshly into the database. You need to perform a garbage collection
regularly, to insure that your database doesn't contain too much
unused data, wasting disk space and ultimatively degrading
performance.</P>
<P>Please press the Help button to see the PostgreSQL help about the
VACUUM command to learn more about the options.</P>
<P>The output of the database server is displayed in the messages
page as they arrive. If Verbose is selected, the server will send
very detailed info about what it did.</P>
<P>While this tool is very handy for ad-hoc maintenance purposes,
you are encouraged to install an automatic job, that performs a
VACUUM job regularly to keep your database in a neat state.</P>
<H3>ANALYZE</H3>
<P>ANALYZE investigates statistical values about the selected
database or table. This enables the query optimizer to select the
fastest query plan, to give optimal performance. Every time your data
is changing radically, you should perform this task. It can be
included in a VACUUM run, using the appropriate option.</P>
<H3>REINDEX</H3>
<P>REINDEX rebuilds the indexes in case these have degenerated caused 
by unusual data patterns inserted. This can happen for example if you insert
many rows with increasing index values, and delete low index values.</P>
<P>The RECREATE option doesn't call the REINDEX SQL command internally, 
instead it drops the existing table and recreates it according to the current index 
definition.This doesn't lock the table exclusively, as REINDEX does, but will lock 
write access only. 
</P>
</BODY>
</HTML>