source: server/databases/postgresql.xml@ a5708ba

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.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 nosym 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 a5708ba was a5708ba, checked in by Pierre Labastie <pieere@…>, 8 years ago

Tag LXDE and cosmetics on firefox

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

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