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