source: server/databases/postgresql.xml@ 3c7bd00

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 3c7bd00 was 3c7bd00, checked in by DJ Lucas <dj@…>, 8 years ago

Temporary render fix for bootscripts with REV=systemd.

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

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