source: server/databases/postgresql.xml@ f4002c5

10.0 10.1 11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since f4002c5 was f4002c5, checked in by Bruce Dubbs <bdubbs@…>, 16 months ago

Archive expect, dejagnu, and tcl which are now included in LFS.

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

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