From: Bruce Momjian Date: Sat, 22 Jun 2002 04:08:07 +0000 (+0000) Subject: uint -> uint32, portability. X-Git-Tag: REL7_3~1315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8a1f158775cb0f83707aa4211c02f4780eed07f;p=postgresql uint -> uint32, portability. --- diff --git a/contrib/reindex/reindex b/contrib/reindex/reindex index 1eed1d0e25..756771af76 100644 --- a/contrib/reindex/reindex +++ b/contrib/reindex/reindex @@ -1,6 +1,6 @@ #!/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 # @@ -10,7 +10,7 @@ # Function Definitions # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # -function usage() +usage() { echo "$CMDNAME reindexes a PostgreSQL database." echo diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index b2fa6febc4..9ced267bce 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -1,5 +1,5 @@ @@ -367,6 +367,25 @@ VACUUM + + Routine Reindexing + + + reindex + + + + 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 diff --git a/src/include/funcapi.h b/src/include/funcapi.h index 36a0cc47bd..351a7a420d 100644 --- a/src/include/funcapi.h +++ b/src/include/funcapi.h @@ -66,10 +66,10 @@ typedef struct 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;