Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite854d3d

Browse files
author
Hiroshi Inoue
committed
*** empty log message ***
1 parentf43974f commite854d3d

File tree

1 file changed

+181
-0
lines changed

1 file changed

+181
-0
lines changed

‎doc/src/sgml/ref/reindex.sgml

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<!--
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/reindex.sgml,v 1.1 2000/03/31 08:16:33 inoue Exp $
3+
Postgres documentation
4+
-->
5+
6+
<refentry id="SQL-REINDEX">
7+
<refmeta>
8+
<refentrytitle id="SQL-REINDEX-TITLE">
9+
REINDEX
10+
</refentrytitle>
11+
<refmiscinfo>SQL - Language Statements</refmiscinfo>
12+
</refmeta>
13+
<refnamediv>
14+
<refname>
15+
REINDEX
16+
</refname>
17+
<refpurpose>
18+
Recover corrupted system indexes under standalone Postgres
19+
</refpurpose>
20+
</refnamediv>
21+
<refsynopsisdiv>
22+
<refsynopsisdivinfo>
23+
<date>2000-03-30</date>
24+
</refsynopsisdivinfo>
25+
<synopsis>
26+
REINDEX { TABLE | DATABASE | INDEX } <replaceable class="PARAMETER">name</replaceable> [ FORCE ]
27+
</synopsis>
28+
29+
<refsect2 id="R2-SQL-REINDEX-1">
30+
<refsect2info>
31+
<date>2000-03-30</date>
32+
</refsect2info>
33+
<title>
34+
Inputs
35+
</title>
36+
<para>
37+
38+
<variablelist>
39+
<varlistentry>
40+
<term>TABLE</term>
41+
<listitem>
42+
<para>
43+
Recreate all indexes of a specfied table.
44+
</para>
45+
</listitem>
46+
</varlistentry>
47+
<varlistentry>
48+
<term>DATABASE</term>
49+
<listitem>
50+
<para>
51+
Recreate all system indexes of a specfied database.
52+
</para>
53+
</listitem>
54+
</varlistentry>
55+
<varlistentry>
56+
<term>INDEX</term>
57+
<listitem>
58+
<para>
59+
Recreate a specfied index.
60+
</para>
61+
</listitem>
62+
</varlistentry>
63+
<varlistentry>
64+
<term><replaceable class="PARAMETER">name</replaceable></term>
65+
<listitem>
66+
<para>
67+
The name of the specific table/database/index to be be reindexed.
68+
</para>
69+
</listitem>
70+
</varlistentry>
71+
<varlistentry>
72+
<term>FORCE</term>
73+
<listitem>
74+
<para>
75+
Recreate indexes forcedly. Without this keyword REINDEX does
76+
nothing unless target indexes are invalidated.
77+
</para>
78+
</listitem>
79+
</varlistentry>
80+
</variablelist>
81+
</para>
82+
</refsect2>
83+
84+
<refsect2 id="R2-SQL-REINDEX-2">
85+
<refsect2info>
86+
<date>2000-03-30</date>
87+
</refsect2info>
88+
<title>
89+
Outputs
90+
</title>
91+
<para>
92+
93+
<variablelist>
94+
<varlistentry>
95+
<term><computeroutput>
96+
REINDEX
97+
</computeroutput></term>
98+
<listitem>
99+
<para>
100+
Message returned if the table is successfully reindexed.
101+
</para>
102+
</listitem>
103+
</varlistentry>
104+
</variablelist>
105+
</para>
106+
</refsect2>
107+
</refsynopsisdiv>
108+
109+
<refsect1 id="R1-SQL-REINDEX-1">
110+
<refsect1info>
111+
<date>2000-03-30</date>
112+
</refsect1info>
113+
<title>
114+
Description
115+
</title>
116+
<para>
117+
<command>REINDEX</command> is used to recover corrupted system indexes.
118+
In order to run REINDEX command,Postmaster must be shutdown and
119+
standalone Postgres should be started instead with options -O and
120+
-P(an option to ignore system indexes). Note that we couldn't rely
121+
on system indexes for the recovery of system indexes.
122+
</para>
123+
</refsect1>
124+
125+
<refsect1 id="R1-SQL-REINDEX-2">
126+
<title>
127+
Usage
128+
</title>
129+
<para>
130+
Recreate the table <literal>mytable</literal>:
131+
132+
<programlisting>
133+
REINDEX TABLE mytable;
134+
</programlisting>
135+
</para>
136+
137+
<para>
138+
Some more examples:
139+
140+
<programlisting>
141+
REINDEX DATABASE my_database FORCE;
142+
REINDEX INDEX my_index;
143+
</programlisting>
144+
</para>
145+
</refsect1>
146+
147+
<refsect1 id="R1-SQL-REINDEX-3">
148+
<title>
149+
Compatibility
150+
</title>
151+
152+
<refsect2 id="R2-SQL-REINDEX-4">
153+
<refsect2info>
154+
<date>2000-03-30</date>
155+
</refsect2info>
156+
<title>
157+
SQL92
158+
</title>
159+
<para>
160+
There is no <command>REINDEX</command> in <acronym>SQL92</acronym>.
161+
</para>
162+
</refsect2>
163+
</refsect1>
164+
</refentry>
165+
166+
<!-- Keep this comment at the end of the file
167+
Local variables:
168+
mode: sgml
169+
sgml-omittag:t
170+
sgml-shorttag:t
171+
sgml-minimize-attributes:nil
172+
sgml-always-quote-attributes:t
173+
sgml-indent-step:1
174+
sgml-indent-data:t
175+
sgml-parent-document:nil
176+
sgml-default-dtd-file:"../reference.ced"
177+
sgml-exposed-tags:nil
178+
sgml-local-catalogs:"/usr/lib/sgml/catalog"
179+
sgml-local-ecat-files:nil
180+
End:
181+
-->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp