mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
2ab3868fdf
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16444 af4574ff-66df-0310-9fd7-8a98e5e911e0
762 lines
28 KiB
XML
762 lines
28 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY postgresql-download-http "http://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
|
<!ENTITY postgresql-download-ftp "ftp://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
|
<!ENTITY postgresql-md5sum "1fe952c44ed26d7e6a335cf991a9c1c6">
|
|
<!ENTITY postgresql-size "17 MB">
|
|
<!ENTITY postgresql-buildsize "194 MB (additional 6 MB to run the testsuite)">
|
|
<!ENTITY postgresql-time "1.3 SBU (additional 0.1 SBU to run the testsuite)">
|
|
]>
|
|
|
|
<sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
|
|
<?dbhtml filename="postgresql.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>PostgreSQL-&postgresql-version;</title>
|
|
|
|
<indexterm zone="postgresql">
|
|
<primary sortas="a-PostgreSQL">PostgreSQL</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to PostgreSQL</title>
|
|
|
|
<para><application>PostgreSQL</application> is an advanced
|
|
object-relational database management system (ORDBMS), derived
|
|
from the Berkeley Postgres database management system.</para>
|
|
|
|
&lfs78_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&postgresql-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&postgresql-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &postgresql-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &postgresql-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &postgresql-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &postgresql-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="python2"/>,
|
|
<xref linkend="tcl"/>,
|
|
<xref linkend="openssl"/>,
|
|
<xref linkend="libxml2"/>,
|
|
<xref linkend="libxslt"/>,
|
|
<xref linkend="openldap"/>,
|
|
<xref linkend="linux-pam"/>,
|
|
<xref linkend="mitkrb"/> and
|
|
<ulink url="http://developer.apple.com/networking/bonjour/">Bonjour</ulink>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="sgml-dtd"/>,
|
|
<xref linkend="docbook-dsssl"/>,
|
|
<xref linkend="openjade"/>, and
|
|
<xref linkend="perl-sgmlspm"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/postgresql"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of PostgreSQL</title>
|
|
|
|
<para>Install <application>PostgreSQL</application> with the
|
|
following commands: </para>
|
|
|
|
<!--sed -i -e 's@psql\\"@& -h /tmp@' src/test/regress/pg_regress{,_main}.c &&
|
|
sed -i -e 's@gres\\"@& -k /tmp@' src/test/regress/pg_regress.c &&-->
|
|
<screen><userinput>sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h &&
|
|
./configure --prefix=/usr \
|
|
--enable-thread-safety \
|
|
--docdir=/usr/share/doc/postgresql-&postgresql-version; &&
|
|
make</userinput></screen>
|
|
|
|
<para>There are a number of programs in the
|
|
<filename class="directory">contrib/</filename> directory. If you are going
|
|
to run this installation as a server and wish to build some of them, enter
|
|
<command>make -C contrib</command> or
|
|
<command>make -C contrib/<replaceable><SUBDIR-NAME></replaceable></command> for each subdirectory.
|
|
</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
make install-docs</userinput></screen>
|
|
|
|
<para>If you made any of the <filename class="directory">contrib/</filename>
|
|
programs, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="nodump/"><userinput>make -C contrib/<replaceable><SUBDIR-NAME></replaceable> install</userinput></screen>
|
|
|
|
<warning>
|
|
<para>This package contains a known security hole that allows other
|
|
users on the same machine to gain access to an operating system account
|
|
while it is doing "make check": CVE-2014-0067. Tests must be run after
|
|
install, with postgresql server down, as unprivileged user.</para>
|
|
</warning>
|
|
|
|
<para>To test the results, issue: <command>make check</command>.</para>
|
|
|
|
<para><emphasis>If you only intend to use <application>PostgreSQL</application>
|
|
as a client to connect to a server on another machine, your installation is
|
|
complete and you should not run the remaining commands.</emphasis></para>
|
|
|
|
<!-- 'Upgrading' seems to only ever exist in the docs for *previous* version -->
|
|
<!-- Obsolete: only if upgrading for versions prior to 9 <note>
|
|
<para>If you are upgrading an existing system and are going to install
|
|
the new files over the old ones, then you should back up your data, shut
|
|
down the old server and follow the instructions in <ulink
|
|
url="http://www.postgresql.org/docs/9.0/static/install-upgrading.html">the
|
|
official <application>PostgreSQL</application> documentation</ulink>.</para>
|
|
</note>-->
|
|
|
|
<para>Initialize a database cluster with the following commands issued by the
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>install -v -dm700 /srv/pgsql/data &&
|
|
install -v -dm755 /run/postgresql &&
|
|
groupadd -g 41 postgres &&
|
|
useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \
|
|
-u 41 postgres &&
|
|
chown -Rv postgres:postgres /srv/pgsql /run/postgresql &&
|
|
su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
|
|
|
|
<para>As the <systemitem class="username">root</systemitem> user, start the
|
|
database server with the following command:</para>
|
|
|
|
<screen role="root"><userinput>su - postgres -c '/usr/bin/postgres -D /srv/pgsql/data > \
|
|
/srv/pgsql/data/logfile 2>&1 &'</userinput></screen>
|
|
|
|
<para>Still as user <systemitem class="username">root</systemitem>, create
|
|
a database and verify the installation:</para>
|
|
|
|
<screen role="root"><userinput>su - postgres -c '/usr/bin/createdb test' &&
|
|
echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
|
|
| (su - postgres -c '/usr/bin/psql test ') &&
|
|
echo "insert into t1 values ('Billy', 'NewYork');" \
|
|
| (su - postgres -c '/usr/bin/psql test ') &&
|
|
echo "insert into t1 values ('Evanidus', 'Quebec');" \
|
|
| (su - postgres -c '/usr/bin/psql test ') &&
|
|
echo "insert into t1 values ('Jesse', 'Ontario');" \
|
|
| (su - postgres -c '/usr/bin/psql test ') &&
|
|
echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed -i ...</command>: This sed changes server socket location
|
|
from <filename class="directory">/tmp</filename> to
|
|
<filename class="directory">/run/postgresql</filename><!-- and fix up the
|
|
regression tests to use <filename class="directory">/tmp</filename> so
|
|
that they can work reliably-->.
|
|
</para>
|
|
|
|
<para><parameter>--docdir=/usr/share/doc/postgresql-&postgresql-version;</parameter>:
|
|
This switch puts the documentation in a versioned directory.</para>
|
|
|
|
<para><parameter>--enable-thread-safety</parameter>: This switch makes the
|
|
client libraries thread-safe by allowing concurrent threads in
|
|
<filename class="libraryfile">libpq</filename> and ECPG programs to safely
|
|
control their private connection handles.</para>
|
|
|
|
<para><option>--with-openssl</option>: build with support for
|
|
<application>OpenSSL</application> encrypted connections.</para>
|
|
|
|
<para><option>--with-perl</option>: build the PL/Perl server-side language.
|
|
</para>
|
|
|
|
<para><option>--with-python</option>: build the PL/Python server-side
|
|
language.</para>
|
|
|
|
<para><option>--with-tcl</option>: build the PL/Tcl server-side language.</para>
|
|
|
|
<para><command>groupadd ...</command>; <command>useradd ...</command>:
|
|
These commands add an unprivileged user and group to run the database
|
|
server.</para>
|
|
|
|
<para><command>createdb test; create table t1; insert into t1 values...;
|
|
select * from t1</command>: Create a database, add a table to it, insert
|
|
some rows into the table and select them to verify that the installation
|
|
is working properly.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring PostgreSQL</title>
|
|
|
|
<sect3 id="postgresql-config">
|
|
<title>Config Files</title>
|
|
|
|
<para><filename>$PGDATA/pg_ident.con</filename>,
|
|
<filename>$PGDATA/pg_hba.conf</filename> and
|
|
<filename>$PGDATA/postgresql.conf</filename></para>
|
|
|
|
<indexterm zone="postgresql postgresql-config">
|
|
<primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
|
|
</indexterm>
|
|
|
|
<indexterm zone="postgresql postgresql-config">
|
|
<primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
|
|
</indexterm>
|
|
|
|
<indexterm zone="postgresql postgresql-config">
|
|
<primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
|
|
</indexterm>
|
|
|
|
<para>The <envar>PGDATA</envar> environment variable is used to
|
|
distinguish database clusters from one another by setting it to
|
|
the value of the directory which contains the cluster desired.
|
|
The three configuration files exist in every <filename
|
|
class="directory">PGDATA/</filename> directory. Details on the
|
|
format of the files and the options that can be set in each can
|
|
be found in <ulink
|
|
url="file:///usr/share/doc/postgresql-&postgresql-version;/html/index.html"/>.</para>
|
|
|
|
</sect3>
|
|
|
|
<sect3 id="postgresql-init">
|
|
<title>Boot Script</title>
|
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
|
|
init script included in the
|
|
<xref linkend="bootscripts"/> package.</para>
|
|
|
|
<indexterm zone="postgresql postgresql-init">
|
|
<primary sortas="f-postgresql">postgresql</primary>
|
|
</indexterm>
|
|
|
|
<screen role="root"><userinput>make install-postgresql</userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
clusterdb, createdb, createlang, createuser, dropdb, droplang,
|
|
dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata,
|
|
pg_ctl, pg_dump, pg_dumpall, pg_isready, pg_receivexlog,
|
|
pg_recvlogical, pg_resetxlog, pg_restore, pltcl_delmod,
|
|
pltcl_listmod, pltcl_loadmod, postgres, postmaster (deprecated),
|
|
psql, reindexdb, vacuumdb, and optionally (in contrib/) oid2name,
|
|
pg_archivecleanup, pgbench, pg_standby, pg_test_fsync,
|
|
pg_test_timing, pg_upgrade, pg_xlogdump, vacuumlo, and many others
|
|
</seg>
|
|
<seg>
|
|
libecpg.{so,a}, libecpg_compat.{so,a}, libpgcommon.a, libpgport.a,
|
|
libpgtypes.{so,a}, libpq.{so,a}, various charset modules, and
|
|
optionally programming language modules under /usr/lib/postgresql
|
|
</seg>
|
|
<seg>
|
|
/usr/include/{libpq,postgresql},
|
|
/usr/lib/postgresql,
|
|
/usr/share/{doc/postgresql-&postgresql-version;,postgresql}, and
|
|
/srv/pgsql
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="clusterdb">
|
|
<term><command>clusterdb</command></term>
|
|
<listitem>
|
|
<para>is a utility for reclustering tables in a
|
|
<application>PostgreSQL</application> database.</para>
|
|
<indexterm zone="postgresql clusterdb">
|
|
<primary sortas="b-clusterdb">clusterdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="createdb">
|
|
<term><command>createdb</command></term>
|
|
<listitem>
|
|
<para> creates a new <application>PostgreSQL</application>
|
|
database.</para>
|
|
<indexterm zone="postgresql createdb">
|
|
<primary sortas="b-createdb">createdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="createlang">
|
|
<term><command>createlang</command></term>
|
|
<listitem>
|
|
<para>defines a new <application>PostgreSQL</application> procedural
|
|
language.</para>
|
|
<indexterm zone="postgresql createlang">
|
|
<primary sortas="b-createlang">createlang</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="createuser">
|
|
<term><command>createuser</command></term>
|
|
<listitem>
|
|
<para>defines a new <application>PostgreSQL</application>
|
|
user account.</para>
|
|
<indexterm zone="postgresql createuser">
|
|
<primary sortas="b-createuser">createuser</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="dropdb">
|
|
<term><command>dropdb</command></term>
|
|
<listitem>
|
|
<para>removes a <application>PostgreSQL</application> database.</para>
|
|
<indexterm zone="postgresql dropdb">
|
|
<primary sortas="b-dropdb">dropdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="droplang">
|
|
<term><command>droplang</command></term>
|
|
<listitem>
|
|
<para>removes a <application>PostgreSQL</application> procedural
|
|
language.</para>
|
|
<indexterm zone="postgresql droplang">
|
|
<primary sortas="b-droplang">droplang</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="dropuser">
|
|
<term><command>dropuser</command></term>
|
|
<listitem>
|
|
<para>removes a <application>PostgreSQL</application>
|
|
user account.</para>
|
|
<indexterm zone="postgresql dropuser">
|
|
<primary sortas="b-dropuser">dropuser</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="ecpg">
|
|
<term><command>ecpg</command></term>
|
|
<listitem>
|
|
<para>is the embedded SQL preprocessor.</para>
|
|
<indexterm zone="postgresql ecpg">
|
|
<primary sortas="b-ecpg">ecpg</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="initdb">
|
|
<term><command>initdb</command></term>
|
|
<listitem>
|
|
<para>creates a new database cluster.</para>
|
|
<indexterm zone="postgresql initdb">
|
|
<primary sortas="b-initdb">initdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="oid2name">
|
|
<term><command>oid2name</command></term>
|
|
<listitem>
|
|
<para>resolves OIDs (Object IDs) and file nodes in a PostgreSQL data
|
|
directory.</para>
|
|
<indexterm zone="postgresql oid2name">
|
|
<primary sortas="b-oid2name">oid2name</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_archivecleanup">
|
|
<term><command>pg_archivecleanup</command></term>
|
|
<listitem>
|
|
<para>clean up PostgreSQL WAL (write-ahead log) archive files.</para>
|
|
<indexterm zone="postgresql pg_archivecleanup">
|
|
<primary sortas="b-pg_archivecleanup">pg_archivecleanup</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_basebackup">
|
|
<term><command>pg_basebackup</command></term>
|
|
<listitem>
|
|
<para>takes base backups of a running
|
|
<application>PostgreSQL</application> cluster.</para>
|
|
<indexterm zone="postgresql pg_basebackup">
|
|
<primary sortas="b-pg_basebackup">pg_basebackup</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_config">
|
|
<term><command>pg_config</command></term>
|
|
<listitem>
|
|
<para>retrieves <application>PostgreSQL</application> version
|
|
information.</para>
|
|
<indexterm zone="postgresql pg_config">
|
|
<primary sortas="b-pg_config">pg_config</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_controldata">
|
|
<term><command>pg_controldata</command></term>
|
|
<listitem>
|
|
<para>returns information initialized during
|
|
<command>initdb</command>, such as the catalog version and server
|
|
locale.</para>
|
|
<indexterm zone="postgresql pg_controldata">
|
|
<primary sortas="b-pg_controldata">pg_controldata</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_ctl">
|
|
<term><command>pg_ctl</command></term>
|
|
<listitem>
|
|
<para>controls stopping and starting the database server.</para>
|
|
<indexterm zone="postgresql pg_ctl">
|
|
<primary sortas="b-pg_ctl">pg_ctl</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_dump">
|
|
<term><command>pg_dump</command></term>
|
|
<listitem>
|
|
<para>dumps database data and metadata into scripts which are used
|
|
to recreate the database.</para>
|
|
<indexterm zone="postgresql pg_dump">
|
|
<primary sortas="b-pg_dump">pg_dump</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_dumpall">
|
|
<term><command>pg_dumpall</command></term>
|
|
<listitem>
|
|
<para>recursively calls <command>pg_dump</command> for each
|
|
database in a cluster.</para>
|
|
<indexterm zone="postgresql pg_dumpall">
|
|
<primary sortas="b-pg_dumpall">pg_dumpall</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_isready">
|
|
<term><command>pg_isready</command></term>
|
|
<listitem>
|
|
<para>check the connection status of a PostgreSQL server.</para>
|
|
<indexterm zone="postgresql pg_isready">
|
|
<primary sortas="b-pg_isready">pg_isready</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_receivexlog">
|
|
<term><command>pg_receivexlog</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to stream transaction log from a running
|
|
PostgreSQL cluster.
|
|
</para>
|
|
<indexterm zone="postgresql pg_receivexlog">
|
|
<primary sortas="b-pg_receivexlog">pg_receivexlog</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_recvlogical">
|
|
<term><command>pg_recvlogical</command></term>
|
|
<listitem>
|
|
<para>controls PostgreSQL logical decoding streams.</para>
|
|
<indexterm zone="postgresql pg_recvlogical">
|
|
<primary sortas="b-pg_recvlogical">pg_recvlogical</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_resetxlog">
|
|
<term><command>pg_resetxlog</command></term>
|
|
<listitem>
|
|
<para>clears the write-ahead log and optionally resets some
|
|
fields in the <filename>pg_control</filename> file.</para>
|
|
<indexterm zone="postgresql pg_resetxlog">
|
|
<primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_restore">
|
|
<term><command>pg_restore</command></term>
|
|
<listitem>
|
|
<para>creates databases from dump files created by
|
|
<command>pg_dump</command>.</para>
|
|
<indexterm zone="postgresql pg_restore">
|
|
<primary sortas="b-pg_restore">pg_restore</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_standby">
|
|
<term><command>pg_standby</command></term>
|
|
<listitem>
|
|
<para>supports the creation of a PostgreSQL warm standby
|
|
server.</para>
|
|
<indexterm zone="postgresql pg_standby">
|
|
<primary sortas="b-pg_standby">pg_standby</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_test_fsync">
|
|
<term><command>pg_test_fsync</command></term>
|
|
<listitem>
|
|
<para>determine fastest wal_sync method for PostgreSQL.</para>
|
|
<indexterm zone="postgresql pg_test_fsync">
|
|
<primary sortas="b-pg_test_fsync">pg_test_fsync</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_test_timing">
|
|
<term><command>pg_test_timing</command></term>
|
|
<listitem>
|
|
<para>measure timing overhead.</para>
|
|
<indexterm zone="postgresql pg_test_timing">
|
|
<primary sortas="b-pg_test_timing">pg_test_timing</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_upgrade">
|
|
<term><command>pg_upgrade</command></term>
|
|
<listitem>
|
|
<para>upgrade a PostgreSQL server instance.</para>
|
|
<indexterm zone="postgresql pg_upgrade">
|
|
<primary sortas="b-pg_upgrade">pg_upgrade</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pg_xlogdump">
|
|
<term><command>pg_xlogdump</command></term>
|
|
<listitem>
|
|
<para>display a human-readable rendering of the write-ahead log of a
|
|
PostgreSQL database cluster.</para>
|
|
<indexterm zone="postgresql pg_xlogdump">
|
|
<primary sortas="b-pg_xlogdump">pg_xlogdump</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pgbench">
|
|
<term><command>pgbench</command></term>
|
|
<listitem>
|
|
<para>run a benchmark test on PostgreSQL.</para>
|
|
<indexterm zone="postgresql pgbench">
|
|
<primary sortas="b-pgbench">pgbench</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pltcl_delmod">
|
|
<term><command>pltcl_delmod</command></term>
|
|
<listitem>
|
|
<para>is a support script used to delete a module from a
|
|
PL/<application>Tcl</application> table. The command
|
|
requires the <ulink
|
|
url="http://flightaware.github.io/Pgtcl/">Pgtcl</ulink>
|
|
package to be installed also.</para>
|
|
<indexterm zone="postgresql pltcl_delmod">
|
|
<primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pltcl_listmod">
|
|
<term><command>pltcl_listmod</command></term>
|
|
<listitem>
|
|
<para>is a support script used to list the modules in a
|
|
PL/<application>Tcl</application> table. The command
|
|
requires the <ulink
|
|
url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
|
package to be installed also.</para>
|
|
<indexterm zone="postgresql pltcl_listmod">
|
|
<primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pltcl_loadmod">
|
|
<term><command>pltcl_loadmod</command></term>
|
|
<listitem>
|
|
<para>is a support script used to load a module into a
|
|
PL/<application>Tcl</application> table. The command
|
|
requires the <ulink
|
|
url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
|
package to be installed also.</para>
|
|
<indexterm zone="postgresql pltcl_loadmod">
|
|
<primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="postgres">
|
|
<term><command>postgres</command></term>
|
|
<listitem>
|
|
<para>is the PostgreSQL database server.</para>
|
|
<indexterm zone="postgresql postgres">
|
|
<primary sortas="b-postgres">postgres</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="postmaster">
|
|
<term><command>postmaster</command></term>
|
|
<listitem>
|
|
<para>(deprecated, a symlink to <command>postgres</command>) is a
|
|
multi-user database daemon.</para>
|
|
<indexterm zone="postgresql postmaster">
|
|
<primary sortas="b-postmaster">postmaster</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="psql">
|
|
<term><command>psql</command></term>
|
|
<listitem>
|
|
<para>is a console based database shell.</para>
|
|
<indexterm zone="postgresql psql">
|
|
<primary sortas="b-psql">psql</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="reindexdb">
|
|
<term><command>reindexdb</command></term>
|
|
<listitem>
|
|
<para>is a utility for rebuilding indexes in a database.</para>
|
|
<indexterm zone="postgresql reindexdb">
|
|
<primary sortas="b-reindexdb">reindexdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="vacuumdb">
|
|
<term><command>vacuumdb</command></term>
|
|
<listitem>
|
|
<para>compacts databases and generates statistics for the query
|
|
analyzer.</para>
|
|
<indexterm zone="postgresql vacuumdb">
|
|
<primary sortas="b-vacuumdb">vacuumdb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="vacuumlo">
|
|
<term><command>vacuumlo</command></term>
|
|
<listitem>
|
|
<para>remove orphaned large objects from a PostgreSQL database.</para>
|
|
<indexterm zone="postgresql vacuumlo">
|
|
<primary sortas="b-vacuumlo">vacuumlo</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libecpg">
|
|
<term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>contains functions to support embedded SQL in C programs.</para>
|
|
<indexterm zone="postgresql libecpg">
|
|
<primary sortas="c-libecpg">libecpg.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libecpg_compat">
|
|
<term><filename class='libraryfile'>libecpg_compat.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>is the ecpg compatibility library.</para>
|
|
<indexterm zone="postgresql libecpg_compat">
|
|
<primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libgport">
|
|
<term><filename class='libraryfile'>libgport.a</filename></term>
|
|
<listitem>
|
|
<para>is the port-specific subsystem of the Postgres backend.</para>
|
|
<indexterm zone="postgresql libgport">
|
|
<primary sortas="c-libgport">libgport.a</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libpgtypes">
|
|
<term><filename class='libraryfile'>libpgtypes.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>contains functions for dealing with Postgres data types.</para>
|
|
<indexterm zone="postgresql libpgtypes">
|
|
<primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libpq">
|
|
<term><filename class='libraryfile'>libpq.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>is the C programmer's API to Postgres.</para>
|
|
<indexterm zone="postgresql libpq">
|
|
<primary sortas="c-libpq">libpq.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|