source: server/databases/postgresql.xml@ 94b42903

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 94b42903 was 94b42903, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Archive openssl-1.1.x. Moved to LFS.
Update to v4l-utils-1.14.2.
Update to vlc-3.0.0.

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

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