source: server/databases/postgresql.xml@ 12d9b07

12.1 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 12d9b07 was ace0703, checked in by Douglas R. Reno <renodr@…>, 10 months ago

Update to postgresql-16.0

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