source: server/databases/postgresql.xml@ 782bf3d0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 782bf3d0 was 782bf3d0, checked in by Ken Moffat <ken@…>, 11 years ago

postgresql-9.3.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11831 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 27.1 KB
Line 
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 " ">
8 <!ENTITY postgresql-download-ftp "ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
9 <!ENTITY postgresql-md5sum "09aee56f3a15ce4a7ea32044fb845b53">
10 <!ENTITY postgresql-size "17.0 MB">
11 <!ENTITY postgresql-buildsize "169 MB (additional 170 MB to run the testsuite)">
12 <!ENTITY postgresql-time "1.3 SBU (additional 0.2 SBU to run the testsuite)">
13]>
14
15<sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
16 <?dbhtml filename="postgresql.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>PostgreSQL-&postgresql-version;</title>
24
25 <indexterm zone="postgresql">
26 <primary sortas="a-PostgreSQL">PostgreSQL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to PostgreSQL</title>
31
32 <para><application>PostgreSQL</application> is an advanced
33 object-relational database management system (ORDBMS), derived
34 from the Berkeley Postgres database management system.</para>
35
36 <para>There may be a more recent release available from the
37 <application>PostgreSQL</application> home page. You can check
38 <ulink url="http://www.postgresql.org/"/> and probably use the
39 existing BLFS instructions. Note that versions other than the one shown
40 in the download URLs have not been tested in a BLFS environment.</para>
41
42 &lfs74_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>Download (HTTP): <ulink url="&postgresql-download-http;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download (FTP): <ulink url="&postgresql-download-ftp;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download MD5 sum: &postgresql-md5sum;</para>
54 </listitem>
55 <listitem>
56 <para>Download size: &postgresql-size;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated disk space required: &postgresql-buildsize;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated build time: &postgresql-time;</para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
67
68 <bridgehead renderas="sect4">Optional</bridgehead>
69 <para role="optional"><xref linkend="python2"/>,
70 <xref linkend="tcl"/>,
71 <xref linkend="openssl"/>,
72 <xref linkend="libxml2"/>,
73 <xref linkend="libxslt"/>,
74 <xref linkend="openldap"/>,
75 <xref linkend="linux-pam"/>,
76 <xref linkend="mitkrb"/> and
77 <ulink url="http://developer.apple.com/networking/bonjour/">Bonjour</ulink></para>
78
79 <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
80 <para role="optional"><xref linkend="sgml-dtd"/>,
81 <xref linkend="docbook-dsssl"/>,
82 <xref linkend="openjade"/>, and
83 <xref linkend="perl-sgmlspm"/></para>
84
85 <para condition="html" role="usernotes">User Notes:
86 <ulink url="&blfs-wiki;/postgresql"/></para>
87
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of PostgreSQL</title>
92
93 <para>Install <application>PostgreSQL</application> with the
94 following commands: </para>
95
96<screen><userinput>sed -e "s@DEFAULT_PGSOCKET_DIR \"/tmp\"@DEFAULT_PGSOCKET_DIR \"/run/postgresql\"@" \
97 -i src/include/pg_config_manual.h &amp;&amp;
98sed -i -e 's@psql\\"@&amp; -h /tmp@' src/test/regress/pg_regress{,_main}.c &amp;&amp;
99sed -i -e 's@gres\\"@&amp; -k /tmp@' src/test/regress/pg_regress.c &amp;&amp;
100./configure --prefix=/usr \
101 --enable-thread-safety \
102 --docdir=/usr/share/doc/postgresql-&postgresql-version; &amp;&amp;
103make</userinput></screen>
104
105 <para>To test the results, issue: <command>make check</command>.</para>
106
107 <para>There are a number of programs in the
108 <filename class="directory">contrib/</filename> directory. If you wish to
109 build some of them, enter <command>make -C contrib</command> or
110 <command>make -C contrib/&lt;SUBDIR-NAME&gt;</command> for each subdirectory.
111 </para>
112
113 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen role="root"><userinput>make install &amp;&amp;
116make install-docs</userinput></screen>
117
118 <para>If you made any of the <filename class="directory">contrib/</filename>
119 programs, as the <systemitem class="username">root</systemitem> user:</para>
120
121<screen role="nodump/"><userinput>make -C contrib/&lt;SUBDIR-NAME&gt; install</userinput></screen>
122
123 <!-- 'Upgrading' seems to only ever exist in the docs for *previous* version -->
124 <note>
125 <para>If you are upgrading an existing system and are going to install
126 the new files over the old ones, then you should back up your data, shut
127 down the old server and follow the instructions in <ulink
128 url="http://www.postgresql.org/docs/9.0/static/install-upgrading.html">the
129 official <application>PostgreSQL</application> documentation</ulink>.</para>
130 </note>
131
132 <para>Initialize a database cluster with the following commands issued by the
133 <systemitem class="username">root</systemitem> user:</para>
134
135<screen role="root"><userinput>install -v -dm700 /srv/pgsql/data &amp;&amp;
136install -v -dm755 /run/postgresql &amp;&amp;
137groupadd -g 41 postgres &amp;&amp;
138useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \
139 -u 41 postgres &amp;&amp;
140chown -Rv postgres:postgres /srv/pgsql /run/postgresql &amp;&amp;
141su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
142
143 <para>As the <systemitem class="username">root</systemitem> user, start the
144 database server with the following command:</para>
145
146<screen role="root"><userinput>su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \
147 /srv/pgsql/data/logfile 2&gt;&amp;1 &amp;'</userinput></screen>
148
149 <para>Still as user <systemitem class="username">root</systemitem>, create
150 a database and verify the installation:</para>
151
152<screen role="root"><userinput>su - postgres -c '/usr/bin/createdb test' &amp;&amp;
153echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
154 | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
155echo "insert into t1 values ('Billy', 'NewYork');" \
156 | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
157echo "insert into t1 values ('Evanidus', 'Quebec');" \
158 | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
159echo "insert into t1 values ('Jesse', 'Ontario');" \
160 | (su - postgres -c '/usr/bin/psql test ') &amp;&amp;
161echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</userinput></screen>
162
163 </sect2>
164
165 <sect2 role="commands">
166 <title>Command Explanations</title>
167
168 <para>
169 <command>sed -e ...</command>: These seds change server socket location
170 from <filename class="directory">/tmp</filename> to
171 <filename class="directory">/run/postgresql</filename> and fix up the
172 regression tests to use <filename class="directory">/tmp</filename> so
173 that they can work reliably.
174 </para>
175
176 <para><parameter>--docdir=/usr/share/doc/postgresql-&postgresql-version;</parameter>:
177 This switch puts the documentation in a versioned directory.</para>
178
179 <para><parameter>--enable-thread-safety</parameter>: This switch makes the
180 client libraries thread-safe by allowing concurrent threads in
181 <filename class='libraryfile'>libpq</filename> and ECPG programs to safely
182 control their private connection handles.</para>
183
184 <para><parameter>make -C contrib/&lt;SUBDIR-NAME&gt; ...</parameter>: replace
185 &lt;SUBDIR-NAME&gt; with the name of the subdirectory you wish to build or
186 install.</para>
187
188 <para><option>--with-openssl</option>: build with support for
189 <application>OpenSSL</application> encrypted connections.</para>
190
191 <para><option>--with-perl</option>: build the PL/Perl server-side language.
192 </para>
193
194 <para><option>--with-python</option>: build the PL/Python server-side
195 language.</para>
196
197 <para><option>--with-tcl</option>: build the PL/Tcl server-side language.</para>
198
199 <para><command>groupadd ...</command>; <command>useradd ...</command>:
200 These commands add an unprivileged user and group to run the database
201 server.</para>
202
203 <para><command>createdb test; create table t1; insert into t1 values...;
204 select * from t1</command>: Create a database, add a table to it, insert
205 some rows into the table and select them to verify that the installation
206 is working properly.</para>
207
208 </sect2>
209
210 <sect2 role="configuration">
211 <title>Configuring PostgreSQL</title>
212
213 <sect3 id="postgresql-config">
214 <title>Config Files</title>
215
216 <para><filename>$PGDATA/pg_ident.con</filename>,
217 <filename>$PGDATA/pg_hba.conf</filename> and
218 <filename>$PGDATA/postgresql.conf</filename></para>
219
220 <indexterm zone="postgresql postgresql-config">
221 <primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
222 </indexterm>
223
224 <indexterm zone="postgresql postgresql-config">
225 <primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
226 </indexterm>
227
228 <indexterm zone="postgresql postgresql-config">
229 <primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
230 </indexterm>
231
232 <para>The <envar>PGDATA</envar> environment variable is used to
233 distinguish database clusters from one another by setting it to
234 the value of the directory which contains the cluster desired.
235 The three configuration files exist in every <filename
236 class="directory">PGDATA/</filename> directory. Details on the
237 format of the files and the options that can be set in each can
238 be found in <ulink
239 url="file:///usr/share/doc/postgresql-&postgresql-version;/html/index.html"/>.</para>
240
241 </sect3>
242
243 <sect3 id="postgresql-init">
244 <title>Boot Script</title>
245
246 <para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
247 init script included in the
248 <xref linkend="bootscripts"/> package.</para>
249
250 <indexterm zone="postgresql postgresql-init">
251 <primary sortas="f-postgresql">postgresql</primary>
252 </indexterm>
253
254<screen role="root"><userinput>make install-postgresql</userinput></screen>
255
256 </sect3>
257
258 </sect2>
259
260 <sect2 role="content">
261 <title>Contents</title>
262
263 <segmentedlist>
264 <segtitle>Installed Programs</segtitle>
265 <segtitle>Installed Libraries</segtitle>
266 <segtitle>Installed Directories</segtitle>
267
268 <seglistitem>
269 <seg>clusterdb, createdb, createlang, createuser, dropdb, droplang,
270 dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata, pg_ctl,
271 pg_dump, pg_dumpall, pg_isready, pg_resetxlog, pg_restore, pltcl_delmod,
272 pltcl_listmod, pltcl_loadmod, postgres, postmaster, psql,
273 reindexdb, and vacuumdb. Optionally (in contrib/) oid2name, pg_archivecleanup,
274 pgbench, pg_standby, pg_test_fsync, pg_test_timing, pg_upgrade, pg_xlogdump,
275 vacuumlo,</seg>
276 <seg>libecpg.{so,a}, libecpg_compat.{so,a}, libpgport.a, libpgtypes.{so,a},
277 libpq.{so,a}, and various charset (and optionally, programming language)
278 modules.</seg>
279 <seg>/srv/pgsql, /usr/include/libpq, /usr/include/postgresql,
280 /usr/lib/postgresql, /usr/share/doc/postgresql-&postgresql-version;, and
281 /usr/share/postgresql</seg>
282 </seglistitem>
283 </segmentedlist>
284
285 <variablelist>
286 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
287 <?dbfo list-presentation="list"?>
288 <?dbhtml list-presentation="table"?>
289
290 <varlistentry id="clusterdb">
291 <term><command>clusterdb</command></term>
292 <listitem>
293 <para>is a utility for reclustering tables in a
294 <application>PostgreSQL</application> database.</para>
295 <indexterm zone="postgresql clusterdb">
296 <primary sortas="b-clusterdb">clusterdb</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="createdb">
302 <term><command>createdb</command></term>
303 <listitem>
304 <para> creates a new <application>PostgreSQL</application>
305 database.</para>
306 <indexterm zone="postgresql createdb">
307 <primary sortas="b-createdb">createdb</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="createlang">
313 <term><command>createlang</command></term>
314 <listitem>
315 <para>defines a new <application>PostgreSQL</application> procedural
316 language.</para>
317 <indexterm zone="postgresql createlang">
318 <primary sortas="b-createlang">createlang</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="createuser">
324 <term><command>createuser</command></term>
325 <listitem>
326 <para>defines a new <application>PostgreSQL</application>
327 user account.</para>
328 <indexterm zone="postgresql createuser">
329 <primary sortas="b-createuser">createuser</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="dropdb">
335 <term><command>dropdb</command></term>
336 <listitem>
337 <para>removes a <application>PostgreSQL</application> database.</para>
338 <indexterm zone="postgresql dropdb">
339 <primary sortas="b-dropdb">dropdb</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="droplang">
345 <term><command>droplang</command></term>
346 <listitem>
347 <para>removes a <application>PostgreSQL</application> procedural
348 language.</para>
349 <indexterm zone="postgresql droplang">
350 <primary sortas="b-droplang">droplang</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="dropuser">
356 <term><command>dropuser</command></term>
357 <listitem>
358 <para>removes a <application>PostgreSQL</application>
359 user account.</para>
360 <indexterm zone="postgresql dropuser">
361 <primary sortas="b-dropuser">dropuser</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="ecpg">
367 <term><command>ecpg</command></term>
368 <listitem>
369 <para>is the embedded SQL preprocessor.</para>
370 <indexterm zone="postgresql ecpg">
371 <primary sortas="b-ecpg">ecpg</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="initdb">
377 <term><command>initdb</command></term>
378 <listitem>
379 <para>creates a new database cluster.</para>
380 <indexterm zone="postgresql initdb">
381 <primary sortas="b-initdb">initdb</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="oid2name">
387 <term><command>oid2name</command></term>
388 <listitem>
389 <para>resolves OIDs (Object IDs) and file nodes in a PostgreSQL data
390 directory.</para>
391 <indexterm zone="postgresql oid2name">
392 <primary sortas="b-oid2name">oid2name</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="pg_archivecleanup">
398 <term><command>pg_archivecleanup</command></term>
399 <listitem>
400 <para>clean up PostgreSQL WAL (write-ahead log) archive files.</para>
401 <indexterm zone="postgresql pg_archivecleanup">
402 <primary sortas="b-pg_archivecleanup">pg_archivecleanup</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="pg_basebackup">
408 <term><command>pg_basebackup</command></term>
409 <listitem>
410 <para>takes base backups of a running
411 <application>PostgreSQL</application> cluster.</para>
412 <indexterm zone="postgresql pg_basebackup">
413 <primary sortas="b-pg_basebackup">pg_basebackup</primary>
414 </indexterm>
415 </listitem>
416 </varlistentry>
417
418 <varlistentry id="pg_config">
419 <term><command>pg_config</command></term>
420 <listitem>
421 <para>retrieves <application>PostgreSQL</application> version
422 information.</para>
423 <indexterm zone="postgresql pg_config">
424 <primary sortas="b-pg_config">pg_config</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="pg_controldata">
430 <term><command>pg_controldata</command></term>
431 <listitem>
432 <para>returns information initialized during
433 <command>initdb</command>, such as the catalog version and server
434 locale.</para>
435 <indexterm zone="postgresql pg_controldata">
436 <primary sortas="b-pg_controldata">pg_controldata</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="pg_ctl">
442 <term><command>pg_ctl</command></term>
443 <listitem>
444 <para>controls stopping and starting the database server.</para>
445 <indexterm zone="postgresql pg_ctl">
446 <primary sortas="b-pg_ctl">pg_ctl</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="pg_dump">
452 <term><command>pg_dump</command></term>
453 <listitem>
454 <para>dumps database data and metadata into scripts which are used
455 to recreate the database.</para>
456 <indexterm zone="postgresql pg_dump">
457 <primary sortas="b-pg_dump">pg_dump</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="pg_dumpall">
463 <term><command>pg_dumpall</command></term>
464 <listitem>
465 <para>recursively calls <command>pg_dump</command> for each
466 database in a cluster.</para>
467 <indexterm zone="postgresql pg_dumpall">
468 <primary sortas="b-pg_dumpall">pg_dumpall</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="pg_isready">
474 <term><command>pg_isready</command></term>
475 <listitem>
476 <para>check the connection status of a PostgreSQL server.</para>
477 <indexterm zone="postgresql pg_isready">
478 <primary sortas="b-pg_isready">pg_isready</primary>
479 </indexterm>
480 </listitem>
481 </varlistentry>
482
483 <varlistentry id="pg_resetxlog">
484 <term><command>pg_resetxlog</command></term>
485 <listitem>
486 <para>clears the write-ahead log and optionally resets some
487 fields in the <filename>pg_control</filename> file.</para>
488 <indexterm zone="postgresql pg_resetxlog">
489 <primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
490 </indexterm>
491 </listitem>
492 </varlistentry>
493
494 <varlistentry id="pg_restore">
495 <term><command>pg_restore</command></term>
496 <listitem>
497 <para>creates databases from dump files created by
498 <command>pg_dump</command>.</para>
499 <indexterm zone="postgresql pg_restore">
500 <primary sortas="b-pg_restore">pg_restore</primary>
501 </indexterm>
502 </listitem>
503 </varlistentry>
504
505 <varlistentry id="pg_standby">
506 <term><command>pg_standby</command></term>
507 <listitem>
508 <para>supports the creation of a PostgreSQL warm standby
509 server.</para>
510 <indexterm zone="postgresql pg_standby">
511 <primary sortas="b-pg_standby">pg_standby</primary>
512 </indexterm>
513 </listitem>
514 </varlistentry>
515
516 <varlistentry id="pg_test_fsync">
517 <term><command>pg_test_fsync</command></term>
518 <listitem>
519 <para>determine fastest wal_sync method for PostgreSQL.</para>
520 <indexterm zone="postgresql pg_test_fsync">
521 <primary sortas="b-pg_test_fsync">pg_test_fsync</primary>
522 </indexterm>
523 </listitem>
524 </varlistentry>
525
526 <varlistentry id="pg_test_timing">
527 <term><command>pg_test_timing</command></term>
528 <listitem>
529 <para>measure timing overhead.</para>
530 <indexterm zone="postgresql pg_test_timing">
531 <primary sortas="b-pg_test_timing">pg_test_timing</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
536 <varlistentry id="pg_upgrade">
537 <term><command>pg_upgrade</command></term>
538 <listitem>
539 <para>upgrade a PostgreSQL server instance.</para>
540 <indexterm zone="postgresql pg_upgrade">
541 <primary sortas="b-pg_upgrade">pg_upgrade</primary>
542 </indexterm>
543 </listitem>
544 </varlistentry>
545
546 <varlistentry id="pg_xlogdump">
547 <term><command>pg_xlogdump</command></term>
548 <listitem>
549 <para>display a human-readable rendering of the write-ahead log of a
550 PostgreSQL database cluster.</para>
551 <indexterm zone="postgresql pg_xlogdump">
552 <primary sortas="b-pg_xlogdump">pg_xlogdump</primary>
553 </indexterm>
554 </listitem>
555 </varlistentry>
556
557 <varlistentry id="pgbench">
558 <term><command>pgbench</command></term>
559 <listitem>
560 <para>run a benchmark test on PostgreSQL.</para>
561 <indexterm zone="postgresql pgbench">
562 <primary sortas="b-pgbench">pgbench</primary>
563 </indexterm>
564 </listitem>
565 </varlistentry>
566
567 <varlistentry id="pltcl_delmod">
568 <term><command>pltcl_delmod</command></term>
569 <listitem>
570 <para>is a support script used to delete a module from a
571 PL/<application>Tcl</application> table. The command
572 requires the <ulink
573 url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
574 package to be installed also.</para>
575 <indexterm zone="postgresql pltcl_delmod">
576 <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
577 </indexterm>
578 </listitem>
579 </varlistentry>
580
581 <varlistentry id="pltcl_listmod">
582 <term><command>pltcl_listmod</command></term>
583 <listitem>
584 <para>is a support script used to list the modules in a
585 PL/<application>Tcl</application> table. The command
586 requires the <ulink
587 url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
588 package to be installed also.</para>
589 <indexterm zone="postgresql pltcl_listmod">
590 <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
591 </indexterm>
592 </listitem>
593 </varlistentry>
594
595 <varlistentry id="pltcl_loadmod">
596 <term><command>pltcl_loadmod</command></term>
597 <listitem>
598 <para>is a support script used to load a module into a
599 PL/<application>Tcl</application> table. The command
600 requires the <ulink
601 url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
602 package to be installed also.</para>
603 <indexterm zone="postgresql pltcl_loadmod">
604 <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
605 </indexterm>
606 </listitem>
607 </varlistentry>
608
609 <varlistentry id="postgres">
610 <term><command>postgres</command></term>
611 <listitem>
612 <para>is a single user database server, generally used for
613 debugging.</para>
614 <indexterm zone="postgresql postgres">
615 <primary sortas="b-postgres">postgres</primary>
616 </indexterm>
617 </listitem>
618 </varlistentry>
619
620 <varlistentry id="postmaster">
621 <term><command>postmaster</command></term>
622 <listitem>
623 <para>(a symlink to <command>postgres</command>) is a multi-user
624 database daemon.</para>
625 <indexterm zone="postgresql postmaster">
626 <primary sortas="b-postmaster">postmaster</primary>
627 </indexterm>
628 </listitem>
629 </varlistentry>
630
631 <varlistentry id="psql">
632 <term><command>psql</command></term>
633 <listitem>
634 <para>is a console based database shell.</para>
635 <indexterm zone="postgresql psql">
636 <primary sortas="b-psql">psql</primary>
637 </indexterm>
638 </listitem>
639 </varlistentry>
640
641 <varlistentry id="reindexdb">
642 <term><command>reindexdb</command></term>
643 <listitem>
644 <para>is a utility for rebuilding indexes in a database.</para>
645 <indexterm zone="postgresql reindexdb">
646 <primary sortas="b-reindexdb">reindexdb</primary>
647 </indexterm>
648 </listitem>
649 </varlistentry>
650
651 <varlistentry id="vacuumdb">
652 <term><command>vacuumdb</command></term>
653 <listitem>
654 <para>compacts databases and generates statistics for the query
655 analyzer.</para>
656 <indexterm zone="postgresql vacuumdb">
657 <primary sortas="b-vacuumdb">vacuumdb</primary>
658 </indexterm>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry id="vacuumlo">
663 <term><command>vacuumlo</command></term>
664 <listitem>
665 <para>remove orphaned large objects from a PostgreSQL database.</para>
666 <indexterm zone="postgresql vacuumlo">
667 <primary sortas="b-vacuumlo">vacuumlo</primary>
668 </indexterm>
669 </listitem>
670 </varlistentry>
671
672 <varlistentry id="libecpg">
673 <term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
674 <listitem>
675 <para>contains functions to support embedded SQL in C programs.</para>
676 <indexterm zone="postgresql libecpg">
677 <primary sortas="c-libecpg">libecpg.{so,a}</primary>
678 </indexterm>
679 </listitem>
680 </varlistentry>
681
682 <varlistentry id="libecpg_compat">
683 <term><filename class='libraryfile'>libecpg_compat.{so,a}</filename></term>
684 <listitem>
685 <para>is the ecpg compatibility library.</para>
686 <indexterm zone="postgresql libecpg_compat">
687 <primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
688 </indexterm>
689 </listitem>
690 </varlistentry>
691
692 <varlistentry id="libgport">
693 <term><filename class='libraryfile'>libgport.a</filename></term>
694 <listitem>
695 <para>is the port-specific subsystem of the Postgres backend.</para>
696 <indexterm zone="postgresql libgport">
697 <primary sortas="c-libgport">libgport.a</primary>
698 </indexterm>
699 </listitem>
700 </varlistentry>
701
702 <varlistentry id="libpgtypes">
703 <term><filename class='libraryfile'>libpgtypes.{so,a}</filename></term>
704 <listitem>
705 <para>contains functions for dealing with Postgres data types.</para>
706 <indexterm zone="postgresql libpgtypes">
707 <primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
708 </indexterm>
709 </listitem>
710 </varlistentry>
711
712 <varlistentry id="libpq">
713 <term><filename class='libraryfile'>libpq.{so,a}</filename></term>
714 <listitem>
715 <para>is the C programmer's API to Postgres.</para>
716 <indexterm zone="postgresql libpq">
717 <primary sortas="c-libpq">libpq.{so,a}</primary>
718 </indexterm>
719 </listitem>
720 </varlistentry>
721
722 </variablelist>
723
724 </sect2>
725
726</sect1>
Note: See TracBrowser for help on using the repository browser.