#!/bin/sh
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
-# Package : reindexdb Version : $Revision: 1.1 $
+# Package : reindexdb Version : $Revision: 1.2 $
# Date : 05/08/2002 Author : Shaun Thomas
# Req : psql, sh, perl, sed Type : Utility
#
# Function Definitions
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
-function usage()
+usage()
{
echo "$CMDNAME reindexes a PostgreSQL database."
echo
+
+
Routine Reindexing
+
+
+
+
+
PostgreSQL is unable to reuse index pages
+ in some cases. The problem is that if indexed rows are deleted, those
+ indexes pages can only be reused by rows with similar values. In
+ cases where low indexed rows are deleted and newly inserted rows have
+ high values, disk space used by the index will grow indefinately, even
+ if VACUUM> is run frequently.
+ TO BE COMPLETED 2002-06-22 bjm
+
+
+
+
Log File Maintenance
typedef struct
{
/* Number of times we've been called before */
- uint call_cntr;
+ uint32 call_cntr;
/* Maximum number of calls */
- uint max_calls;
+ uint32 max_calls;
/* pointer to result slot */
TupleTableSlot *slot;