[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 |
|
---|
[c6b192c] | 7 | <!ENTITY postgresql-download-http "https://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
[af33199] | 8 | <!-- <!ENTITY postgresql-download-ftp "ftp://ftp.postgresql.org/pub/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2"> -->
|
---|
| 9 | <!ENTITY postgresql-download-ftp " ">
|
---|
[51a7abb7] | 10 | <!ENTITY postgresql-md5sum "7bda65a37c46b8b2c1933d9d1cd677f2">
|
---|
[f1ae52ff] | 11 | <!ENTITY postgresql-size "20 MB">
|
---|
[33a1bb9] | 12 | <!ENTITY postgresql-buildsize "193 MB (add 38 MB for tests)">
|
---|
[eee261a] | 13 | <!ENTITY postgresql-time "0.6 SBU (with parallelism=4, add 0.1 SBU for tests)">
|
---|
[08254fc] | 14 | ]>
|
---|
| 15 |
|
---|
[458342f] | 16 | <sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
|
---|
[4ab91cd] | 17 | <?dbhtml filename="postgresql.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 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 |
|
---|
[4472e923] | 32 | <para>
|
---|
| 33 | <application>PostgreSQL</application> is an advanced
|
---|
| 34 | object-relational database management system (ORDBMS), derived
|
---|
| 35 | from the Berkeley Postgres database management system.
|
---|
| 36 | </para>
|
---|
[4ab91cd] | 37 |
|
---|
[1c4b4e9] | 38 | &lfs101_checked;
|
---|
[a1813d08] | 39 |
|
---|
[4ab91cd] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[4472e923] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&postgresql-download-http;"/>
|
---|
| 45 | </para>
|
---|
[4ab91cd] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[4472e923] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&postgresql-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[4ab91cd] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[4472e923] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &postgresql-md5sum;
|
---|
| 55 | </para>
|
---|
[4ab91cd] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[4472e923] | 58 | <para>
|
---|
| 59 | Download size: &postgresql-size;
|
---|
| 60 | </para>
|
---|
[4ab91cd] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[4472e923] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &postgresql-buildsize;
|
---|
| 65 | </para>
|
---|
[4ab91cd] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[4472e923] | 68 | <para>
|
---|
| 69 | Estimated build time: &postgresql-time;
|
---|
| 70 | </para>
|
---|
[4ab91cd] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a7ff037] | 77 | <para role="optional">
|
---|
| 78 | <xref linkend="python2"/>,
|
---|
[f4002c5] | 79 | <!-- <xref linkend="tcl"/>, -->
|
---|
[eee261a] | 80 | <xref linkend="icu"/>,
|
---|
[a7ff037] | 81 | <xref linkend="libxml2"/>,
|
---|
| 82 | <xref linkend="libxslt"/>,
|
---|
| 83 | <xref linkend="openldap"/>,
|
---|
| 84 | <xref linkend="linux-pam"/>,
|
---|
| 85 | <xref linkend="mitkrb"/> and
|
---|
[88057a1] | 86 | <ulink url="https://developer.apple.com/bonjour/">Bonjour</ulink>
|
---|
[a7ff037] | 87 | </para>
|
---|
[5aa1d3dd] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
|
---|
[a7ff037] | 90 | <para role="optional">
|
---|
[af1a5b1] | 91 | <xref linkend="fop"/>,
|
---|
[a7ff037] | 92 | <xref linkend="sgml-dtd"/>,
|
---|
| 93 | <xref linkend="docbook-dsssl"/>,
|
---|
[af1a5b1] | 94 | <xref linkend="docbook-utils"/>,
|
---|
[a7ff037] | 95 | <xref linkend="openjade"/>, and
|
---|
[4392a40] | 96 | <xref linkend="perl-sgmlspm"/>
|
---|
[a7ff037] | 97 | </para>
|
---|
[4ab91cd] | 98 |
|
---|
[3cb0c57] | 99 | <para condition="html" role="usernotes">User Notes:
|
---|
| 100 | <ulink url="&blfs-wiki;/postgresql"/></para>
|
---|
| 101 |
|
---|
[4ab91cd] | 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of PostgreSQL</title>
|
---|
| 106 |
|
---|
[8753831e] | 107 | <para>
|
---|
| 108 | For enhanced security, it is better to have a dedicated group and user
|
---|
| 109 | for running the PostgreSQL server. First, issue as the
|
---|
| 110 | <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <screen role="root"><userinput>groupadd -g 41 postgres &&
|
---|
| 114 | useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \
|
---|
| 115 | -u 41 postgres</userinput></screen>
|
---|
| 116 |
|
---|
[4472e923] | 117 | <note>
|
---|
| 118 | <para>
|
---|
| 119 | There are several configuration items that add additional
|
---|
| 120 | functionality with optional packages to
|
---|
| 121 | <application>PostgreSQL</application>. Use <command>./configure
|
---|
| 122 | --help</command> to see a list.
|
---|
| 123 | </para>
|
---|
| 124 | </note>
|
---|
[9b98149] | 125 |
|
---|
[4472e923] | 126 | <para>
|
---|
| 127 | Install <application>PostgreSQL</application> with the
|
---|
| 128 | following commands:
|
---|
| 129 | </para>
|
---|
[08254fc] | 130 |
|
---|
[62a6a73] | 131 | <screen><userinput>sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h &&
|
---|
[5be5fc08] | 132 |
|
---|
[faf325d] | 133 | ./configure --prefix=/usr \
|
---|
[e0cafc9] | 134 | --enable-thread-safety \
|
---|
| 135 | --docdir=/usr/share/doc/postgresql-&postgresql-version; &&
|
---|
[4ab91cd] | 136 | make</userinput></screen>
|
---|
[44e4099] | 137 |
|
---|
[4472e923] | 138 | <para>
|
---|
| 139 | There are a number of programs in the
|
---|
| 140 | <filename class="directory">contrib/</filename> directory. If you are
|
---|
| 141 | going to run this installation as a server and wish to build some of
|
---|
| 142 | them, enter <command>make -C contrib</command> or <command>make -C
|
---|
| 143 | contrib/<replaceable><SUBDIR-NAME></replaceable></command> for
|
---|
| 144 | each subdirectory.
|
---|
[782bf3d0] | 145 | </para>
|
---|
| 146 |
|
---|
[4472e923] | 147 | <para>
|
---|
| 148 | Tests must be run as an unprivileged user because they need to start a
|
---|
| 149 | temporary server and this is prevented as the root user. For the same
|
---|
| 150 | reason, you need to stop all PostgreSQL servers if any are running. If a
|
---|
| 151 | previous version of PostgreSQL is installed, it may be necessary to use
|
---|
| 152 | <command>--disable-rpath</command> with <command>configure</command> to
|
---|
| 153 | avoid failures, but <emphasis>installing the binaries created using this
|
---|
| 154 | switch is not recommended</emphasis>. To test the results, issue:
|
---|
| 155 | <command>make check</command>.
|
---|
| 156 | </para>
|
---|
[49a38a1] | 157 |
|
---|
[4472e923] | 158 | <para>
|
---|
| 159 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 160 | </para>
|
---|
[44e4099] | 161 |
|
---|
[e0cafc9] | 162 | <screen role="root"><userinput>make install &&
|
---|
[4f2c94fc] | 163 | make install-docs</userinput></screen>
|
---|
[11404f5] | 164 |
|
---|
[4472e923] | 165 | <para>
|
---|
| 166 | If you made any of the <filename class="directory">contrib/</filename>
|
---|
| 167 | programs, as the <systemitem class="username">root</systemitem> user:
|
---|
| 168 | </para>
|
---|
[782bf3d0] | 169 |
|
---|
[ca8c3c05] | 170 | <screen role="nodump"><userinput>make -C contrib/<replaceable><SUBDIR-NAME></replaceable> install</userinput></screen>
|
---|
[782bf3d0] | 171 |
|
---|
[4472e923] | 172 | <tip>
|
---|
| 173 | <para>
|
---|
| 174 | If you only intend to use <application>PostgreSQL</application> as a
|
---|
| 175 | client to connect to a server on another machine, your installation is
|
---|
| 176 | complete and you should not run the remaining commands.
|
---|
| 177 | </para>
|
---|
| 178 | </tip>
|
---|
[08254fc] | 179 |
|
---|
[4472e923] | 180 | <para>
|
---|
| 181 | Initialize a database cluster with the following commands issued by the
|
---|
| 182 | <systemitem class="username">root</systemitem> user:
|
---|
| 183 | </para>
|
---|
[08254fc] | 184 |
|
---|
[faf325d] | 185 | <screen role="root"><userinput>install -v -dm700 /srv/pgsql/data &&
|
---|
| 186 | install -v -dm755 /run/postgresql &&
|
---|
[fcafd3d] | 187 | chown -Rv postgres:postgres /srv/pgsql /run/postgresql</userinput></screen>
|
---|
| 188 |
|
---|
[4472e923] | 189 | <para>
|
---|
| 190 | Now, initialize the database as the <systemitem
|
---|
| 191 | class="username">root</systemitem> user:
|
---|
| 192 | </para>
|
---|
[fcafd3d] | 193 |
|
---|
[a7b7eceb] | 194 | <screen role="root"><userinput>su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
|
---|
[fcafd3d] | 195 |
|
---|
[4ab91cd] | 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | <sect2 role="commands">
|
---|
| 199 | <title>Command Explanations</title>
|
---|
| 200 |
|
---|
[faf325d] | 201 | <para>
|
---|
[eee261a] | 202 | <command>sed -i ...</command>: This sed changes the server socket location
|
---|
[faf325d] | 203 | from <filename class="directory">/tmp</filename> to
|
---|
[80454f5] | 204 | <filename class="directory">/run/postgresql</filename><!-- and fix up the
|
---|
[782bf3d0] | 205 | regression tests to use <filename class="directory">/tmp</filename> so
|
---|
[79f9638] | 206 | that they can work reliably-->.
|
---|
[faf325d] | 207 | </para>
|
---|
| 208 |
|
---|
[4472e923] | 209 | <para>
|
---|
| 210 | <parameter>--enable-thread-safety</parameter>: This switch makes the
|
---|
| 211 | client libraries thread-safe by allowing concurrent threads in
|
---|
| 212 | <filename class="libraryfile">libpq</filename> and ECPG programs to
|
---|
| 213 | safely control their private connection handles.
|
---|
| 214 | </para>
|
---|
[4ab91cd] | 215 |
|
---|
[4472e923] | 216 | <para>
|
---|
| 217 | <option>--with-openssl</option>: builds the package with support for
|
---|
| 218 | <application>OpenSSL</application> encrypted connections.
|
---|
| 219 | </para>
|
---|
[a2957b7] | 220 |
|
---|
[4472e923] | 221 | <para>
|
---|
| 222 | <option>--with-perl</option>: builds the PL/Perl server-side language.
|
---|
[76acb620] | 223 | </para>
|
---|
| 224 |
|
---|
[4472e923] | 225 | <para>
|
---|
| 226 | <option>--with-python</option>: builds the PL/Python server-side
|
---|
| 227 | language. Add PYTHON=/usr/bin/python2 for Python2 support, otherwise
|
---|
| 228 | Python3 is used by default.
|
---|
| 229 | </para>
|
---|
[76acb620] | 230 |
|
---|
[4472e923] | 231 | <para>
|
---|
| 232 | <option>--with-tcl</option>: builds the PL/Tcl server-side language.
|
---|
| 233 | </para>
|
---|
[76acb620] | 234 |
|
---|
[4ab91cd] | 235 | </sect2>
|
---|
| 236 |
|
---|
| 237 | <sect2 role="configuration">
|
---|
| 238 | <title>Configuring PostgreSQL</title>
|
---|
| 239 |
|
---|
| 240 | <sect3 id="postgresql-config">
|
---|
| 241 | <title>Config Files</title>
|
---|
| 242 |
|
---|
[4472e923] | 243 | <para>
|
---|
| 244 | <filename>$PGDATA/pg_ident.con</filename>,
|
---|
| 245 | <filename>$PGDATA/pg_hba.conf</filename>, and
|
---|
| 246 | <filename>$PGDATA/postgresql.conf</filename>
|
---|
| 247 | </para>
|
---|
[4ab91cd] | 248 |
|
---|
| 249 | <indexterm zone="postgresql postgresql-config">
|
---|
| 250 | <primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 |
|
---|
| 253 | <indexterm zone="postgresql postgresql-config">
|
---|
| 254 | <primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 |
|
---|
| 257 | <indexterm zone="postgresql postgresql-config">
|
---|
| 258 | <primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 |
|
---|
[4472e923] | 261 | <para>
|
---|
| 262 | The <envar>PGDATA</envar> environment variable is used to
|
---|
| 263 | distinguish database clusters from one another by setting it to
|
---|
| 264 | the value of the directory which contains the cluster desired.
|
---|
| 265 | The three configuration files exist in every <filename
|
---|
| 266 | class="directory">PGDATA/</filename> directory. Details on the
|
---|
| 267 | format of the files and the options that can be set in each can
|
---|
| 268 | be found in <filename>
|
---|
| 269 | /usr/share/doc/postgresql-&postgresql-version;/html/index.html</filename>.
|
---|
| 270 | </para>
|
---|
[4ab91cd] | 271 |
|
---|
| 272 | </sect3>
|
---|
| 273 |
|
---|
| 274 | <sect3 id="postgresql-init">
|
---|
[1258125] | 275 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 276 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 277 |
|
---|
[4472e923] | 278 | <para>
|
---|
| 279 | Install the
|
---|
| 280 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/postgresql</filename>
|
---|
| 281 | init script</phrase>
|
---|
| 282 | <phrase revision="systemd"><filename>postgresql.service</filename>
|
---|
| 283 | unit</phrase> included in the
|
---|
| 284 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
| 285 | <xref linkend="systemd-units" revision="systemd"/> package:
|
---|
| 286 | </para>
|
---|
[4ab91cd] | 287 |
|
---|
| 288 | <indexterm zone="postgresql postgresql-init">
|
---|
| 289 | <primary sortas="f-postgresql">postgresql</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 |
|
---|
| 292 | <screen role="root"><userinput>make install-postgresql</userinput></screen>
|
---|
| 293 |
|
---|
| 294 | </sect3>
|
---|
| 295 |
|
---|
[8753831e] | 296 | <sect3>
|
---|
| 297 | <title>Starting the PostgreSQL Server and Creating a Sample Database</title>
|
---|
| 298 |
|
---|
| 299 | <para>
|
---|
| 300 | The database server can be manually started with the following command
|
---|
| 301 | (as the <systemitem class="username">root</systemitem> user):
|
---|
| 302 | </para>
|
---|
| 303 |
|
---|
| 304 | <screen role="root"><userinput>su - postgres -c '/usr/bin/postgres -D /srv/pgsql/data > \
|
---|
| 305 | /srv/pgsql/data/logfile 2>&1 &'</userinput></screen>
|
---|
| 306 | <note>
|
---|
| 307 | <para>
|
---|
| 308 | If you are scripting this part, you should wait for the server to
|
---|
| 309 | start before going on, by adding for example
|
---|
| 310 | <command>sleep 2</command> after the above command.
|
---|
| 311 | </para>
|
---|
| 312 | </note>
|
---|
| 313 |
|
---|
| 314 | <para>
|
---|
| 315 | The instructions below show how to create a database, add a table to
|
---|
| 316 | it, insert some rows into the table and select them, to verify that the
|
---|
| 317 | installation is working properly. Still as user <systemitem
|
---|
| 318 | class="username">root</systemitem>, issue:
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
| 321 | <screen role="root"><userinput>su - postgres -c '/usr/bin/createdb test' &&
|
---|
| 322 | echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
|
---|
| 323 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 324 | echo "insert into t1 values ('Billy', 'NewYork');" \
|
---|
| 325 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 326 | echo "insert into t1 values ('Evanidus', 'Quebec');" \
|
---|
| 327 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 328 | echo "insert into t1 values ('Jesse', 'Ontario');" \
|
---|
| 329 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 330 | echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</userinput></screen>
|
---|
| 331 |
|
---|
| 332 | <para>
|
---|
[4472e923] | 333 | When you are done with testing, you can shut down the server, by
|
---|
| 334 | issuing as <systemitem class="username">root</systemitem>:
|
---|
[8753831e] | 335 | </para>
|
---|
| 336 |
|
---|
| 337 | <screen role="root"><userinput>su - postgres -c "/usr/bin/pg_ctl stop -D /srv/pgsql/data"</userinput></screen>
|
---|
| 338 |
|
---|
| 339 | </sect3>
|
---|
| 340 |
|
---|
[4ab91cd] | 341 | </sect2>
|
---|
| 342 |
|
---|
| 343 | <sect2 role="content">
|
---|
| 344 | <title>Contents</title>
|
---|
| 345 |
|
---|
| 346 | <segmentedlist>
|
---|
| 347 | <segtitle>Installed Programs</segtitle>
|
---|
| 348 | <segtitle>Installed Libraries</segtitle>
|
---|
| 349 | <segtitle>Installed Directories</segtitle>
|
---|
| 350 |
|
---|
| 351 | <seglistitem>
|
---|
[1a60731f] | 352 | <seg>
|
---|
[a82b5f44] | 353 | clusterdb, createdb, createuser, dropdb, dropuser,
|
---|
| 354 | ecpg, initdb, pg_archivecleanup, pg_basebackup, pg_checksums,
|
---|
[f1ae52ff] | 355 | pg_config, pg_controldata, pg_ctl, pg_dump, pg_dumpall, pg_isready,
|
---|
| 356 | pg_receivewal, pg_recvlogical, pg_resetwal, pg_restore, pg_rewind,
|
---|
[eee261a] | 357 | pg_test_fsync, pg_test_timing, pg_upgrade, pg_verifybackup,
|
---|
[a82b5f44] | 358 | pg_waldump, pgbench,
|
---|
[fa30d84] | 359 | postgres, postmaster (deprecated), psql, reindexdb, vacuumdb,
|
---|
| 360 | optionally, if Tcl support has been built, pltcl_delmod,
|
---|
| 361 | pltcl_listmod, pltcl_loadmod, and optionally (in contrib/) oid2name,
|
---|
| 362 | pg_standby, vacuumlo, and many others
|
---|
| 363 |
|
---|
[1a60731f] | 364 | </seg>
|
---|
| 365 | <seg>
|
---|
[f1ae52ff] | 366 | libecpg.{so,a}, libecpg_compat.{so,a}, libpgcommon.a,
|
---|
| 367 | libpgcommon_shlib.a, libpgfeutils.a, libpgport.a, libpgport_shlib.a,
|
---|
[a82b5f44] | 368 | libpgtypes.{so,a}, libpq.{so,a}, various charset modules and
|
---|
[1a60731f] | 369 | optionally programming language modules under /usr/lib/postgresql
|
---|
| 370 | </seg>
|
---|
| 371 | <seg>
|
---|
| 372 | /usr/include/{libpq,postgresql},
|
---|
| 373 | /usr/lib/postgresql,
|
---|
[9ad19294] | 374 | /usr/share/{doc/postgresql-&postgresql-version;,postgresql}, and
|
---|
[1a60731f] | 375 | /srv/pgsql
|
---|
| 376 | </seg>
|
---|
[4ab91cd] | 377 | </seglistitem>
|
---|
| 378 | </segmentedlist>
|
---|
| 379 |
|
---|
| 380 | <variablelist>
|
---|
| 381 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 382 | <?dbfo list-presentation="list"?>
|
---|
| 383 | <?dbhtml list-presentation="table"?>
|
---|
| 384 |
|
---|
| 385 | <varlistentry id="clusterdb">
|
---|
| 386 | <term><command>clusterdb</command></term>
|
---|
| 387 | <listitem>
|
---|
[4472e923] | 388 | <para>
|
---|
| 389 | is a utility for reclustering tables in a
|
---|
[4c24eb0a] | 390 | <application>PostgreSQL</application> database
|
---|
[4472e923] | 391 | </para>
|
---|
[4ab91cd] | 392 | <indexterm zone="postgresql clusterdb">
|
---|
| 393 | <primary sortas="b-clusterdb">clusterdb</primary>
|
---|
| 394 | </indexterm>
|
---|
| 395 | </listitem>
|
---|
| 396 | </varlistentry>
|
---|
| 397 |
|
---|
| 398 | <varlistentry id="createdb">
|
---|
| 399 | <term><command>createdb</command></term>
|
---|
| 400 | <listitem>
|
---|
[4472e923] | 401 | <para>
|
---|
| 402 | creates a new <application>PostgreSQL</application>
|
---|
[4c24eb0a] | 403 | database
|
---|
[4472e923] | 404 | </para>
|
---|
[4ab91cd] | 405 | <indexterm zone="postgresql createdb">
|
---|
| 406 | <primary sortas="b-createdb">createdb</primary>
|
---|
| 407 | </indexterm>
|
---|
| 408 | </listitem>
|
---|
| 409 | </varlistentry>
|
---|
[1aecb6f] | 410 |
|
---|
[4ab91cd] | 411 | <varlistentry id="createuser">
|
---|
| 412 | <term><command>createuser</command></term>
|
---|
| 413 | <listitem>
|
---|
[4472e923] | 414 | <para>
|
---|
| 415 | defines a new <application>PostgreSQL</application>
|
---|
[4c24eb0a] | 416 | user account
|
---|
[4472e923] | 417 | </para>
|
---|
[4ab91cd] | 418 | <indexterm zone="postgresql createuser">
|
---|
| 419 | <primary sortas="b-createuser">createuser</primary>
|
---|
| 420 | </indexterm>
|
---|
| 421 | </listitem>
|
---|
| 422 | </varlistentry>
|
---|
| 423 |
|
---|
| 424 | <varlistentry id="dropdb">
|
---|
| 425 | <term><command>dropdb</command></term>
|
---|
| 426 | <listitem>
|
---|
[4472e923] | 427 | <para>
|
---|
[4c24eb0a] | 428 | removes a <application>PostgreSQL</application> database
|
---|
[4472e923] | 429 | </para>
|
---|
[4ab91cd] | 430 | <indexterm zone="postgresql dropdb">
|
---|
| 431 | <primary sortas="b-dropdb">dropdb</primary>
|
---|
| 432 | </indexterm>
|
---|
| 433 | </listitem>
|
---|
| 434 | </varlistentry>
|
---|
| 435 |
|
---|
| 436 | <varlistentry id="dropuser">
|
---|
| 437 | <term><command>dropuser</command></term>
|
---|
| 438 | <listitem>
|
---|
[4472e923] | 439 | <para>
|
---|
[4c24eb0a] | 440 | removes a <application>PostgreSQL</application> user account
|
---|
[4472e923] | 441 | </para>
|
---|
[4ab91cd] | 442 | <indexterm zone="postgresql dropuser">
|
---|
| 443 | <primary sortas="b-dropuser">dropuser</primary>
|
---|
| 444 | </indexterm>
|
---|
| 445 | </listitem>
|
---|
| 446 | </varlistentry>
|
---|
| 447 |
|
---|
| 448 | <varlistentry id="ecpg">
|
---|
| 449 | <term><command>ecpg</command></term>
|
---|
| 450 | <listitem>
|
---|
[4472e923] | 451 | <para>
|
---|
[4c24eb0a] | 452 | is the embedded SQL preprocessor
|
---|
[4472e923] | 453 | </para>
|
---|
[4ab91cd] | 454 | <indexterm zone="postgresql ecpg">
|
---|
| 455 | <primary sortas="b-ecpg">ecpg</primary>
|
---|
| 456 | </indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="initdb">
|
---|
| 461 | <term><command>initdb</command></term>
|
---|
| 462 | <listitem>
|
---|
[4472e923] | 463 | <para>
|
---|
[4c24eb0a] | 464 | creates a new database cluster
|
---|
[4472e923] | 465 | </para>
|
---|
[4ab91cd] | 466 | <indexterm zone="postgresql initdb">
|
---|
| 467 | <primary sortas="b-initdb">initdb</primary>
|
---|
| 468 | </indexterm>
|
---|
| 469 | </listitem>
|
---|
| 470 | </varlistentry>
|
---|
| 471 |
|
---|
[782bf3d0] | 472 | <varlistentry id="oid2name">
|
---|
| 473 | <term><command>oid2name</command></term>
|
---|
| 474 | <listitem>
|
---|
[4472e923] | 475 | <para>
|
---|
| 476 | resolves OIDs (Object IDs) and file nodes in a PostgreSQL data
|
---|
[4c24eb0a] | 477 | directory
|
---|
[4472e923] | 478 | </para>
|
---|
[782bf3d0] | 479 | <indexterm zone="postgresql oid2name">
|
---|
| 480 | <primary sortas="b-oid2name">oid2name</primary>
|
---|
| 481 | </indexterm>
|
---|
| 482 | </listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
| 485 | <varlistentry id="pg_archivecleanup">
|
---|
| 486 | <term><command>pg_archivecleanup</command></term>
|
---|
| 487 | <listitem>
|
---|
[4472e923] | 488 | <para>
|
---|
[4c24eb0a] | 489 | cleans up PostgreSQL WAL (write-ahead log) archive files
|
---|
[4472e923] | 490 | </para>
|
---|
[782bf3d0] | 491 | <indexterm zone="postgresql pg_archivecleanup">
|
---|
| 492 | <primary sortas="b-pg_archivecleanup">pg_archivecleanup</primary>
|
---|
| 493 | </indexterm>
|
---|
| 494 | </listitem>
|
---|
| 495 | </varlistentry>
|
---|
| 496 |
|
---|
[a2957b7] | 497 | <varlistentry id="pg_basebackup">
|
---|
| 498 | <term><command>pg_basebackup</command></term>
|
---|
[4ab91cd] | 499 | <listitem>
|
---|
[4472e923] | 500 | <para>
|
---|
| 501 | takes base backups of a running
|
---|
[4c24eb0a] | 502 | <application>PostgreSQL</application> cluster
|
---|
[4472e923] | 503 | </para>
|
---|
[a2957b7] | 504 | <indexterm zone="postgresql pg_basebackup">
|
---|
| 505 | <primary sortas="b-pg_basebackup">pg_basebackup</primary>
|
---|
[4ab91cd] | 506 | </indexterm>
|
---|
| 507 | </listitem>
|
---|
| 508 | </varlistentry>
|
---|
| 509 |
|
---|
[f1ae52ff] | 510 | <varlistentry id="pg_checksums">
|
---|
| 511 | <term><command>pg_checksums</command></term>
|
---|
| 512 | <listitem>
|
---|
| 513 | <para>
|
---|
| 514 | enables, disables, or checks data checksums in a
|
---|
[4c24eb0a] | 515 | <application>PostgreSQL</application> database cluster
|
---|
[f1ae52ff] | 516 | </para>
|
---|
| 517 | <indexterm zone="postgresql pg_checksums">
|
---|
| 518 | <primary sortas="b-pg_checksums">pg_checksums</primary>
|
---|
| 519 | </indexterm>
|
---|
| 520 | </listitem>
|
---|
| 521 | </varlistentry>
|
---|
| 522 |
|
---|
[4ab91cd] | 523 | <varlistentry id="pg_config">
|
---|
| 524 | <term><command>pg_config</command></term>
|
---|
| 525 | <listitem>
|
---|
[4472e923] | 526 | <para>
|
---|
| 527 | retrieves <application>PostgreSQL</application> version
|
---|
[4c24eb0a] | 528 | information
|
---|
[4472e923] | 529 | </para>
|
---|
[4ab91cd] | 530 | <indexterm zone="postgresql pg_config">
|
---|
| 531 | <primary sortas="b-pg_config">pg_config</primary>
|
---|
| 532 | </indexterm>
|
---|
| 533 | </listitem>
|
---|
| 534 | </varlistentry>
|
---|
| 535 |
|
---|
| 536 | <varlistentry id="pg_controldata">
|
---|
| 537 | <term><command>pg_controldata</command></term>
|
---|
| 538 | <listitem>
|
---|
[4472e923] | 539 | <para>
|
---|
| 540 | returns information initialized during <command>initdb</command>,
|
---|
[4c24eb0a] | 541 | such as the catalog version and server locale
|
---|
[4472e923] | 542 | </para>
|
---|
[4ab91cd] | 543 | <indexterm zone="postgresql pg_controldata">
|
---|
| 544 | <primary sortas="b-pg_controldata">pg_controldata</primary>
|
---|
| 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
| 548 |
|
---|
| 549 | <varlistentry id="pg_ctl">
|
---|
| 550 | <term><command>pg_ctl</command></term>
|
---|
| 551 | <listitem>
|
---|
[4472e923] | 552 | <para>
|
---|
[4c24eb0a] | 553 | controls stopping and starting the database server
|
---|
[4472e923] | 554 | </para>
|
---|
[4ab91cd] | 555 | <indexterm zone="postgresql pg_ctl">
|
---|
| 556 | <primary sortas="b-pg_ctl">pg_ctl</primary>
|
---|
| 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
| 561 | <varlistentry id="pg_dump">
|
---|
| 562 | <term><command>pg_dump</command></term>
|
---|
| 563 | <listitem>
|
---|
[4472e923] | 564 | <para>
|
---|
| 565 | dumps database data and metadata into scripts which are used
|
---|
[4c24eb0a] | 566 | to recreate the database
|
---|
[4472e923] | 567 | </para>
|
---|
[4ab91cd] | 568 | <indexterm zone="postgresql pg_dump">
|
---|
| 569 | <primary sortas="b-pg_dump">pg_dump</primary>
|
---|
| 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
| 574 | <varlistentry id="pg_dumpall">
|
---|
| 575 | <term><command>pg_dumpall</command></term>
|
---|
| 576 | <listitem>
|
---|
[4472e923] | 577 | <para>
|
---|
| 578 | recursively calls <command>pg_dump</command> for each
|
---|
[4c24eb0a] | 579 | database in a cluster
|
---|
[4472e923] | 580 | </para>
|
---|
[4ab91cd] | 581 | <indexterm zone="postgresql pg_dumpall">
|
---|
| 582 | <primary sortas="b-pg_dumpall">pg_dumpall</primary>
|
---|
| 583 | </indexterm>
|
---|
| 584 | </listitem>
|
---|
| 585 | </varlistentry>
|
---|
| 586 |
|
---|
[782bf3d0] | 587 | <varlistentry id="pg_isready">
|
---|
| 588 | <term><command>pg_isready</command></term>
|
---|
| 589 | <listitem>
|
---|
[4472e923] | 590 | <para>
|
---|
[4c24eb0a] | 591 | checks the connection status of a PostgreSQL server
|
---|
[4472e923] | 592 | </para>
|
---|
[782bf3d0] | 593 | <indexterm zone="postgresql pg_isready">
|
---|
| 594 | <primary sortas="b-pg_isready">pg_isready</primary>
|
---|
| 595 | </indexterm>
|
---|
| 596 | </listitem>
|
---|
| 597 | </varlistentry>
|
---|
| 598 |
|
---|
[1aecb6f] | 599 | <varlistentry id="pg_receivewal">
|
---|
| 600 | <term><command>pg_receivewal</command></term>
|
---|
[298fee30] | 601 | <listitem>
|
---|
| 602 | <para>
|
---|
[4c24eb0a] | 603 | is used to stream write-ahead logs from a PostgreSQL server
|
---|
[298fee30] | 604 | </para>
|
---|
[1aecb6f] | 605 | <indexterm zone="postgresql pg_receivewal">
|
---|
| 606 | <primary sortas="b-pg_receivewal">pg_receivewal</primary>
|
---|
[298fee30] | 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
[0f23f29] | 611 | <varlistentry id="pg_recvlogical">
|
---|
| 612 | <term><command>pg_recvlogical</command></term>
|
---|
| 613 | <listitem>
|
---|
[4472e923] | 614 | <para>
|
---|
[4c24eb0a] | 615 | controls PostgreSQL logical decoding streams
|
---|
[4472e923] | 616 | </para>
|
---|
[0f23f29] | 617 | <indexterm zone="postgresql pg_recvlogical">
|
---|
| 618 | <primary sortas="b-pg_recvlogical">pg_recvlogical</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
[1aecb6f] | 623 | <varlistentry id="pg_resetwal">
|
---|
| 624 | <term><command>pg_resetwal</command></term>
|
---|
[4ab91cd] | 625 | <listitem>
|
---|
[4472e923] | 626 | <para>
|
---|
| 627 | resets the write-ahead log and other control information
|
---|
[4c24eb0a] | 628 | of a PostgreSQL database cluster
|
---|
[4472e923] | 629 | </para>
|
---|
[1aecb6f] | 630 | <indexterm zone="postgresql pg_resetwal">
|
---|
| 631 | <primary sortas="b-pg_resetwal">pg_resetwal</primary>
|
---|
[4ab91cd] | 632 | </indexterm>
|
---|
| 633 | </listitem>
|
---|
| 634 | </varlistentry>
|
---|
| 635 |
|
---|
| 636 | <varlistentry id="pg_restore">
|
---|
| 637 | <term><command>pg_restore</command></term>
|
---|
| 638 | <listitem>
|
---|
[4472e923] | 639 | <para>
|
---|
| 640 | creates databases from dump files created by
|
---|
[4c24eb0a] | 641 | <command>pg_dump</command>
|
---|
[4472e923] | 642 | </para>
|
---|
[4ab91cd] | 643 | <indexterm zone="postgresql pg_restore">
|
---|
| 644 | <primary sortas="b-pg_restore">pg_restore</primary>
|
---|
| 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
[edccd1f8] | 649 | <varlistentry id="pg_rewind">
|
---|
| 650 | <term><command>pg_rewind</command></term>
|
---|
| 651 | <listitem>
|
---|
[4472e923] | 652 | <para>
|
---|
| 653 | synchronizes a PostgreSQL data directory with another data
|
---|
[4c24eb0a] | 654 | directory that was forked from the first one
|
---|
[4472e923] | 655 | </para>
|
---|
[edccd1f8] | 656 | <indexterm zone="postgresql pg_rewind">
|
---|
| 657 | <primary sortas="b-pg_rewind">pg_rewind</primary>
|
---|
| 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
[782bf3d0] | 662 | <varlistentry id="pg_standby">
|
---|
| 663 | <term><command>pg_standby</command></term>
|
---|
| 664 | <listitem>
|
---|
[4472e923] | 665 | <para>
|
---|
[4c24eb0a] | 666 | supports the creation of a PostgreSQL warm standby server
|
---|
[4472e923] | 667 | </para>
|
---|
[782bf3d0] | 668 | <indexterm zone="postgresql pg_standby">
|
---|
| 669 | <primary sortas="b-pg_standby">pg_standby</primary>
|
---|
| 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
| 673 |
|
---|
| 674 | <varlistentry id="pg_test_fsync">
|
---|
| 675 | <term><command>pg_test_fsync</command></term>
|
---|
| 676 | <listitem>
|
---|
[4472e923] | 677 | <para>
|
---|
[4c24eb0a] | 678 | determines the fastest wal_sync method for PostgreSQL
|
---|
[4472e923] | 679 | </para>
|
---|
[782bf3d0] | 680 | <indexterm zone="postgresql pg_test_fsync">
|
---|
| 681 | <primary sortas="b-pg_test_fsync">pg_test_fsync</primary>
|
---|
| 682 | </indexterm>
|
---|
| 683 | </listitem>
|
---|
| 684 | </varlistentry>
|
---|
| 685 |
|
---|
| 686 | <varlistentry id="pg_test_timing">
|
---|
| 687 | <term><command>pg_test_timing</command></term>
|
---|
| 688 | <listitem>
|
---|
[4472e923] | 689 | <para>
|
---|
[4c24eb0a] | 690 | measures timing overhead
|
---|
[4472e923] | 691 | </para>
|
---|
[782bf3d0] | 692 | <indexterm zone="postgresql pg_test_timing">
|
---|
| 693 | <primary sortas="b-pg_test_timing">pg_test_timing</primary>
|
---|
| 694 | </indexterm>
|
---|
| 695 | </listitem>
|
---|
| 696 | </varlistentry>
|
---|
| 697 |
|
---|
| 698 | <varlistentry id="pg_upgrade">
|
---|
| 699 | <term><command>pg_upgrade</command></term>
|
---|
| 700 | <listitem>
|
---|
[4472e923] | 701 | <para>
|
---|
[4c24eb0a] | 702 | upgrades a PostgreSQL server instance
|
---|
[4472e923] | 703 | </para>
|
---|
[782bf3d0] | 704 | <indexterm zone="postgresql pg_upgrade">
|
---|
| 705 | <primary sortas="b-pg_upgrade">pg_upgrade</primary>
|
---|
| 706 | </indexterm>
|
---|
| 707 | </listitem>
|
---|
| 708 | </varlistentry>
|
---|
| 709 |
|
---|
[a82b5f44] | 710 | <varlistentry id="pg_verifybackup">
|
---|
| 711 | <term><command>pg_verifybackup</command></term>
|
---|
| 712 | <listitem>
|
---|
| 713 | <para>
|
---|
[4c24eb0a] | 714 | verifies the integrity of a base backup of a PostgreSQL cluster
|
---|
[a82b5f44] | 715 | </para>
|
---|
| 716 | <indexterm zone="postgresql pg_verifybackup">
|
---|
| 717 | <primary sortas="b-pg_upgrade">pg_verifybackup</primary>
|
---|
| 718 | </indexterm>
|
---|
| 719 | </listitem>
|
---|
| 720 | </varlistentry>
|
---|
| 721 |
|
---|
[1aecb6f] | 722 | <varlistentry id="pg_waldump">
|
---|
| 723 | <term><command>pg_waldump</command></term>
|
---|
[782bf3d0] | 724 | <listitem>
|
---|
[4472e923] | 725 | <para>
|
---|
| 726 | displays a human-readable rendering of the write-ahead log of a
|
---|
[4c24eb0a] | 727 | PostgreSQL database cluster
|
---|
[4472e923] | 728 | </para>
|
---|
[1aecb6f] | 729 | <indexterm zone="postgresql pg_waldump">
|
---|
| 730 | <primary sortas="b-pg_waldump">pg_waldump</primary>
|
---|
[782bf3d0] | 731 | </indexterm>
|
---|
| 732 | </listitem>
|
---|
| 733 | </varlistentry>
|
---|
| 734 |
|
---|
| 735 | <varlistentry id="pgbench">
|
---|
| 736 | <term><command>pgbench</command></term>
|
---|
| 737 | <listitem>
|
---|
[4472e923] | 738 | <para>
|
---|
[4c24eb0a] | 739 | runs a benchmark test on PostgreSQL
|
---|
[4472e923] | 740 | </para>
|
---|
[782bf3d0] | 741 | <indexterm zone="postgresql pgbench">
|
---|
| 742 | <primary sortas="b-pgbench">pgbench</primary>
|
---|
| 743 | </indexterm>
|
---|
| 744 | </listitem>
|
---|
| 745 | </varlistentry>
|
---|
| 746 |
|
---|
[4ab91cd] | 747 | <varlistentry id="pltcl_delmod">
|
---|
| 748 | <term><command>pltcl_delmod</command></term>
|
---|
| 749 | <listitem>
|
---|
[4472e923] | 750 | <para>
|
---|
| 751 | is a support script used to delete a module from a
|
---|
| 752 | PL/<application>Tcl</application> table. The command
|
---|
[4c24eb0a] | 753 | requires the
|
---|
| 754 | <ulink url="http://flightaware.github.io/Pgtcl/">Pgtcl</ulink>
|
---|
| 755 | package to be installed
|
---|
[4472e923] | 756 | </para>
|
---|
[4ab91cd] | 757 | <indexterm zone="postgresql pltcl_delmod">
|
---|
| 758 | <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
|
---|
| 759 | </indexterm>
|
---|
| 760 | </listitem>
|
---|
| 761 | </varlistentry>
|
---|
| 762 |
|
---|
| 763 | <varlistentry id="pltcl_listmod">
|
---|
| 764 | <term><command>pltcl_listmod</command></term>
|
---|
| 765 | <listitem>
|
---|
[4472e923] | 766 | <para>
|
---|
| 767 | is a support script used to list the modules in a
|
---|
| 768 | PL/<application>Tcl</application> table. The command
|
---|
[4c24eb0a] | 769 | requires the
|
---|
| 770 | <ulink url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
| 771 | package to be installed
|
---|
[4472e923] | 772 | </para>
|
---|
[4ab91cd] | 773 | <indexterm zone="postgresql pltcl_listmod">
|
---|
| 774 | <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
|
---|
| 775 | </indexterm>
|
---|
| 776 | </listitem>
|
---|
| 777 | </varlistentry>
|
---|
| 778 |
|
---|
| 779 | <varlistentry id="pltcl_loadmod">
|
---|
| 780 | <term><command>pltcl_loadmod</command></term>
|
---|
| 781 | <listitem>
|
---|
[4472e923] | 782 | <para>
|
---|
| 783 | is a support script used to load a module into a
|
---|
| 784 | PL/<application>Tcl</application> table. The command
|
---|
[4c24eb0a] | 785 | requires the
|
---|
| 786 | <ulink url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
| 787 | package to be installed too
|
---|
[4472e923] | 788 | </para>
|
---|
[4ab91cd] | 789 | <indexterm zone="postgresql pltcl_loadmod">
|
---|
| 790 | <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
|
---|
| 791 | </indexterm>
|
---|
| 792 | </listitem>
|
---|
| 793 | </varlistentry>
|
---|
| 794 |
|
---|
| 795 | <varlistentry id="postgres">
|
---|
| 796 | <term><command>postgres</command></term>
|
---|
| 797 | <listitem>
|
---|
[4472e923] | 798 | <para>
|
---|
[4c24eb0a] | 799 | is the PostgreSQL database server
|
---|
[4472e923] | 800 | </para>
|
---|
[4ab91cd] | 801 | <indexterm zone="postgresql postgres">
|
---|
| 802 | <primary sortas="b-postgres">postgres</primary>
|
---|
| 803 | </indexterm>
|
---|
| 804 | </listitem>
|
---|
| 805 | </varlistentry>
|
---|
| 806 |
|
---|
| 807 | <varlistentry id="postmaster">
|
---|
| 808 | <term><command>postmaster</command></term>
|
---|
| 809 | <listitem>
|
---|
[4472e923] | 810 | <para>
|
---|
| 811 | (deprecated, a symlink to <command>postgres</command>) is a
|
---|
[4c24eb0a] | 812 | multi-user database daemon
|
---|
[4472e923] | 813 | </para>
|
---|
[4ab91cd] | 814 | <indexterm zone="postgresql postmaster">
|
---|
| 815 | <primary sortas="b-postmaster">postmaster</primary>
|
---|
| 816 | </indexterm>
|
---|
| 817 | </listitem>
|
---|
| 818 | </varlistentry>
|
---|
| 819 |
|
---|
| 820 | <varlistentry id="psql">
|
---|
| 821 | <term><command>psql</command></term>
|
---|
| 822 | <listitem>
|
---|
[4472e923] | 823 | <para>
|
---|
[4c24eb0a] | 824 | is a console based database shell
|
---|
[4472e923] | 825 | </para>
|
---|
[4ab91cd] | 826 | <indexterm zone="postgresql psql">
|
---|
| 827 | <primary sortas="b-psql">psql</primary>
|
---|
| 828 | </indexterm>
|
---|
| 829 | </listitem>
|
---|
| 830 | </varlistentry>
|
---|
| 831 |
|
---|
[aaeca54] | 832 | <varlistentry id="reindexdb">
|
---|
| 833 | <term><command>reindexdb</command></term>
|
---|
| 834 | <listitem>
|
---|
[4472e923] | 835 | <para>
|
---|
[4c24eb0a] | 836 | is a utility for rebuilding indexes in a database
|
---|
[4472e923] | 837 | </para>
|
---|
[621a551] | 838 | <indexterm zone="postgresql reindexdb">
|
---|
| 839 | <primary sortas="b-reindexdb">reindexdb</primary>
|
---|
[aaeca54] | 840 | </indexterm>
|
---|
| 841 | </listitem>
|
---|
| 842 | </varlistentry>
|
---|
| 843 |
|
---|
[4ab91cd] | 844 | <varlistentry id="vacuumdb">
|
---|
| 845 | <term><command>vacuumdb</command></term>
|
---|
| 846 | <listitem>
|
---|
[4472e923] | 847 | <para>
|
---|
[4c24eb0a] | 848 | compacts databases and generates statistics for the query analyzer
|
---|
[4472e923] | 849 | </para>
|
---|
[4ab91cd] | 850 | <indexterm zone="postgresql vacuumdb">
|
---|
| 851 | <primary sortas="b-vacuumdb">vacuumdb</primary>
|
---|
| 852 | </indexterm>
|
---|
[782bf3d0] | 853 | </listitem>
|
---|
| 854 | </varlistentry>
|
---|
| 855 |
|
---|
| 856 | <varlistentry id="vacuumlo">
|
---|
| 857 | <term><command>vacuumlo</command></term>
|
---|
| 858 | <listitem>
|
---|
[4472e923] | 859 | <para>
|
---|
[4c24eb0a] | 860 | removes orphaned large objects from a PostgreSQL database
|
---|
[4472e923] | 861 | </para>
|
---|
[782bf3d0] | 862 | <indexterm zone="postgresql vacuumlo">
|
---|
| 863 | <primary sortas="b-vacuumlo">vacuumlo</primary>
|
---|
| 864 | </indexterm>
|
---|
[4ab91cd] | 865 | </listitem>
|
---|
| 866 | </varlistentry>
|
---|
| 867 |
|
---|
[76acb620] | 868 | <varlistentry id="libecpg">
|
---|
[4c24eb0a] | 869 | <term><filename class="libraryfile">libecpg.{so,a}</filename></term>
|
---|
[76acb620] | 870 | <listitem>
|
---|
[4472e923] | 871 | <para>
|
---|
[4c24eb0a] | 872 | contains functions to support embedded SQL in C programs
|
---|
[4472e923] | 873 | </para>
|
---|
[76acb620] | 874 | <indexterm zone="postgresql libecpg">
|
---|
| 875 | <primary sortas="c-libecpg">libecpg.{so,a}</primary>
|
---|
| 876 | </indexterm>
|
---|
| 877 | </listitem>
|
---|
| 878 | </varlistentry>
|
---|
| 879 |
|
---|
| 880 | <varlistentry id="libecpg_compat">
|
---|
[4c24eb0a] | 881 | <term><filename class="libraryfile">libecpg_compat.{so,a}</filename></term>
|
---|
[76acb620] | 882 | <listitem>
|
---|
[4472e923] | 883 | <para>
|
---|
[4c24eb0a] | 884 | is the ecpg compatibility library
|
---|
[4472e923] | 885 | </para>
|
---|
[76acb620] | 886 | <indexterm zone="postgresql libecpg_compat">
|
---|
| 887 | <primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
|
---|
| 888 | </indexterm>
|
---|
| 889 | </listitem>
|
---|
| 890 | </varlistentry>
|
---|
| 891 |
|
---|
| 892 | <varlistentry id="libgport">
|
---|
[4c24eb0a] | 893 | <term><filename class="libraryfile">libgport.a</filename></term>
|
---|
[76acb620] | 894 | <listitem>
|
---|
[4472e923] | 895 | <para>
|
---|
[4c24eb0a] | 896 | is the port-specific subsystem of the Postgres backend
|
---|
[4472e923] | 897 | </para>
|
---|
[76acb620] | 898 | <indexterm zone="postgresql libgport">
|
---|
| 899 | <primary sortas="c-libgport">libgport.a</primary>
|
---|
| 900 | </indexterm>
|
---|
| 901 | </listitem>
|
---|
| 902 | </varlistentry>
|
---|
| 903 |
|
---|
| 904 | <varlistentry id="libpgtypes">
|
---|
[4c24eb0a] | 905 | <term><filename class="libraryfile">libpgtypes.{so,a}</filename></term>
|
---|
[76acb620] | 906 | <listitem>
|
---|
[4472e923] | 907 | <para>
|
---|
[4c24eb0a] | 908 | contains functions for dealing with Postgres data types
|
---|
[4472e923] | 909 | </para>
|
---|
[76acb620] | 910 | <indexterm zone="postgresql libpgtypes">
|
---|
| 911 | <primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
|
---|
| 912 | </indexterm>
|
---|
| 913 | </listitem>
|
---|
| 914 | </varlistentry>
|
---|
| 915 |
|
---|
| 916 | <varlistentry id="libpq">
|
---|
[4c24eb0a] | 917 | <term><filename class="libraryfile">libpq.{so,a}</filename></term>
|
---|
[76acb620] | 918 | <listitem>
|
---|
[4472e923] | 919 | <para>
|
---|
[4c24eb0a] | 920 | is the C programmer's API to Postgres
|
---|
[4472e923] | 921 | </para>
|
---|
[76acb620] | 922 | <indexterm zone="postgresql libpq">
|
---|
| 923 | <primary sortas="c-libpq">libpq.{so,a}</primary>
|
---|
| 924 | </indexterm>
|
---|
| 925 | </listitem>
|
---|
| 926 | </varlistentry>
|
---|
| 927 |
|
---|
[4ab91cd] | 928 | </variablelist>
|
---|
| 929 |
|
---|
| 930 | </sect2>
|
---|
[458342f] | 931 |
|
---|
| 932 | </sect1>
|
---|