Skip to content

Commit a8a1f15

Browse files
committed
uint -> uint32, portability.
1 parent 90edb26 commit a8a1f15

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

contrib/reindex/reindex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
3-
# Package : reindexdb Version : $Revision: 1.1 $
3+
# Package : reindexdb Version : $Revision: 1.2 $
44
# Date : 05/08/2002 Author : Shaun Thomas
55
# Req : psql, sh, perl, sed Type : Utility
66
#
@@ -10,7 +10,7 @@
1010
# Function Definitions
1111
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #
1212

13-
function usage()
13+
usage()
1414
{
1515
echo "$CMDNAME reindexes a PostgreSQL database."
1616
echo

doc/src/sgml/maintenance.sgml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.14 2002/06/13 05:15:22 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.15 2002/06/22 04:08:07 momjian Exp $
33
-->
44

55
<chapter id="maintenance">
@@ -367,6 +367,25 @@ VACUUM
367367
</sect1>
368368

369369

370+
<sect1 id="routine-reindex">
371+
<title>Routine Reindexing</title>
372+
373+
<indexterm zone="routine-reindex">
374+
<primary>reindex</primary>
375+
</indexterm>
376+
377+
<para>
378+
<productname>PostgreSQL</productname> is unable to reuse index pages
379+
in some cases. The problem is that if indexed rows are deleted, those
380+
indexes pages can only be reused by rows with similar values. In
381+
cases where low indexed rows are deleted and newly inserted rows have
382+
high values, disk space used by the index will grow indefinately, even
383+
if <command>VACUUM</> is run frequently.
384+
TO BE COMPLETED 2002-06-22 bjm
385+
</para>
386+
</sect1>
387+
388+
370389
<sect1 id="logfile-maintenance">
371390
<title>Log File Maintenance</title>
372391

src/include/funcapi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ typedef struct
6666
typedef struct
6767
{
6868
/* Number of times we've been called before */
69-
uint call_cntr;
69+
uint32 call_cntr;
7070

7171
/* Maximum number of calls */
72-
uint max_calls;
72+
uint32 max_calls;
7373

7474
/* pointer to result slot */
7575
TupleTableSlot *slot;

0 commit comments

Comments
 (0)