1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY postgresql-download-http "http://gd.tuwien.ac.at/db/postgresql/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
8 | <!ENTITY postgresql-download-ftp "ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
9 | <!-- <!ENTITY postgresql-download-http "&sources-anduin-http;/p/postgresql-&postgresql-version;.tar.bz2">
|
---|
10 | <!ENTITY postgresql-download-ftp "&sources-anduin-ftp;/p/postgresql-&postgresql-version;.tar.bz2"> -->
|
---|
11 | <!ENTITY postgresql-md5sum "4ad7e4fc31ef8b8a75a3e4243933963f">
|
---|
12 | <!ENTITY postgresql-size "15 MB">
|
---|
13 | <!ENTITY postgresql-buildsize "163 MB (additional 138 MB to run the testsuite)">
|
---|
14 | <!ENTITY postgresql-time "1.6 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
|
---|
18 | <?dbhtml filename="postgresql.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>PostgreSQL-&postgresql-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="postgresql">
|
---|
28 | <primary sortas="a-PostgreSQL">PostgreSQL</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to PostgreSQL</title>
|
---|
33 |
|
---|
34 | <para><application>PostgreSQL</application> is an advanced
|
---|
35 | object-relational database management system (ORDBMS), derived
|
---|
36 | from the Berkeley Postgres database management system.</para>
|
---|
37 |
|
---|
38 | <para>There may be a more recent release available from the
|
---|
39 | <application>PostgreSQL</application> home page. You can check
|
---|
40 | <ulink url="http://www.postgresql.org/"/> and probably use the
|
---|
41 | existing BLFS instructions. Note that versions other than the one shown
|
---|
42 | in the download URLs have not been tested in a BLFS environment.</para>
|
---|
43 |
|
---|
44 | &lfs70_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&postgresql-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&postgresql-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &postgresql-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &postgresql-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &postgresql-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &postgresql-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
71 | <para role="optional"><xref linkend="python2"/>,
|
---|
72 | <xref linkend="tcl"/>,
|
---|
73 | <xref linkend="openssl"/>,
|
---|
74 | <xref linkend="libxml2"/>,
|
---|
75 | <xref linkend="libxslt"/>,
|
---|
76 | <xref linkend="openldap"/>,
|
---|
77 | <xref linkend="linux-pam"/>,
|
---|
78 | <!-- link is dead, no other suitable GSSAPI links found
|
---|
79 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>, -->
|
---|
80 | <xref linkend="mitkrb"/> and
|
---|
81 | <ulink url="http://developer.apple.com/networking/bonjour/">Bonjour</ulink></para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
|
---|
84 | <para role="optional"><xref linkend="sgml-dtd"/>,
|
---|
85 | <xref linkend="docbook-dsssl"/>,
|
---|
86 | <xref linkend="openjade"/>, and
|
---|
87 | <xref linkend="perl-sgmlspm"/></para>
|
---|
88 |
|
---|
89 | <para condition="html" role="usernotes">User Notes:
|
---|
90 | <ulink url="&blfs-wiki;/postgresql"/></para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="installation">
|
---|
95 | <title>Installation of PostgreSQL</title>
|
---|
96 |
|
---|
97 | <para>Install <application>PostgreSQL</application> with the
|
---|
98 | following commands: </para>
|
---|
99 |
|
---|
100 | <!-- commented : regeneration is unnecessary, and we don't tell people the
|
---|
101 | command to do it.
|
---|
102 | <para>If you intend to regenerate the html documentation, issue the
|
---|
103 | following command:</para>
|
---|
104 | <screen><userinput>sed -i "s|dsssl-stylesheets|& \\\\\n sgml/docbook/&-&docbook-dsssl-version;|" \
|
---|
105 | configure</userinput></screen>-->
|
---|
106 |
|
---|
107 | <para>Now configure and build the package:</para>
|
---|
108 |
|
---|
109 | <screen><userinput>./configure --prefix=/usr \
|
---|
110 | --docdir=/usr/share/doc/postgresql-&postgresql-version; \
|
---|
111 | --enable-thread-safety &&
|
---|
112 | make</userinput></screen>
|
---|
113 |
|
---|
114 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
115 |
|
---|
116 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
117 |
|
---|
118 | <screen role="root"><userinput>make install &&
|
---|
119 | make install-docs &&
|
---|
120 | chown -v root:root /usr/share/doc/postgresql-&postgresql-version;/html/*</userinput></screen>
|
---|
121 |
|
---|
122 | <note>
|
---|
123 | <para>If you are upgrading an existing system and are going to install
|
---|
124 | the new files over the old ones, then you should back up your data, shut
|
---|
125 | down the old server and follow the instructions in <ulink
|
---|
126 | url="http://www.postgresql.org/docs/8.1/static/install-upgrading.html">the
|
---|
127 | official <application>PostgreSQL</application> documentation</ulink>.</para>
|
---|
128 | </note>
|
---|
129 |
|
---|
130 | <para>Initialize a database cluster with the following commands issued by the
|
---|
131 | <systemitem class="username">root</systemitem> user:</para>
|
---|
132 |
|
---|
133 | <screen role="root"><userinput>install -v -m700 -d /srv/pgsql/data &&
|
---|
134 | groupadd -g 41 postgres &&
|
---|
135 | useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \
|
---|
136 | -u 41 postgres &&
|
---|
137 | chown -v postgres /srv/pgsql/data &&
|
---|
138 | su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
|
---|
139 |
|
---|
140 | <para>As the <systemitem class="username">root</systemitem> user, start the
|
---|
141 | database server with the following command:</para>
|
---|
142 |
|
---|
143 | <screen role="root"><userinput>su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \
|
---|
144 | /srv/pgsql/data/logfile 2>&1 &'</userinput></screen>
|
---|
145 |
|
---|
146 | <para>Still as user <systemitem class="username">root</systemitem>, create
|
---|
147 | a database and verify the installation:</para>
|
---|
148 |
|
---|
149 | <screen role="root"><userinput>su - postgres -c '/usr/bin/createdb test' &&
|
---|
150 | echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
|
---|
151 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
152 | echo "insert into t1 values ('Billy', 'NewYork');" \
|
---|
153 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
154 | echo "insert into t1 values ('Evanidus', 'Quebec');" \
|
---|
155 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
156 | echo "insert into t1 values ('Jesse', 'Ontario');" \
|
---|
157 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
158 | echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</userinput></screen>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | <sect2 role="commands">
|
---|
163 | <title>Command Explanations</title>
|
---|
164 |
|
---|
165 | <!-- commented : regeneration is unnecessary, and we don't tell people the
|
---|
166 | command to do it.
|
---|
167 | <para><command>sed -i "s|dsssl-stylesheets|..."</command>: This command
|
---|
168 | puts an extra line in the <command>configure</command> script so that the
|
---|
169 | BLFS installed version of the DSSSL stylesheets are discovered.</para> -->
|
---|
170 |
|
---|
171 | <para><parameter>--docdir=/usr/share/doc/postgresql-&postgresql-version;</parameter>:
|
---|
172 | This switch puts the html (and pdf, if created) docs in a versioned
|
---|
173 | directory.</para>
|
---|
174 |
|
---|
175 | <para><parameter>--enable-thread-safety</parameter>: This switch makes the
|
---|
176 | client libraries thread-safe by allowing concurrent threads in
|
---|
177 | <filename class='libraryfile'>libpq</filename> and ECPG programs to safely
|
---|
178 | control their private connection handles.</para>
|
---|
179 |
|
---|
180 | <para><option>--with-perl</option>: build the PL/Perl server-side language.
|
---|
181 | </para>
|
---|
182 |
|
---|
183 | <para><option>--with-python</option>: build the PL/Python server-side
|
---|
184 | language.</para>
|
---|
185 |
|
---|
186 | <para><option>--with-openssl</option>: build with support for
|
---|
187 | <application>OpenSSL</application> encrypted connections.</para>
|
---|
188 |
|
---|
189 | <para><command>chown -R root:root /usr/share/doc/postgresql/html/*</command>:
|
---|
190 | This command corrects the improper ownership of documentation files.</para>
|
---|
191 |
|
---|
192 | <para><command>groupadd ...</command>; <command>useradd ...</command>:
|
---|
193 | These commands add an unprivileged user and group to run the database
|
---|
194 | server.</para>
|
---|
195 |
|
---|
196 | <para><command>createdb test; create table t1; insert into t1 values...;
|
---|
197 | select * from t1</command>: Create a database, add a table to it, insert
|
---|
198 | some rows into the table and select them to verify that the installation
|
---|
199 | is working properly.</para>
|
---|
200 |
|
---|
201 | </sect2>
|
---|
202 |
|
---|
203 | <sect2 role="configuration">
|
---|
204 | <title>Configuring PostgreSQL</title>
|
---|
205 |
|
---|
206 | <sect3 id="postgresql-config">
|
---|
207 | <title>Config Files</title>
|
---|
208 |
|
---|
209 | <para><filename>$PGDATA/pg_ident.con</filename>,
|
---|
210 | <filename>$PGDATA/pg_hba.conf</filename> and
|
---|
211 | <filename>$PGDATA/postgresql.conf</filename></para>
|
---|
212 |
|
---|
213 | <indexterm zone="postgresql postgresql-config">
|
---|
214 | <primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
|
---|
215 | </indexterm>
|
---|
216 |
|
---|
217 | <indexterm zone="postgresql postgresql-config">
|
---|
218 | <primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
|
---|
219 | </indexterm>
|
---|
220 |
|
---|
221 | <indexterm zone="postgresql postgresql-config">
|
---|
222 | <primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
|
---|
223 | </indexterm>
|
---|
224 |
|
---|
225 | <para>The <envar>PGDATA</envar> environment variable is used to
|
---|
226 | distinguish database clusters from one another by setting it to
|
---|
227 | the value of the directory which contains the cluster desired.
|
---|
228 | The three configuration files exist in every <filename
|
---|
229 | class="directory">PGDATA/</filename> directory. Details on the
|
---|
230 | format of the files and the options that can be set in each can
|
---|
231 | be found in <ulink
|
---|
232 | url="file:///usr/share/doc/postgresql/html/index.html"/>.</para>
|
---|
233 |
|
---|
234 | </sect3>
|
---|
235 |
|
---|
236 | <sect3 id="postgresql-init">
|
---|
237 | <title>Boot Script</title>
|
---|
238 |
|
---|
239 | <para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
|
---|
240 | init script included in the
|
---|
241 | <xref linkend="bootscripts"/> package.</para>
|
---|
242 |
|
---|
243 | <indexterm zone="postgresql postgresql-init">
|
---|
244 | <primary sortas="f-postgresql">postgresql</primary>
|
---|
245 | </indexterm>
|
---|
246 |
|
---|
247 | <screen role="root"><userinput>make install-postgresql</userinput></screen>
|
---|
248 |
|
---|
249 | </sect3>
|
---|
250 |
|
---|
251 | </sect2>
|
---|
252 |
|
---|
253 | <sect2 role="content">
|
---|
254 | <title>Contents</title>
|
---|
255 |
|
---|
256 | <segmentedlist>
|
---|
257 | <segtitle>Installed Programs</segtitle>
|
---|
258 | <segtitle>Installed Libraries</segtitle>
|
---|
259 | <segtitle>Installed Directories</segtitle>
|
---|
260 |
|
---|
261 | <seglistitem>
|
---|
262 | <seg>clusterdb, createdb, createlang, createuser, dropdb, droplang,
|
---|
263 | dropuser, ecpg, initdb, ipcclean, pg_config, pg_controldata, pg_ctl,
|
---|
264 | pg_dump, pg_dumpall, pg_resetxlog, pg_restore, pltcl_delmod,
|
---|
265 | pltcl_listmod, pltcl_loadmod, postgres, postmaster, psql,
|
---|
266 | reindexdb, and vacuumdb</seg>
|
---|
267 | <seg>libecpg.{so,a}, libecpg_compat.{so,a}, libpgport.a, libpgtypes.{so,a},
|
---|
268 | libpq.{so,a}, and various charset modules.</seg>
|
---|
269 | <seg>/srv/pgsql, /usr/include/libpq, /usr/include/postgresql,
|
---|
270 | /usr/lib/postgresql, /usr/share/doc/postgresql, and
|
---|
271 | /usr/share/postgresql</seg>
|
---|
272 | </seglistitem>
|
---|
273 | </segmentedlist>
|
---|
274 |
|
---|
275 | <variablelist>
|
---|
276 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
277 | <?dbfo list-presentation="list"?>
|
---|
278 | <?dbhtml list-presentation="table"?>
|
---|
279 |
|
---|
280 | <varlistentry id="clusterdb">
|
---|
281 | <term><command>clusterdb</command></term>
|
---|
282 | <listitem>
|
---|
283 | <para>is a utility for reclustering tables in a
|
---|
284 | <application>PostgreSQL</application> database.</para>
|
---|
285 | <indexterm zone="postgresql clusterdb">
|
---|
286 | <primary sortas="b-clusterdb">clusterdb</primary>
|
---|
287 | </indexterm>
|
---|
288 | </listitem>
|
---|
289 | </varlistentry>
|
---|
290 |
|
---|
291 | <varlistentry id="createdb">
|
---|
292 | <term><command>createdb</command></term>
|
---|
293 | <listitem>
|
---|
294 | <para> creates a new <application>PostgreSQL</application>
|
---|
295 | database.</para>
|
---|
296 | <indexterm zone="postgresql createdb">
|
---|
297 | <primary sortas="b-createdb">createdb</primary>
|
---|
298 | </indexterm>
|
---|
299 | </listitem>
|
---|
300 | </varlistentry>
|
---|
301 |
|
---|
302 | <varlistentry id="createlang">
|
---|
303 | <term><command>createlang</command></term>
|
---|
304 | <listitem>
|
---|
305 | <para>defines a new <application>PostgreSQL</application> procedural
|
---|
306 | language.</para>
|
---|
307 | <indexterm zone="postgresql createlang">
|
---|
308 | <primary sortas="b-createlang">createlang</primary>
|
---|
309 | </indexterm>
|
---|
310 | </listitem>
|
---|
311 | </varlistentry>
|
---|
312 |
|
---|
313 | <varlistentry id="createuser">
|
---|
314 | <term><command>createuser</command></term>
|
---|
315 | <listitem>
|
---|
316 | <para>defines a new <application>PostgreSQL</application>
|
---|
317 | user account.</para>
|
---|
318 | <indexterm zone="postgresql createuser">
|
---|
319 | <primary sortas="b-createuser">createuser</primary>
|
---|
320 | </indexterm>
|
---|
321 | </listitem>
|
---|
322 | </varlistentry>
|
---|
323 |
|
---|
324 | <varlistentry id="dropdb">
|
---|
325 | <term><command>dropdb</command></term>
|
---|
326 | <listitem>
|
---|
327 | <para>removes a <application>PostgreSQL</application> database.</para>
|
---|
328 | <indexterm zone="postgresql dropdb">
|
---|
329 | <primary sortas="b-dropdb">dropdb</primary>
|
---|
330 | </indexterm>
|
---|
331 | </listitem>
|
---|
332 | </varlistentry>
|
---|
333 |
|
---|
334 | <varlistentry id="droplang">
|
---|
335 | <term><command>droplang</command></term>
|
---|
336 | <listitem>
|
---|
337 | <para>removes a <application>PostgreSQL</application> procedural
|
---|
338 | language.</para>
|
---|
339 | <indexterm zone="postgresql droplang">
|
---|
340 | <primary sortas="b-droplang">droplang</primary>
|
---|
341 | </indexterm>
|
---|
342 | </listitem>
|
---|
343 | </varlistentry>
|
---|
344 |
|
---|
345 | <varlistentry id="dropuser">
|
---|
346 | <term><command>dropuser</command></term>
|
---|
347 | <listitem>
|
---|
348 | <para>removes a <application>PostgreSQL</application>
|
---|
349 | user account.</para>
|
---|
350 | <indexterm zone="postgresql dropuser">
|
---|
351 | <primary sortas="b-dropuser">dropuser</primary>
|
---|
352 | </indexterm>
|
---|
353 | </listitem>
|
---|
354 | </varlistentry>
|
---|
355 |
|
---|
356 | <varlistentry id="ecpg">
|
---|
357 | <term><command>ecpg</command></term>
|
---|
358 | <listitem>
|
---|
359 | <para>is the embedded SQL preprocessor.</para>
|
---|
360 | <indexterm zone="postgresql ecpg">
|
---|
361 | <primary sortas="b-ecpg">ecpg</primary>
|
---|
362 | </indexterm>
|
---|
363 | </listitem>
|
---|
364 | </varlistentry>
|
---|
365 |
|
---|
366 | <varlistentry id="initdb">
|
---|
367 | <term><command>initdb</command></term>
|
---|
368 | <listitem>
|
---|
369 | <para>creates a new database cluster.</para>
|
---|
370 | <indexterm zone="postgresql initdb">
|
---|
371 | <primary sortas="b-initdb">initdb</primary>
|
---|
372 | </indexterm>
|
---|
373 | </listitem>
|
---|
374 | </varlistentry>
|
---|
375 |
|
---|
376 | <varlistentry id="ipcclean">
|
---|
377 | <term><command>ipcclean</command></term>
|
---|
378 | <listitem>
|
---|
379 | <para>removes shared memory and semaphores left over by an aborted
|
---|
380 | database server.</para>
|
---|
381 | <indexterm zone="postgresql ipcclean">
|
---|
382 | <primary sortas="b-ipcclean">ipcclean</primary>
|
---|
383 | </indexterm>
|
---|
384 | </listitem>
|
---|
385 | </varlistentry>
|
---|
386 |
|
---|
387 | <varlistentry id="pg_config">
|
---|
388 | <term><command>pg_config</command></term>
|
---|
389 | <listitem>
|
---|
390 | <para>retrieves <application>PostgreSQL</application> version
|
---|
391 | information.</para>
|
---|
392 | <indexterm zone="postgresql pg_config">
|
---|
393 | <primary sortas="b-pg_config">pg_config</primary>
|
---|
394 | </indexterm>
|
---|
395 | </listitem>
|
---|
396 | </varlistentry>
|
---|
397 |
|
---|
398 | <varlistentry id="pg_controldata">
|
---|
399 | <term><command>pg_controldata</command></term>
|
---|
400 | <listitem>
|
---|
401 | <para>returns information initialized during
|
---|
402 | <command>initdb</command>, such as the catalog version and server
|
---|
403 | locale.</para>
|
---|
404 | <indexterm zone="postgresql pg_controldata">
|
---|
405 | <primary sortas="b-pg_controldata">pg_controldata</primary>
|
---|
406 | </indexterm>
|
---|
407 | </listitem>
|
---|
408 | </varlistentry>
|
---|
409 |
|
---|
410 | <varlistentry id="pg_ctl">
|
---|
411 | <term><command>pg_ctl</command></term>
|
---|
412 | <listitem>
|
---|
413 | <para>controls stopping and starting the database server.</para>
|
---|
414 | <indexterm zone="postgresql pg_ctl">
|
---|
415 | <primary sortas="b-pg_ctl">pg_ctl</primary>
|
---|
416 | </indexterm>
|
---|
417 | </listitem>
|
---|
418 | </varlistentry>
|
---|
419 |
|
---|
420 | <varlistentry id="pg_dump">
|
---|
421 | <term><command>pg_dump</command></term>
|
---|
422 | <listitem>
|
---|
423 | <para>dumps database data and metadata into scripts which are used
|
---|
424 | to recreate the database.</para>
|
---|
425 | <indexterm zone="postgresql pg_dump">
|
---|
426 | <primary sortas="b-pg_dump">pg_dump</primary>
|
---|
427 | </indexterm>
|
---|
428 | </listitem>
|
---|
429 | </varlistentry>
|
---|
430 |
|
---|
431 | <varlistentry id="pg_dumpall">
|
---|
432 | <term><command>pg_dumpall</command></term>
|
---|
433 | <listitem>
|
---|
434 | <para>recursively calls <command>pg_dump</command> for each
|
---|
435 | database in a cluster.</para>
|
---|
436 | <indexterm zone="postgresql pg_dumpall">
|
---|
437 | <primary sortas="b-pg_dumpall">pg_dumpall</primary>
|
---|
438 | </indexterm>
|
---|
439 | </listitem>
|
---|
440 | </varlistentry>
|
---|
441 |
|
---|
442 | <varlistentry id="pg_resetxlog">
|
---|
443 | <term><command>pg_resetxlog</command></term>
|
---|
444 | <listitem>
|
---|
445 | <para>clears the write-ahead log and optionally resets some
|
---|
446 | fields in the <filename>pg_control</filename> file.</para>
|
---|
447 | <indexterm zone="postgresql pg_resetxlog">
|
---|
448 | <primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
|
---|
449 | </indexterm>
|
---|
450 | </listitem>
|
---|
451 | </varlistentry>
|
---|
452 |
|
---|
453 | <varlistentry id="pg_restore">
|
---|
454 | <term><command>pg_restore</command></term>
|
---|
455 | <listitem>
|
---|
456 | <para>creates databases from dump files created by
|
---|
457 | <command>pg_dump</command>.</para>
|
---|
458 | <indexterm zone="postgresql pg_restore">
|
---|
459 | <primary sortas="b-pg_restore">pg_restore</primary>
|
---|
460 | </indexterm>
|
---|
461 | </listitem>
|
---|
462 | </varlistentry>
|
---|
463 |
|
---|
464 | <varlistentry id="pltcl_delmod">
|
---|
465 | <term><command>pltcl_delmod</command></term>
|
---|
466 | <listitem>
|
---|
467 | <para>is a support script used to delete a module from a
|
---|
468 | PL/<application>Tcl</application> table. The command
|
---|
469 | requires the <ulink
|
---|
470 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
471 | package to be installed also.</para>
|
---|
472 | <indexterm zone="postgresql pltcl_delmod">
|
---|
473 | <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
|
---|
474 | </indexterm>
|
---|
475 | </listitem>
|
---|
476 | </varlistentry>
|
---|
477 |
|
---|
478 | <varlistentry id="pltcl_listmod">
|
---|
479 | <term><command>pltcl_listmod</command></term>
|
---|
480 | <listitem>
|
---|
481 | <para>is a support script used to list the modules in a
|
---|
482 | PL/<application>Tcl</application> table. The command
|
---|
483 | requires the <ulink
|
---|
484 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
485 | package to be installed also.</para>
|
---|
486 | <indexterm zone="postgresql pltcl_listmod">
|
---|
487 | <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
|
---|
488 | </indexterm>
|
---|
489 | </listitem>
|
---|
490 | </varlistentry>
|
---|
491 |
|
---|
492 | <varlistentry id="pltcl_loadmod">
|
---|
493 | <term><command>pltcl_loadmod</command></term>
|
---|
494 | <listitem>
|
---|
495 | <para>is a support script used to load a module into a
|
---|
496 | PL/<application>Tcl</application> table. The command
|
---|
497 | requires the <ulink
|
---|
498 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
499 | package to be installed also.</para>
|
---|
500 | <indexterm zone="postgresql pltcl_loadmod">
|
---|
501 | <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
|
---|
502 | </indexterm>
|
---|
503 | </listitem>
|
---|
504 | </varlistentry>
|
---|
505 |
|
---|
506 | <varlistentry id="postgres">
|
---|
507 | <term><command>postgres</command></term>
|
---|
508 | <listitem>
|
---|
509 | <para>is a single user database server, generally used for
|
---|
510 | debugging.</para>
|
---|
511 | <indexterm zone="postgresql postgres">
|
---|
512 | <primary sortas="b-postgres">postgres</primary>
|
---|
513 | </indexterm>
|
---|
514 | </listitem>
|
---|
515 | </varlistentry>
|
---|
516 |
|
---|
517 | <varlistentry id="postmaster">
|
---|
518 | <term><command>postmaster</command></term>
|
---|
519 | <listitem>
|
---|
520 | <para>(a symlink to <command>postgres</command>) is a multi-user
|
---|
521 | database daemon.</para>
|
---|
522 | <indexterm zone="postgresql postmaster">
|
---|
523 | <primary sortas="b-postmaster">postmaster</primary>
|
---|
524 | </indexterm>
|
---|
525 | </listitem>
|
---|
526 | </varlistentry>
|
---|
527 |
|
---|
528 | <varlistentry id="psql">
|
---|
529 | <term><command>psql</command></term>
|
---|
530 | <listitem>
|
---|
531 | <para>is a console based database shell.</para>
|
---|
532 | <indexterm zone="postgresql psql">
|
---|
533 | <primary sortas="b-psql">psql</primary>
|
---|
534 | </indexterm>
|
---|
535 | </listitem>
|
---|
536 | </varlistentry>
|
---|
537 |
|
---|
538 | <varlistentry id="reindexdb">
|
---|
539 | <term><command>reindexdb</command></term>
|
---|
540 | <listitem>
|
---|
541 | <para>is a utility for rebuilding indexes in a database.</para>
|
---|
542 | <indexterm zone="postgresql reindexdb">
|
---|
543 | <primary sortas="b-reindexdb">reindexdb</primary>
|
---|
544 | </indexterm>
|
---|
545 | </listitem>
|
---|
546 | </varlistentry>
|
---|
547 |
|
---|
548 | <varlistentry id="vacuumdb">
|
---|
549 | <term><command>vacuumdb</command></term>
|
---|
550 | <listitem>
|
---|
551 | <para>compacts databases and generates statistics for the query
|
---|
552 | analyzer.</para>
|
---|
553 | <indexterm zone="postgresql vacuumdb">
|
---|
554 | <primary sortas="b-vacuumdb">vacuumdb</primary>
|
---|
555 | </indexterm>
|
---|
556 | </listitem>
|
---|
557 | </varlistentry>
|
---|
558 |
|
---|
559 | <varlistentry id="libecpg">
|
---|
560 | <term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
|
---|
561 | <listitem>
|
---|
562 | <para>contains functions to support embedded SQL in C programs.</para>
|
---|
563 | <indexterm zone="postgresql libecpg">
|
---|
564 | <primary sortas="c-libecpg">libecpg.{so,a}</primary>
|
---|
565 | </indexterm>
|
---|
566 | </listitem>
|
---|
567 | </varlistentry>
|
---|
568 |
|
---|
569 | <varlistentry id="libecpg_compat">
|
---|
570 | <term><filename class='libraryfile'>libecpg_compat.{so,a}</filename></term>
|
---|
571 | <listitem>
|
---|
572 | <para>is the ecpg compatability library.</para>
|
---|
573 | <indexterm zone="postgresql libecpg_compat">
|
---|
574 | <primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
|
---|
575 | </indexterm>
|
---|
576 | </listitem>
|
---|
577 | </varlistentry>
|
---|
578 |
|
---|
579 | <varlistentry id="libgport">
|
---|
580 | <term><filename class='libraryfile'>libgport.a</filename></term>
|
---|
581 | <listitem>
|
---|
582 | <para>is the port-specific subsystem of the Postgres backend.</para>
|
---|
583 | <indexterm zone="postgresql libgport">
|
---|
584 | <primary sortas="c-libgport">libgport.a</primary>
|
---|
585 | </indexterm>
|
---|
586 | </listitem>
|
---|
587 | </varlistentry>
|
---|
588 |
|
---|
589 | <varlistentry id="libpgtypes">
|
---|
590 | <term><filename class='libraryfile'>libpgtypes.{so,a}</filename></term>
|
---|
591 | <listitem>
|
---|
592 | <para>contains functions for dealing with Postgres data types.</para>
|
---|
593 | <indexterm zone="postgresql libpgtypes">
|
---|
594 | <primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
|
---|
595 | </indexterm>
|
---|
596 | </listitem>
|
---|
597 | </varlistentry>
|
---|
598 |
|
---|
599 | <varlistentry id="libpq">
|
---|
600 | <term><filename class='libraryfile'>libpq.{so,a}</filename></term>
|
---|
601 | <listitem>
|
---|
602 | <para>is the C programmer's API to Postgres.</para>
|
---|
603 | <indexterm zone="postgresql libpq">
|
---|
604 | <primary sortas="c-libpq">libpq.{so,a}</primary>
|
---|
605 | </indexterm>
|
---|
606 | </listitem>
|
---|
607 | </varlistentry>
|
---|
608 |
|
---|
609 | </variablelist>
|
---|
610 |
|
---|
611 | </sect2>
|
---|
612 |
|
---|
613 | </sect1>
|
---|