source: server/databases/postgresql.xml@ 4472e923

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 4472e923 was 4472e923, checked in by Pierre Labastie <pieere@…>, 4 years ago

Finish formatting the "server" chapter

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

  • Property mode set to 100644
File size: 30.2 KB
RevLine 
[08254fc]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[08254fc]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[a7ff037]7 <!ENTITY postgresql-download-http "http://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
[af33199]8 <!-- <!ENTITY postgresql-download-ftp "ftp://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2"> -->
9 <!ENTITY postgresql-download-ftp " ">
[f33b456]10 <!ENTITY postgresql-md5sum "a88ceea8ecf2741307f663e4539b58b7">
[af1a5b1]11 <!ENTITY postgresql-size "19 MB">
[f33b456]12 <!ENTITY postgresql-buildsize "185 MB (add 37 MB for tests)">
13 <!ENTITY postgresql-time "0.6 SBU (with parallelism=4, add 0.1 SBU for tests)">
[08254fc]14]>
15
[458342f]16<sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
[4ab91cd]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
[4472e923]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>
[4ab91cd]38
[f33b456]39 &lfs91_checked;
[a1813d08]40
[4ab91cd]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[4472e923]44 <para>
45 Download (HTTP): <ulink url="&postgresql-download-http;"/>
46 </para>
[4ab91cd]47 </listitem>
48 <listitem>
[4472e923]49 <para>
50 Download (FTP): <ulink url="&postgresql-download-ftp;"/>
51 </para>
[4ab91cd]52 </listitem>
53 <listitem>
[4472e923]54 <para>
55 Download MD5 sum: &postgresql-md5sum;
56 </para>
[4ab91cd]57 </listitem>
58 <listitem>
[4472e923]59 <para>
60 Download size: &postgresql-size;
61 </para>
[4ab91cd]62 </listitem>
63 <listitem>
[4472e923]64 <para>
65 Estimated disk space required: &postgresql-buildsize;
66 </para>
[4ab91cd]67 </listitem>
68 <listitem>
[4472e923]69 <para>
70 Estimated build time: &postgresql-time;
71 </para>
[4ab91cd]72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
[a7ff037]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
[88057a1]86 <ulink url="https://developer.apple.com/bonjour/">Bonjour</ulink>
[a7ff037]87 </para>
[5aa1d3dd]88
89 <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
[a7ff037]90 <para role="optional">
[af1a5b1]91 <xref linkend="fop"/>,
[a7ff037]92 <xref linkend="sgml-dtd"/>,
93 <xref linkend="docbook-dsssl"/>,
[af1a5b1]94 <xref linkend="docbook-utils"/>,
[a7ff037]95 <xref linkend="openjade"/>, and
[4392a40]96 <xref linkend="perl-sgmlspm"/>
[a7ff037]97 </para>
[4ab91cd]98
[3cb0c57]99 <para condition="html" role="usernotes">User Notes:
100 <ulink url="&blfs-wiki;/postgresql"/></para>
101
[4ab91cd]102 </sect2>
103
104 <sect2 role="installation">
105 <title>Installation of PostgreSQL</title>
106
[8753831e]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
[4472e923]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>
[9b98149]125
[4472e923]126 <para>
127 Install <application>PostgreSQL</application> with the
128 following commands:
129 </para>
[08254fc]130
[62a6a73]131<screen><userinput>sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h &amp;&amp;
[5be5fc08]132
[faf325d]133./configure --prefix=/usr \
[e0cafc9]134 --enable-thread-safety \
135 --docdir=/usr/share/doc/postgresql-&postgresql-version; &amp;&amp;
[4ab91cd]136make</userinput></screen>
[44e4099]137
[4472e923]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.
[782bf3d0]145 </para>
146
[4472e923]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>
[49a38a1]157
[4472e923]158 <para>
159 Now, as the <systemitem class="username">root</systemitem> user:
160 </para>
[44e4099]161
[e0cafc9]162<screen role="root"><userinput>make install &amp;&amp;
[4f2c94fc]163make install-docs</userinput></screen>
[11404f5]164
[4472e923]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>
[782bf3d0]169
[ca8c3c05]170<screen role="nodump"><userinput>make -C contrib/<replaceable>&lt;SUBDIR-NAME&gt;</replaceable> install</userinput></screen>
[782bf3d0]171
[4472e923]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>
[08254fc]179
[4472e923]180 <para>
181 Initialize a database cluster with the following commands issued by the
182 <systemitem class="username">root</systemitem> user:
183 </para>
[08254fc]184
[faf325d]185<screen role="root"><userinput>install -v -dm700 /srv/pgsql/data &amp;&amp;
186install -v -dm755 /run/postgresql &amp;&amp;
[fcafd3d]187chown -Rv postgres:postgres /srv/pgsql /run/postgresql</userinput></screen>
188
[4472e923]189 <para>
190 Now, initialize the database as the <systemitem
191 class="username">root</systemitem> user:
192 </para>
[fcafd3d]193
[a7b7eceb]194<screen role="root"><userinput>su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
[fcafd3d]195
[4ab91cd]196 </sect2>
197
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
[faf325d]201 <para>
[b7ed441]202 <command>sed -i ...</command>: This sed changes server socket location
[faf325d]203 from <filename class="directory">/tmp</filename> to
[80454f5]204 <filename class="directory">/run/postgresql</filename><!-- and fix up the
[782bf3d0]205 regression tests to use <filename class="directory">/tmp</filename> so
[79f9638]206 that they can work reliably-->.
[faf325d]207 </para>
208
[4472e923]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>
[4ab91cd]215
[4472e923]216 <para>
217 <option>--with-openssl</option>: builds the package with support for
218 <application>OpenSSL</application> encrypted connections.
219 </para>
[a2957b7]220
[4472e923]221 <para>
222 <option>--with-perl</option>: builds the PL/Perl server-side language.
[76acb620]223 </para>
224
[4472e923]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>
[76acb620]230
[4472e923]231 <para>
232 <option>--with-tcl</option>: builds the PL/Tcl server-side language.
233 </para>
[76acb620]234
[4ab91cd]235 </sect2>
236
237 <sect2 role="configuration">
238 <title>Configuring PostgreSQL</title>
239
240 <sect3 id="postgresql-config">
241 <title>Config Files</title>
242
[4472e923]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>
[4ab91cd]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
[4472e923]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>
[4ab91cd]271
272 </sect3>
273
274 <sect3 id="postgresql-init">
[1258125]275 <title><phrase revision="sysv">Boot Script</phrase>
276 <phrase revision="systemd">Systemd Unit</phrase></title>
277
[4472e923]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>
[4ab91cd]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
[8753831e]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>
[4472e923]333 When you are done with testing, you can shut down the server, by
334 issuing as <systemitem class="username">root</systemitem>:
[8753831e]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
[4ab91cd]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>
[1a60731f]352 <seg>
[1aecb6f]353 clusterdb, createdb, createuser, dropdb,
[edccd1f8]354 dropuser, ecpg, initdb, pg_archivecleanup, pg_basebackup, pg_config,
355 pg_controldata, pg_ctl, pg_dump, pg_dumpall, pg_isready,
[1aecb6f]356 pg_receivewal, pg_recvlogical, pg_resetwval, pg_restore, pg_rewind,
357 pg_test_fsync, pg_test_timing, pg_upgrade, pg_waldump, pgbench,
[fa30d84]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
[1a60731f]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,
[9ad19294]372 /usr/share/{doc/postgresql-&postgresql-version;,postgresql}, and
[1a60731f]373 /srv/pgsql
374 </seg>
[4ab91cd]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>
[4472e923]386 <para>
387 is a utility for reclustering tables in a
388 <application>PostgreSQL</application> database.
389 </para>
[4ab91cd]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>
[4472e923]399 <para>
400 creates a new <application>PostgreSQL</application>
401 database.
402 </para>
[4ab91cd]403 <indexterm zone="postgresql createdb">
404 <primary sortas="b-createdb">createdb</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
[1aecb6f]408
[4ab91cd]409 <varlistentry id="createuser">
410 <term><command>createuser</command></term>
411 <listitem>
[4472e923]412 <para>
413 defines a new <application>PostgreSQL</application>
414 user account.
415 </para>
[4ab91cd]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>
[4472e923]425 <para>
426 removes a <application>PostgreSQL</application> database.
427 </para>
[4ab91cd]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>
[4472e923]437 <para>
438 removes a <application>PostgreSQL</application> user account.
439 </para>
[4ab91cd]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>
[4472e923]449 <para>
450 is the embedded SQL preprocessor.
451 </para>
[4ab91cd]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>
[4472e923]461 <para>
462 creates a new database cluster.
463 </para>
[4ab91cd]464 <indexterm zone="postgresql initdb">
465 <primary sortas="b-initdb">initdb</primary>
466 </indexterm>
467 </listitem>
468 </varlistentry>
469
[782bf3d0]470 <varlistentry id="oid2name">
471 <term><command>oid2name</command></term>
472 <listitem>
[4472e923]473 <para>
474 resolves OIDs (Object IDs) and file nodes in a PostgreSQL data
475 directory.
476 </para>
[782bf3d0]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>
[4472e923]486 <para>
487 cleans up PostgreSQL WAL (write-ahead log) archive files.
488 </para>
[782bf3d0]489 <indexterm zone="postgresql pg_archivecleanup">
490 <primary sortas="b-pg_archivecleanup">pg_archivecleanup</primary>
491 </indexterm>
492 </listitem>
493 </varlistentry>
494
[a2957b7]495 <varlistentry id="pg_basebackup">
496 <term><command>pg_basebackup</command></term>
[4ab91cd]497 <listitem>
[4472e923]498 <para>
499 takes base backups of a running
500 <application>PostgreSQL</application> cluster.
501 </para>
[a2957b7]502 <indexterm zone="postgresql pg_basebackup">
503 <primary sortas="b-pg_basebackup">pg_basebackup</primary>
[4ab91cd]504 </indexterm>
505 </listitem>
506 </varlistentry>
507
508 <varlistentry id="pg_config">
509 <term><command>pg_config</command></term>
510 <listitem>
[4472e923]511 <para>
512 retrieves <application>PostgreSQL</application> version
513 information.
514 </para>
[4ab91cd]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>
[4472e923]524 <para>
525 returns information initialized during <command>initdb</command>,
526 such as the catalog version and server locale.
527 </para>
[4ab91cd]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>
[4472e923]537 <para>
538 controls stopping and starting the database server.
539 </para>
[4ab91cd]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>
[4472e923]549 <para>
550 dumps database data and metadata into scripts which are used
551 to recreate the database.
552 </para>
[4ab91cd]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>
[4472e923]562 <para>
563 recursively calls <command>pg_dump</command> for each
564 database in a cluster.
565 </para>
[4ab91cd]566 <indexterm zone="postgresql pg_dumpall">
567 <primary sortas="b-pg_dumpall">pg_dumpall</primary>
568 </indexterm>
569 </listitem>
570 </varlistentry>
571
[782bf3d0]572 <varlistentry id="pg_isready">
573 <term><command>pg_isready</command></term>
574 <listitem>
[4472e923]575 <para>
576 checks the connection status of a PostgreSQL server.
577 </para>
[782bf3d0]578 <indexterm zone="postgresql pg_isready">
579 <primary sortas="b-pg_isready">pg_isready</primary>
580 </indexterm>
581 </listitem>
582 </varlistentry>
583
[1aecb6f]584 <varlistentry id="pg_receivewal">
585 <term><command>pg_receivewal</command></term>
[298fee30]586 <listitem>
587 <para>
[1aecb6f]588 is used to stream write-ahead logs from a PostgreSQL server.
[298fee30]589 </para>
[1aecb6f]590 <indexterm zone="postgresql pg_receivewal">
591 <primary sortas="b-pg_receivewal">pg_receivewal</primary>
[298fee30]592 </indexterm>
593 </listitem>
594 </varlistentry>
595
[0f23f29]596 <varlistentry id="pg_recvlogical">
597 <term><command>pg_recvlogical</command></term>
598 <listitem>
[4472e923]599 <para>
600 controls PostgreSQL logical decoding streams.
601 </para>
[0f23f29]602 <indexterm zone="postgresql pg_recvlogical">
603 <primary sortas="b-pg_recvlogical">pg_recvlogical</primary>
604 </indexterm>
605 </listitem>
606 </varlistentry>
607
[1aecb6f]608 <varlistentry id="pg_resetwal">
609 <term><command>pg_resetwal</command></term>
[4ab91cd]610 <listitem>
[4472e923]611 <para>
612 resets the write-ahead log and other control information
613 of a PostgreSQL database cluster.
614 </para>
[1aecb6f]615 <indexterm zone="postgresql pg_resetwal">
616 <primary sortas="b-pg_resetwal">pg_resetwal</primary>
[4ab91cd]617 </indexterm>
618 </listitem>
619 </varlistentry>
620
621 <varlistentry id="pg_restore">
622 <term><command>pg_restore</command></term>
623 <listitem>
[4472e923]624 <para>
625 creates databases from dump files created by
626 <command>pg_dump</command>.
627 </para>
[4ab91cd]628 <indexterm zone="postgresql pg_restore">
629 <primary sortas="b-pg_restore">pg_restore</primary>
630 </indexterm>
631 </listitem>
632 </varlistentry>
633
[edccd1f8]634 <varlistentry id="pg_rewind">
635 <term><command>pg_rewind</command></term>
636 <listitem>
[4472e923]637 <para>
638 synchronizes a PostgreSQL data directory with another data
639 directory that was forked from the first one.
640 </para>
[edccd1f8]641 <indexterm zone="postgresql pg_rewind">
642 <primary sortas="b-pg_rewind">pg_rewind</primary>
643 </indexterm>
644 </listitem>
645 </varlistentry>
646
[782bf3d0]647 <varlistentry id="pg_standby">
648 <term><command>pg_standby</command></term>
649 <listitem>
[4472e923]650 <para>
651 supports the creation of a PostgreSQL warm standby server.
652 </para>
[782bf3d0]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>
[4472e923]662 <para>
663 determines fastest wal_sync method for PostgreSQL.
664 </para>
[782bf3d0]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>
[4472e923]674 <para>
675 measures timing overhead.
676 </para>
[782bf3d0]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>
[4472e923]686 <para>
687 upgrades a PostgreSQL server instance.
688 </para>
[782bf3d0]689 <indexterm zone="postgresql pg_upgrade">
690 <primary sortas="b-pg_upgrade">pg_upgrade</primary>
691 </indexterm>
692 </listitem>
693 </varlistentry>
694
[1aecb6f]695 <varlistentry id="pg_waldump">
696 <term><command>pg_waldump</command></term>
[782bf3d0]697 <listitem>
[4472e923]698 <para>
699 displays a human-readable rendering of the write-ahead log of a
700 PostgreSQL database cluster.
701 </para>
[1aecb6f]702 <indexterm zone="postgresql pg_waldump">
703 <primary sortas="b-pg_waldump">pg_waldump</primary>
[782bf3d0]704 </indexterm>
705 </listitem>
706 </varlistentry>
707
708 <varlistentry id="pgbench">
709 <term><command>pgbench</command></term>
710 <listitem>
[4472e923]711 <para>
712 runs a benchmark test on PostgreSQL.
713 </para>
[782bf3d0]714 <indexterm zone="postgresql pgbench">
715 <primary sortas="b-pgbench">pgbench</primary>
716 </indexterm>
717 </listitem>
718 </varlistentry>
719
[4ab91cd]720 <varlistentry id="pltcl_delmod">
721 <term><command>pltcl_delmod</command></term>
722 <listitem>
[4472e923]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>
[4ab91cd]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>
[4472e923]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>
[4ab91cd]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>
[4472e923]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>
[4ab91cd]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>
[4472e923]771 <para>
772 is the PostgreSQL database server.
773 </para>
[4ab91cd]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>
[4472e923]783 <para>
784 (deprecated, a symlink to <command>postgres</command>) is a
785 multi-user database daemon.
786 </para>
[4ab91cd]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>
[4472e923]796 <para>
797 is a console based database shell.
798 </para>
[4ab91cd]799 <indexterm zone="postgresql psql">
800 <primary sortas="b-psql">psql</primary>
801 </indexterm>
802 </listitem>
803 </varlistentry>
804
[aaeca54]805 <varlistentry id="reindexdb">
806 <term><command>reindexdb</command></term>
807 <listitem>
[4472e923]808 <para>
809 is a utility for rebuilding indexes in a database.
810 </para>
[621a551]811 <indexterm zone="postgresql reindexdb">
812 <primary sortas="b-reindexdb">reindexdb</primary>
[aaeca54]813 </indexterm>
814 </listitem>
815 </varlistentry>
816
[4ab91cd]817 <varlistentry id="vacuumdb">
818 <term><command>vacuumdb</command></term>
819 <listitem>
[4472e923]820 <para>
821 compacts databases and generates statistics for the query analyzer.
822 </para>
[4ab91cd]823 <indexterm zone="postgresql vacuumdb">
824 <primary sortas="b-vacuumdb">vacuumdb</primary>
825 </indexterm>
[782bf3d0]826 </listitem>
827 </varlistentry>
828
829 <varlistentry id="vacuumlo">
830 <term><command>vacuumlo</command></term>
831 <listitem>
[4472e923]832 <para>
833 removes orphaned large objects from a PostgreSQL database.
834 </para>
[782bf3d0]835 <indexterm zone="postgresql vacuumlo">
836 <primary sortas="b-vacuumlo">vacuumlo</primary>
837 </indexterm>
[4ab91cd]838 </listitem>
839 </varlistentry>
840
[76acb620]841 <varlistentry id="libecpg">
842 <term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
843 <listitem>
[4472e923]844 <para>
845 contains functions to support embedded SQL in C programs.
846 </para>
[76acb620]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>
[4472e923]856 <para>
857 is the ecpg compatibility library.
858 </para>
[76acb620]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>
[4472e923]868 <para>
869 is the port-specific subsystem of the Postgres backend.
870 </para>
[76acb620]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>
[4472e923]880 <para>
881 contains functions for dealing with Postgres data types.
882 </para>
[76acb620]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>
[4472e923]892 <para>
893 is the C programmer's API to Postgres.
894 </para>
[76acb620]895 <indexterm zone="postgresql libpq">
896 <primary sortas="c-libpq">libpq.{so,a}</primary>
897 </indexterm>
898 </listitem>
899 </varlistentry>
900
[4ab91cd]901 </variablelist>
902
903 </sect2>
[458342f]904
905</sect1>
Note: See TracBrowser for help on using the repository browser.