source: server/databases/postgresql.xml@ ad112fd5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 ad112fd5 was ad112fd5, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to cups-2.2.12.
Update to node.js-10.16.3.
Update to gtk-doc-1.32.
Tag qt5 and its dependencies.

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

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