source: server/databases/postgresql-systemd.xml@ 8770a48

systemd-13485
Last change on this file since 8770a48 was 8770a48, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Update to doxygen-1.8.10
Update to OpenJDK-1.8.0.51
Update to check-0.10.0
Fix a build error in Valgrind using glibc-2.22
Update to GnuTLS-3.4.4.1
Update to acpid-2.0.25
Update to cURL-7.44.0
Update to libpng-1.6.18
Update to cmake-3.3.1
Update to harfbuzz-1.0.2
Update to libdrm-2.4.64
Update to Mesa-10.6.4 (will wait for 11.x release for next update)
Update to Linux-PAM-1.2.1
Update to xterm-319
Update to gdk-pixbuf-2.31.6
Update to vala-0.28.1
Update to LVM2-2.02.128
Update to openbox-3.6.1
Update to PIN-Entry-0.9.5
Update to GnuPG-2.1.7
Update to gcr-3.16.0
Fix URL for gsettings-desktop-schemas-3.16.1
Add some short descriptions by Denis.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16358 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 28.3 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 "1fe952c44ed26d7e6a335cf991a9c1c6">
10 <!ENTITY postgresql-size "17 MB">
11 <!ENTITY postgresql-buildsize "194 MB">
12 <!ENTITY postgresql-time "1.3 SBU">
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 &lfs77_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&postgresql-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&postgresql-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &postgresql-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &postgresql-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &postgresql-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &postgresql-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Optional</bridgehead>
63 <para role="optional">
64 <xref linkend="python2"/>,
65 <xref linkend="tcl"/>,
66 <xref linkend="openssl"/>,
67 <xref linkend="libxml2"/>,
68 <xref linkend="libxslt"/>,
69 <xref linkend="openldap"/>,
70 <xref linkend="linux-pam"/>,
71 <xref linkend="mitkrb"/> and
72 <ulink url="http://developer.apple.com/networking/bonjour/">Bonjour</ulink>
73 </para>
74
75 <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
76 <para role="optional">
77 <xref linkend="sgml-dtd"/>,
78 <xref linkend="docbook-dsssl"/>,
79 <xref linkend="openjade"/>, and
80 <xref linkend="perl-sgmlspm"/>
81 </para>
82
83 <para condition="html" role="usernotes">User Notes:
84 <ulink url="&blfs-wiki;/postgresql"/></para>
85
86 </sect2>
87
88 <sect2 role="installation">
89 <title>Installation of PostgreSQL</title>
90
91 <para>Install <application>PostgreSQL</application> with the
92 following commands: </para>
93
94<!--sed -i -e 's@psql\\"@&amp; -h /tmp@' src/test/regress/pg_regress{,_main}.c &amp;&amp;
95sed -i -e 's@gres\\"@&amp; -k /tmp@' src/test/regress/pg_regress.c &amp;&amp;-->
96<screen><userinput>sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h &amp;&amp;
97./configure --prefix=/usr \
98 --enable-thread-safety \
99 --docdir=/usr/share/doc/postgresql-&postgresql-version; &amp;&amp;
100make</userinput></screen>
101
102 <para>There are a number of programs in the
103 <filename class="directory">contrib/</filename> directory. If you are going
104 to run this installation as a server and wish to build some of them, enter
105 <command>make -C contrib</command> or
106 <command>make -C contrib/<replaceable>&lt;SUBDIR-NAME&gt;</replaceable></command> for each subdirectory.
107 </para>
108
109 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
110
111<screen role="root"><userinput>make install &amp;&amp;
112make install-docs</userinput></screen>
113
114 <para>If you made any of the <filename class="directory">contrib/</filename>
115 programs, as the <systemitem class="username">root</systemitem> user:</para>
116
117<screen role="nodump/"><userinput>make -C contrib/<replaceable>&lt;SUBDIR-NAME&gt;</replaceable> install</userinput></screen>
118
119 <warning>
120 <para>This package contains a known security hole that allows other
121 users on the same machine to gain access to an operating system account
122 while it is doing "make check": CVE-2014-0067. Tests must be run after
123 install, with postgresql server down, as unprivileged user.</para>
124 </warning>
125
126 <para>To test the results, issue: <command>make check</command>.</para>
127
128 <para><emphasis>If you only intend to use <application>PostgreSQL</application>
129 as a client to connect to a server on another machine, your installation is
130 complete and you should not run the 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>Systemd Units</title>
250
251 <para>
252 To start the <command>postgresql</command> daemon at boot,
253 install the systemd unit from the <xref linkend="bootscripts"/>
254 package by running the following command as the
255 <systemitem class="username">root</systemitem> user:
256 </para>
257
258 <indexterm zone="postgresql postgresql-init">
259 <primary sortas="f-postgresql">postgresql</primary>
260 </indexterm>
261
262<screen role="root"><userinput>make install-postgresql</userinput></screen>
263
264 </sect3>
265
266 </sect2>
267
268 <sect2 role="content">
269 <title>Contents</title>
270
271 <segmentedlist>
272 <segtitle>Installed Programs</segtitle>
273 <segtitle>Installed Libraries</segtitle>
274 <segtitle>Installed Directories</segtitle>
275
276 <seglistitem>
277 <seg>
278 clusterdb, createdb, createlang, createuser, dropdb, droplang,
279 dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata,
280 pg_ctl, pg_dump, pg_dumpall, pg_isready, pg_receivexlog,
281 pg_recvlogical, pg_resetxlog, pg_restore, pltcl_delmod,
282 pltcl_listmod, pltcl_loadmod, postgres, postmaster (deprecated),
283 psql, reindexdb, vacuumdb, and optionally (in contrib/) oid2name,
284 pg_archivecleanup, pgbench, pg_standby, pg_test_fsync,
285 pg_test_timing, pg_upgrade, pg_xlogdump, vacuumlo, and many others
286 </seg>
287 <seg>
288 libecpg.{so,a}, libecpg_compat.{so,a}, libpgcommon.a, libpgport.a,
289 libpgtypes.{so,a}, and libpq.{so,a}
290 </seg>
291 <seg>
292 /usr/include/{libpq,postgresql},
293 /usr/lib/postgresql,
294 /usr/share/doc/postgresql-&postgresql-version;,
295 /usr/share/postgresql, and
296 /srv/pgsql
297 </seg>
298 </seglistitem>
299 </segmentedlist>
300
301 <variablelist>
302 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
303 <?dbfo list-presentation="list"?>
304 <?dbhtml list-presentation="table"?>
305
306 <varlistentry id="clusterdb">
307 <term><command>clusterdb</command></term>
308 <listitem>
309 <para>is a utility for reclustering tables in a
310 <application>PostgreSQL</application> database.</para>
311 <indexterm zone="postgresql clusterdb">
312 <primary sortas="b-clusterdb">clusterdb</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="createdb">
318 <term><command>createdb</command></term>
319 <listitem>
320 <para> creates a new <application>PostgreSQL</application>
321 database.</para>
322 <indexterm zone="postgresql createdb">
323 <primary sortas="b-createdb">createdb</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="createlang">
329 <term><command>createlang</command></term>
330 <listitem>
331 <para>defines a new <application>PostgreSQL</application> procedural
332 language.</para>
333 <indexterm zone="postgresql createlang">
334 <primary sortas="b-createlang">createlang</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="createuser">
340 <term><command>createuser</command></term>
341 <listitem>
342 <para>defines a new <application>PostgreSQL</application>
343 user account.</para>
344 <indexterm zone="postgresql createuser">
345 <primary sortas="b-createuser">createuser</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="dropdb">
351 <term><command>dropdb</command></term>
352 <listitem>
353 <para>removes a <application>PostgreSQL</application> database.</para>
354 <indexterm zone="postgresql dropdb">
355 <primary sortas="b-dropdb">dropdb</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="droplang">
361 <term><command>droplang</command></term>
362 <listitem>
363 <para>removes a <application>PostgreSQL</application> procedural
364 language.</para>
365 <indexterm zone="postgresql droplang">
366 <primary sortas="b-droplang">droplang</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="dropuser">
372 <term><command>dropuser</command></term>
373 <listitem>
374 <para>removes a <application>PostgreSQL</application>
375 user account.</para>
376 <indexterm zone="postgresql dropuser">
377 <primary sortas="b-dropuser">dropuser</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="ecpg">
383 <term><command>ecpg</command></term>
384 <listitem>
385 <para>is the embedded SQL preprocessor.</para>
386 <indexterm zone="postgresql ecpg">
387 <primary sortas="b-ecpg">ecpg</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="initdb">
393 <term><command>initdb</command></term>
394 <listitem>
395 <para>creates a new database cluster.</para>
396 <indexterm zone="postgresql initdb">
397 <primary sortas="b-initdb">initdb</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="oid2name">
403 <term><command>oid2name</command></term>
404 <listitem>
405 <para>resolves OIDs (Object IDs) and file nodes in a PostgreSQL data
406 directory.</para>
407 <indexterm zone="postgresql oid2name">
408 <primary sortas="b-oid2name">oid2name</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
413 <varlistentry id="pg_archivecleanup">
414 <term><command>pg_archivecleanup</command></term>
415 <listitem>
416 <para>clean up PostgreSQL WAL (write-ahead log) archive files.</para>
417 <indexterm zone="postgresql pg_archivecleanup">
418 <primary sortas="b-pg_archivecleanup">pg_archivecleanup</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="pg_basebackup">
424 <term><command>pg_basebackup</command></term>
425 <listitem>
426 <para>takes base backups of a running
427 <application>PostgreSQL</application> cluster.</para>
428 <indexterm zone="postgresql pg_basebackup">
429 <primary sortas="b-pg_basebackup">pg_basebackup</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="pg_config">
435 <term><command>pg_config</command></term>
436 <listitem>
437 <para>retrieves <application>PostgreSQL</application> version
438 information.</para>
439 <indexterm zone="postgresql pg_config">
440 <primary sortas="b-pg_config">pg_config</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
445 <varlistentry id="pg_controldata">
446 <term><command>pg_controldata</command></term>
447 <listitem>
448 <para>returns information initialized during
449 <command>initdb</command>, such as the catalog version and server
450 locale.</para>
451 <indexterm zone="postgresql pg_controldata">
452 <primary sortas="b-pg_controldata">pg_controldata</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="pg_ctl">
458 <term><command>pg_ctl</command></term>
459 <listitem>
460 <para>controls stopping and starting the database server.</para>
461 <indexterm zone="postgresql pg_ctl">
462 <primary sortas="b-pg_ctl">pg_ctl</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="pg_dump">
468 <term><command>pg_dump</command></term>
469 <listitem>
470 <para>dumps database data and metadata into scripts which are used
471 to recreate the database.</para>
472 <indexterm zone="postgresql pg_dump">
473 <primary sortas="b-pg_dump">pg_dump</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
478 <varlistentry id="pg_dumpall">
479 <term><command>pg_dumpall</command></term>
480 <listitem>
481 <para>recursively calls <command>pg_dump</command> for each
482 database in a cluster.</para>
483 <indexterm zone="postgresql pg_dumpall">
484 <primary sortas="b-pg_dumpall">pg_dumpall</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="pg_isready">
490 <term><command>pg_isready</command></term>
491 <listitem>
492 <para>check the connection status of a PostgreSQL server.</para>
493 <indexterm zone="postgresql pg_isready">
494 <primary sortas="b-pg_isready">pg_isready</primary>
495 </indexterm>
496 </listitem>
497 </varlistentry>
498
499 <varlistentry id="pg_receivexlog">
500 <term><command>pg_receivexlog</command></term>
501 <listitem>
502 <para>
503 is used to stream transaction log from a running
504 PostgreSQL cluster.
505 </para>
506 <indexterm zone="postgresql pg_receivexlog">
507 <primary sortas="b-pg_receivexlog">pg_receivexlog</primary>
508 </indexterm>
509 </listitem>
510 </varlistentry>
511
512 <varlistentry id="pg_recvlogical">
513 <term><command>pg_recvlogical</command></term>
514 <listitem>
515 <para>controls PostgreSQL logical decoding streams.</para>
516 <indexterm zone="postgresql pg_recvlogical">
517 <primary sortas="b-pg_recvlogical">pg_recvlogical</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="pg_resetxlog">
523 <term><command>pg_resetxlog</command></term>
524 <listitem>
525 <para>clears the write-ahead log and optionally resets some
526 fields in the <filename>pg_control</filename> file.</para>
527 <indexterm zone="postgresql pg_resetxlog">
528 <primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
529 </indexterm>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="pg_restore">
534 <term><command>pg_restore</command></term>
535 <listitem>
536 <para>creates databases from dump files created by
537 <command>pg_dump</command>.</para>
538 <indexterm zone="postgresql pg_restore">
539 <primary sortas="b-pg_restore">pg_restore</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="pg_standby">
545 <term><command>pg_standby</command></term>
546 <listitem>
547 <para>supports the creation of a PostgreSQL warm standby
548 server.</para>
549 <indexterm zone="postgresql pg_standby">
550 <primary sortas="b-pg_standby">pg_standby</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554
555 <varlistentry id="pg_test_fsync">
556 <term><command>pg_test_fsync</command></term>
557 <listitem>
558 <para>determine fastest wal_sync method for PostgreSQL.</para>
559 <indexterm zone="postgresql pg_test_fsync">
560 <primary sortas="b-pg_test_fsync">pg_test_fsync</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
565 <varlistentry id="pg_test_timing">
566 <term><command>pg_test_timing</command></term>
567 <listitem>
568 <para>measure timing overhead.</para>
569 <indexterm zone="postgresql pg_test_timing">
570 <primary sortas="b-pg_test_timing">pg_test_timing</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="pg_upgrade">
576 <term><command>pg_upgrade</command></term>
577 <listitem>
578 <para>upgrade a PostgreSQL server instance.</para>
579 <indexterm zone="postgresql pg_upgrade">
580 <primary sortas="b-pg_upgrade">pg_upgrade</primary>
581 </indexterm>
582 </listitem>
583 </varlistentry>
584
585 <varlistentry id="pg_xlogdump">
586 <term><command>pg_xlogdump</command></term>
587 <listitem>
588 <para>display a human-readable rendering of the write-ahead log of a
589 PostgreSQL database cluster.</para>
590 <indexterm zone="postgresql pg_xlogdump">
591 <primary sortas="b-pg_xlogdump">pg_xlogdump</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="pgbench">
597 <term><command>pgbench</command></term>
598 <listitem>
599 <para>run a benchmark test on PostgreSQL.</para>
600 <indexterm zone="postgresql pgbench">
601 <primary sortas="b-pgbench">pgbench</primary>
602 </indexterm>
603 </listitem>
604 </varlistentry>
605
606 <varlistentry id="pltcl_delmod">
607 <term><command>pltcl_delmod</command></term>
608 <listitem>
609 <para>is a support script used to delete a module from a
610 PL/<application>Tcl</application> table. The command
611 requires the <ulink
612 url="http://flightaware.github.io/Pgtcl/">Pgtcl</ulink>
613 package to be installed also.</para>
614 <indexterm zone="postgresql pltcl_delmod">
615 <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
616 </indexterm>
617 </listitem>
618 </varlistentry>
619
620 <varlistentry id="pltcl_listmod">
621 <term><command>pltcl_listmod</command></term>
622 <listitem>
623 <para>is a support script used to list the modules in a
624 PL/<application>Tcl</application> table. The command
625 requires the <ulink
626 url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
627 package to be installed also.</para>
628 <indexterm zone="postgresql pltcl_listmod">
629 <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
630 </indexterm>
631 </listitem>
632 </varlistentry>
633
634 <varlistentry id="pltcl_loadmod">
635 <term><command>pltcl_loadmod</command></term>
636 <listitem>
637 <para>is a support script used to load a module into a
638 PL/<application>Tcl</application> table. The command
639 requires the <ulink
640 url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
641 package to be installed also.</para>
642 <indexterm zone="postgresql pltcl_loadmod">
643 <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
644 </indexterm>
645 </listitem>
646 </varlistentry>
647
648 <varlistentry id="postgres">
649 <term><command>postgres</command></term>
650 <listitem>
651 <para>is the PostgreSQL database server.</para>
652 <indexterm zone="postgresql postgres">
653 <primary sortas="b-postgres">postgres</primary>
654 </indexterm>
655 </listitem>
656 </varlistentry>
657
658 <varlistentry id="postmaster">
659 <term><command>postmaster</command></term>
660 <listitem>
661 <para>(deprecated, a symlink to <command>postgres</command>) is a
662 multi-user database daemon.</para>
663 <indexterm zone="postgresql postmaster">
664 <primary sortas="b-postmaster">postmaster</primary>
665 </indexterm>
666 </listitem>
667 </varlistentry>
668
669 <varlistentry id="psql">
670 <term><command>psql</command></term>
671 <listitem>
672 <para>is a console based database shell.</para>
673 <indexterm zone="postgresql psql">
674 <primary sortas="b-psql">psql</primary>
675 </indexterm>
676 </listitem>
677 </varlistentry>
678
679 <varlistentry id="reindexdb">
680 <term><command>reindexdb</command></term>
681 <listitem>
682 <para>is a utility for rebuilding indexes in a database.</para>
683 <indexterm zone="postgresql reindexdb">
684 <primary sortas="b-reindexdb">reindexdb</primary>
685 </indexterm>
686 </listitem>
687 </varlistentry>
688
689 <varlistentry id="vacuumdb">
690 <term><command>vacuumdb</command></term>
691 <listitem>
692 <para>compacts databases and generates statistics for the query
693 analyzer.</para>
694 <indexterm zone="postgresql vacuumdb">
695 <primary sortas="b-vacuumdb">vacuumdb</primary>
696 </indexterm>
697 </listitem>
698 </varlistentry>
699
700 <varlistentry id="vacuumlo">
701 <term><command>vacuumlo</command></term>
702 <listitem>
703 <para>remove orphaned large objects from a PostgreSQL database.</para>
704 <indexterm zone="postgresql vacuumlo">
705 <primary sortas="b-vacuumlo">vacuumlo</primary>
706 </indexterm>
707 </listitem>
708 </varlistentry>
709
710 <varlistentry id="libecpg">
711 <term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
712 <listitem>
713 <para>contains functions to support embedded SQL in C programs.</para>
714 <indexterm zone="postgresql libecpg">
715 <primary sortas="c-libecpg">libecpg.{so,a}</primary>
716 </indexterm>
717 </listitem>
718 </varlistentry>
719
720 <varlistentry id="libecpg_compat">
721 <term><filename class='libraryfile'>libecpg_compat.{so,a}</filename></term>
722 <listitem>
723 <para>is the ecpg compatibility library.</para>
724 <indexterm zone="postgresql libecpg_compat">
725 <primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
726 </indexterm>
727 </listitem>
728 </varlistentry>
729
730 <varlistentry id="libgport">
731 <term><filename class='libraryfile'>libgport.a</filename></term>
732 <listitem>
733 <para>is the port-specific subsystem of the Postgres backend.</para>
734 <indexterm zone="postgresql libgport">
735 <primary sortas="c-libgport">libgport.a</primary>
736 </indexterm>
737 </listitem>
738 </varlistentry>
739
740 <varlistentry id="libpgtypes">
741 <term><filename class='libraryfile'>libpgtypes.{so,a}</filename></term>
742 <listitem>
743 <para>contains functions for dealing with Postgres data types.</para>
744 <indexterm zone="postgresql libpgtypes">
745 <primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
746 </indexterm>
747 </listitem>
748 </varlistentry>
749
750 <varlistentry id="libpq">
751 <term><filename class='libraryfile'>libpq.{so,a}</filename></term>
752 <listitem>
753 <para>is the C programmer's API to Postgres.</para>
754 <indexterm zone="postgresql libpq">
755 <primary sortas="c-libpq">libpq.{so,a}</primary>
756 </indexterm>
757 </listitem>
758 </varlistentry>
759
760 </variablelist>
761
762 </sect2>
763
764</sect1>
Note: See TracBrowser for help on using the repository browser.