source: server/databases/postgresql.xml@ 8753831e

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 8753831e was 8753831e, checked in by Pierre Labastie <pieere@…>, 6 years ago

Some refactoring of postgresql page. If you don't like it, please revert.

  • avoid testing the installation in the "install" section
  • move user creation at the beginning, as we do for other packages
  • make jhalfs happier

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

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