source: server/databases/postgresql.xml@ c2019a03

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.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 c2019a03 was af1a5b1, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Update to postgresql-11.2 and tag

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