[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[08254fc] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f62b122b] | 7 | <!ENTITY postgresql-download-http "http://gd.tuwien.ac.at/db/postgresql/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
| 8 | <!ENTITY postgresql-download-ftp "ftp://ftp.fr.postgresql.org/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
[44e4099] | 9 | <!ENTITY postgresql-md5sum "075ac81c865b0af865459260bf1ca890">
|
---|
| 10 | <!ENTITY postgresql-size "11.0 MB">
|
---|
| 11 | <!ENTITY postgresql-buildsize "259 MB">
|
---|
| 12 | <!ENTITY postgresql-time "1.34 SBU">
|
---|
[08254fc] | 13 | ]>
|
---|
| 14 |
|
---|
[458342f] | 15 | <sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="postgresql.html"?>
|
---|
[458342f] | 21 | <title>Postgre<acronym>SQL</acronym>-&postgresql-version;</title>
|
---|
[44e4099] | 22 | <indexterm zone="postgresql">
|
---|
| 23 | <primary sortas="a-PostgreSQL">PostgreSQL</primary></indexterm>
|
---|
[458342f] | 24 |
|
---|
[08254fc] | 25 | <sect2>
|
---|
[44e4099] | 26 | <title>Introduction to
|
---|
| 27 | <application>Postgre<acronym>SQL</acronym></application></title>
|
---|
[08254fc] | 28 |
|
---|
[78d0e3c] | 29 | <para><application>Postgre<acronym>SQL</acronym></application> is an advanced
|
---|
| 30 | object-relational database management system (<acronym>ORDBMS</acronym>),
|
---|
| 31 | derived from the Berkeley Postgres database management system.</para>
|
---|
[08254fc] | 32 |
|
---|
| 33 | <sect3><title>Package information</title>
|
---|
| 34 | <itemizedlist spacing='compact'>
|
---|
[f62b122b] | 35 | <listitem><para>Download (HTTP):
|
---|
| 36 | <ulink url="&postgresql-download-http;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download (FTP):
|
---|
| 38 | <ulink url="&postgresql-download-ftp;"/></para></listitem>
|
---|
[dc2f5ad] | 39 | <listitem><para>Download MD5 sum: &postgresql-md5sum;</para></listitem>
|
---|
[08254fc] | 40 | <listitem><para>Download size: &postgresql-size;</para></listitem>
|
---|
[f62b122b] | 41 | <listitem><para>Estimated disk space required:
|
---|
| 42 | &postgresql-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time:
|
---|
| 44 | &postgresql-time;</para></listitem></itemizedlist>
|
---|
[08254fc] | 45 | </sect3>
|
---|
| 46 |
|
---|
[44e4099] | 47 | <!--
|
---|
[9aeb405d] | 48 | <sect3><title>Additional downloads</title>
|
---|
| 49 | <itemizedlist spacing='compact'>
|
---|
| 50 | <listitem><para>Required patch: <ulink
|
---|
| 51 | url="&patch-root;/postgresql-&postgresql-version;-dsssl_fix-1.patch"/></para>
|
---|
| 52 | </listitem></itemizedlist>
|
---|
| 53 | </sect3>
|
---|
[44e4099] | 54 | -->
|
---|
[9aeb405d] | 55 |
|
---|
[78d0e3c] | 56 | <sect3><title><application>Postgre<acronym>SQL</acronym></application>
|
---|
| 57 | dependencies</title>
|
---|
[08254fc] | 58 | <sect4><title>Optional</title>
|
---|
[f62b122b] | 59 | <para><xref linkend="python"/>,
|
---|
[08254fc] | 60 | <xref linkend="tcl"/>,
|
---|
[cef3a2f] | 61 | <xref linkend="openssl"/>,
|
---|
[08254fc] | 62 | <xref linkend="Linux_PAM"/>,
|
---|
[44e4099] | 63 | <xref linkend="sgml-dtd"/>,
|
---|
[9aeb405d] | 64 | <xref linkend="docbook-dsssl"/>,
|
---|
[78d0e3c] | 65 | <xref linkend="openjade"/>,
|
---|
| 66 | <xref linkend="perl-modules"/>: SGMLSpm-&SGMLSpm-version;,
|
---|
[08254fc] | 67 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
[44e4099] | 68 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>, and
|
---|
[f62b122b] | 69 | <ulink url="http://rendezvous.sourceforge.net/">Rendezvous</ulink></para>
|
---|
| 70 | </sect4>
|
---|
[08254fc] | 71 | </sect3>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | <sect2>
|
---|
[44e4099] | 76 | <title>Installation of
|
---|
| 77 | <application>Postgre<acronym>SQL</acronym></application></title>
|
---|
[08254fc] | 78 |
|
---|
[9aeb405d] | 79 | <para>In order for <command>configure</command> to properly discover
|
---|
| 80 | <application>Docbook <acronym>SGML</acronym>
|
---|
[44e4099] | 81 | <acronym>DTD</acronym></application>, you may need to remove
|
---|
[9aeb405d] | 82 | <application>OpenSP</application> catalog definitions from the system
|
---|
| 83 | <acronym>SGML</acronym> catalogs. Use the following command before building
|
---|
| 84 | the package to accomplish this:</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput><command>sed -i.orig \
|
---|
| 87 | -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
|
---|
| 88 | /etc/sgml/catalog \
|
---|
| 89 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 90 |
|
---|
[78d0e3c] | 91 | <para>Install <application>Postgre<acronym>SQL</acronym></application> with the
|
---|
| 92 | following commands: </para>
|
---|
[08254fc] | 93 |
|
---|
[44e4099] | 94 | <screen><userinput><command>sed -i \
|
---|
| 95 | -e "s|dsssl-stylesheets|& \\\\\n sgml/docbook/&-&docbook-dsssl-version;|" \
|
---|
| 96 | configure &&
|
---|
[9aeb405d] | 97 | ./configure --prefix=/usr --enable-thread-safety &&
|
---|
[44e4099] | 98 | make</command></userinput></screen>
|
---|
| 99 |
|
---|
| 100 | <para>Now, as the root user:</para>
|
---|
| 101 |
|
---|
| 102 | <screen><userinput role='root'><command>make install &&
|
---|
[bccf77a5] | 103 | chown -R root:root /usr/share/doc/postgresql/html</command></userinput></screen>
|
---|
[08254fc] | 104 |
|
---|
[44e4099] | 105 | <!--
|
---|
[11404f5] | 106 | <para>The standard installation provides only the header files needed
|
---|
| 107 | for client application development. Server-side applications require
|
---|
| 108 | the entire <application>Postgre<acronym>SQL</acronym></application>
|
---|
| 109 | include tree which can be installed using the following command:</para>
|
---|
| 110 |
|
---|
| 111 | <screen><userinput><command>make install-all-headers</command></userinput></screen>
|
---|
[44e4099] | 112 | -->
|
---|
[11404f5] | 113 |
|
---|
[08254fc] | 114 | <note><para>If you are upgrading an existing system and are going to
|
---|
| 115 | install the new files over the old ones, then you should
|
---|
| 116 | back up your data, shut down the old server and follow the
|
---|
| 117 | instructions in <ulink
|
---|
[44e4099] | 118 | url="http://www.postgresql.org/docs/8.0/static/install-upgrading.html">the
|
---|
[08254fc] | 119 | official <application>Postgre<acronym>SQL</acronym></application>
|
---|
| 120 | documentation</ulink>.</para></note>
|
---|
| 121 |
|
---|
[44e4099] | 122 | <para>Initialize a database cluster with the following commands issued by the
|
---|
| 123 | root user:</para>
|
---|
[08254fc] | 124 |
|
---|
[44e4099] | 125 | <screen><userinput role='root'><command>install -v -m755 -d /srv/pgsql/data &&
|
---|
| 126 | useradd -c "PostgreSQL Server" -g users -d /srv/pgsql/data postgres &&
|
---|
| 127 | chown -v postgres /srv/pgsql/data &&
|
---|
[b054b795] | 128 | su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</command></userinput></screen>
|
---|
[08254fc] | 129 |
|
---|
[44e4099] | 130 | <para>As the root user, start the database server with the following
|
---|
| 131 | command:</para>
|
---|
[08254fc] | 132 |
|
---|
[44e4099] | 133 | <screen><userinput role='root'><command>su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \
|
---|
[b054b795] | 134 | /srv/pgsql/data/logfile 2>&1 &'</command></userinput></screen>
|
---|
[08254fc] | 135 |
|
---|
[44e4099] | 136 | <para>Still as user root, create a database and verify the
|
---|
| 137 | installation:</para>
|
---|
[08254fc] | 138 |
|
---|
[44e4099] | 139 | <screen><userinput role='root'><command>su - postgres -c '/usr/bin/createdb test' &&
|
---|
[08254fc] | 140 | echo "create table t1 ( name varchar(20), state_province varchar(20) );" \
|
---|
| 141 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 142 | echo "insert into t1 values ('Billy', 'NewYork');" \
|
---|
| 143 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 144 | echo "insert into t1 values ('Evanidus', 'Quebec');" \
|
---|
| 145 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 146 | echo "insert into t1 values ('Jesse', 'Ontario');" \
|
---|
| 147 | | (su - postgres -c '/usr/bin/psql test ') &&
|
---|
| 148 | echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test')</command></userinput></screen>
|
---|
| 149 |
|
---|
| 150 | </sect2>
|
---|
| 151 |
|
---|
| 152 | <sect2>
|
---|
| 153 | <title>Command explanations</title>
|
---|
| 154 |
|
---|
[44e4099] | 155 | <para><command>sed -i -e "s|dsssl-stylesheets|..."</command>: This command
|
---|
| 156 | puts an extra line in the <command>configure</command> script so that the
|
---|
| 157 | <acronym>BLFS</acronym> installed version of the <acronym>DSSSL</acronym>
|
---|
| 158 | stylesheets can be discovered.</para>
|
---|
| 159 |
|
---|
[9aeb405d] | 160 | <para><parameter>--enable-thread-safety</parameter>: This switch makes the
|
---|
| 161 | client libraries thread-safe by allowing concurrent threads in
|
---|
| 162 | <filename class='libraryfile'>libpq</filename> and <acronym>ECPG</acronym>
|
---|
| 163 | programs to safely control their private connection handles.</para>
|
---|
| 164 |
|
---|
[bccf77a5] | 165 | <para><command>chown -R root:root /usr/share/doc/postgresql/html</command>:
|
---|
| 166 | This command corrects the improper ownership of some documentation
|
---|
| 167 | files.</para>
|
---|
| 168 |
|
---|
[44e4099] | 169 | <para><command>useradd ...</command>: Add an unprivileged user to run the
|
---|
| 170 | database server.</para>
|
---|
[08254fc] | 171 |
|
---|
[44e4099] | 172 | <para><command>createdb test; create table t1; insert into t1 values...;
|
---|
[78d0e3c] | 173 | select * from t1</command>: Create a database, add a table to it, insert some
|
---|
| 174 | rows into the table and select them to verify that the installation is working
|
---|
[08254fc] | 175 | properly.</para>
|
---|
| 176 |
|
---|
| 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2>
|
---|
[44e4099] | 180 | <title>Configuring
|
---|
| 181 | <application>Postgre<acronym>SQL</acronym></application></title>
|
---|
[08254fc] | 182 |
|
---|
[a65cdde7] | 183 | <sect3 id="postgresql-config"><title>Config files</title>
|
---|
[08254fc] | 184 |
|
---|
[78d0e3c] | 185 | <para><filename>$PGDATA/pg_ident.con</filename>,
|
---|
| 186 | <filename>$PGDATA/pg_hba.conf</filename> and
|
---|
| 187 | <filename>$PGDATA/postgresql.conf</filename></para>
|
---|
[44e4099] | 188 | <indexterm zone="postgresql postgresql-config">
|
---|
| 189 | <primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | <indexterm zone="postgresql postgresql-config">
|
---|
| 192 | <primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | <indexterm zone="postgresql postgresql-config">
|
---|
| 195 | <primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
|
---|
| 196 | </indexterm>
|
---|
[08254fc] | 197 |
|
---|
[78d0e3c] | 198 | <para>The <envar>PGDATA</envar> environment variable is used to distinguish
|
---|
| 199 | database clusters from one another by setting it to the value of the directory
|
---|
[08254fc] | 200 | which contains the cluster desired. The three configuration files
|
---|
| 201 | exist in every <filename class="directory">PGDATA/</filename> directory.
|
---|
| 202 | Details on the format of the files and the options that can be set in
|
---|
| 203 | each can be found in <ulink
|
---|
| 204 | url="file:///usr/share/doc/postgresql/html/index.html"/>.</para>
|
---|
| 205 |
|
---|
[44e4099] | 206 | <para id="postgresql-init">Install the
|
---|
| 207 | <filename>/etc/rc.d/init.d/postgresql</filename> init script included in the
|
---|
| 208 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 209 | <indexterm zone="postgresql postgresql-init">
|
---|
| 210 | <primary sortas="f-postgresql">postgresql</primary></indexterm>
|
---|
[78d0e3c] | 211 |
|
---|
[08254fc] | 212 | <screen><userinput><command>make install-postgresql</command></userinput></screen>
|
---|
| 213 | </sect3>
|
---|
| 214 |
|
---|
| 215 | </sect2>
|
---|
| 216 |
|
---|
| 217 | <sect2>
|
---|
| 218 | <title>Contents</title>
|
---|
| 219 |
|
---|
[44e4099] | 220 | <segmentedlist>
|
---|
| 221 | <segtitle>Installed Programs</segtitle>
|
---|
| 222 | <segtitle>Installed Libraries</segtitle>
|
---|
| 223 | <segtitle>Installed Directories</segtitle>
|
---|
| 224 |
|
---|
| 225 | <seglistitem>
|
---|
| 226 | <seg>clusterdb, createdb, createlang, createuser, dropdb, droplang, dropuser,
|
---|
| 227 | ecpg, initdb, ipcclean, pg_config, pg_controldata, pg_ctl, pg_dump,
|
---|
| 228 | pg_dumpall, pg_resetxlog, pg_restore, pltcl_delmod, pltcl_listmod,
|
---|
| 229 | pltcl_loadmod, postgres, postmaster, psql, vacuumdb</seg>
|
---|
| 230 | <seg>libecpg.[so,a], libecpg_compat.[so,a], libpgport.a, libpgtypes.[so,a],
|
---|
| 231 | libpq.[so,a] and various charset modules.</seg>
|
---|
| 232 | <seg>/srv/pgsql, /usr/include/libpq, /usr/include/postgresql,
|
---|
| 233 | /usr/lib/postgresql, /usr/share/doc/postgresql and /usr/share/postgresql</seg>
|
---|
| 234 | </seglistitem>
|
---|
| 235 | </segmentedlist>
|
---|
| 236 |
|
---|
| 237 | <variablelist>
|
---|
| 238 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 239 | <?dbfo list-presentation="list"?>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="clusterdb">
|
---|
| 242 | <term><command>clusterdb</command></term>
|
---|
| 243 | <listitem><para>is a utility for reclustering tables in a
|
---|
[78d0e3c] | 244 | <application>Postgre<acronym>SQL</acronym></application> database.</para>
|
---|
[44e4099] | 245 | <indexterm zone="postgresql clusterdb">
|
---|
| 246 | <primary sortas="b-clusterdb">clusterdb</primary>
|
---|
| 247 | </indexterm></listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="createdb">
|
---|
| 251 | <term><command>createdb</command></term>
|
---|
| 252 | <listitem><para> creates a new
|
---|
| 253 | <application>Postgre<acronym>SQL</acronym></application> database.</para>
|
---|
| 254 | <indexterm zone="postgresql createdb">
|
---|
| 255 | <primary sortas="b-createdb">createdb</primary>
|
---|
| 256 | </indexterm></listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="createlang">
|
---|
| 260 | <term><command>createlang</command></term>
|
---|
| 261 | <listitem><para>defines a new
|
---|
| 262 | <application>Postgre<acronym>SQL</acronym></application> procedural
|
---|
| 263 | language.</para>
|
---|
| 264 | <indexterm zone="postgresql createlang">
|
---|
| 265 | <primary sortas="b-createlang">createlang</primary>
|
---|
| 266 | </indexterm></listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="createuser">
|
---|
| 270 | <term><command>createuser</command></term>
|
---|
| 271 | <listitem><para>defines a new
|
---|
[78d0e3c] | 272 | <application>Postgre<acronym>SQL</acronym></application> user account.</para>
|
---|
[44e4099] | 273 | <indexterm zone="postgresql createuser">
|
---|
| 274 | <primary sortas="b-createuser">createuser</primary>
|
---|
| 275 | </indexterm></listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="dropdb">
|
---|
| 279 | <term><command>dropdb</command></term>
|
---|
| 280 | <listitem><para>removes a
|
---|
[78d0e3c] | 281 | <application>Postgre<acronym>SQL</acronym></application> database.</para>
|
---|
[44e4099] | 282 | <indexterm zone="postgresql dropdb">
|
---|
| 283 | <primary sortas="b-dropdb">dropdb</primary>
|
---|
| 284 | </indexterm></listitem>
|
---|
| 285 | </varlistentry>
|
---|
| 286 |
|
---|
| 287 | <varlistentry id="droplang">
|
---|
| 288 | <term><command>droplang</command></term>
|
---|
| 289 | <listitem><para>removes a
|
---|
| 290 | <application>Postgre<acronym>SQL</acronym></application> procedural
|
---|
| 291 | language.</para>
|
---|
| 292 | <indexterm zone="postgresql droplang">
|
---|
| 293 | <primary sortas="b-droplang">droplang</primary>
|
---|
| 294 | </indexterm></listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="dropuser">
|
---|
| 298 | <term><command>dropuser</command></term>
|
---|
| 299 | <listitem><para>removes a
|
---|
[78d0e3c] | 300 | <application>Postgre<acronym>SQL</acronym></application> user account.</para>
|
---|
[44e4099] | 301 | <indexterm zone="postgresql dropuser">
|
---|
| 302 | <primary sortas="b-dropuser">dropuser</primary>
|
---|
| 303 | </indexterm></listitem>
|
---|
| 304 | </varlistentry>
|
---|
| 305 |
|
---|
| 306 | <varlistentry id="ecpg">
|
---|
| 307 | <term><command>ecpg</command></term>
|
---|
| 308 | <listitem><para>is the embedded <acronym>SQL</acronym> preprocessor.</para>
|
---|
| 309 | <indexterm zone="postgresql ecpg">
|
---|
| 310 | <primary sortas="b-ecpg">ecpg</primary>
|
---|
| 311 | </indexterm></listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
| 314 | <varlistentry id="initdb">
|
---|
| 315 | <term><command>initdb</command></term>
|
---|
| 316 | <listitem><para>creates a new database cluster.</para>
|
---|
| 317 | <indexterm zone="postgresql initdb">
|
---|
| 318 | <primary sortas="b-initdb">initdb</primary>
|
---|
| 319 | </indexterm></listitem>
|
---|
| 320 | </varlistentry>
|
---|
| 321 |
|
---|
| 322 | <varlistentry id="ipcclean">
|
---|
| 323 | <term><command>ipcclean</command></term>
|
---|
| 324 | <listitem><para>removes shared memory and semaphores left over by an aborted
|
---|
| 325 | database server.</para>
|
---|
| 326 | <indexterm zone="postgresql ipcclean">
|
---|
| 327 | <primary sortas="b-ipcclean">ipcclean</primary>
|
---|
| 328 | </indexterm></listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="pg_config">
|
---|
| 332 | <term><command>pg_config</command></term>
|
---|
| 333 | <listitem><para>retrieves
|
---|
| 334 | <application>Postgre<acronym>SQL</acronym></application> version
|
---|
| 335 | information.</para>
|
---|
| 336 | <indexterm zone="postgresql pg_config">
|
---|
| 337 | <primary sortas="b-pg_config">pg_config</primary>
|
---|
| 338 | </indexterm></listitem>
|
---|
| 339 | </varlistentry>
|
---|
| 340 |
|
---|
| 341 | <varlistentry id="pg_controldata">
|
---|
| 342 | <term><command>pg_controldata</command></term>
|
---|
| 343 | <listitem><para>returns information initialized during
|
---|
| 344 | <command>initdb</command>, such as the catalog version and server
|
---|
| 345 | locale.</para>
|
---|
| 346 | <indexterm zone="postgresql pg_controldata">
|
---|
| 347 | <primary sortas="b-pg_controldata">pg_controldata</primary>
|
---|
| 348 | </indexterm></listitem>
|
---|
| 349 | </varlistentry>
|
---|
| 350 |
|
---|
| 351 | <varlistentry id="pg_ctl">
|
---|
| 352 | <term><command>pg_ctl</command></term>
|
---|
| 353 | <listitem><para>controls stopping and starting the database server.</para>
|
---|
| 354 | <indexterm zone="postgresql pg_ctl">
|
---|
| 355 | <primary sortas="b-pg_ctl">pg_ctl</primary>
|
---|
| 356 | </indexterm></listitem>
|
---|
| 357 | </varlistentry>
|
---|
| 358 |
|
---|
| 359 | <varlistentry id="pg_dump">
|
---|
| 360 | <term><command>pg_dump</command></term>
|
---|
| 361 | <listitem><para>dumps database data and metadata into scripts which are used
|
---|
| 362 | to recreate the database.</para>
|
---|
| 363 | <indexterm zone="postgresql pg_dump">
|
---|
| 364 | <primary sortas="b-pg_dump">pg_dump</primary>
|
---|
| 365 | </indexterm></listitem>
|
---|
| 366 | </varlistentry>
|
---|
| 367 |
|
---|
| 368 | <varlistentry id="pg_dumpall">
|
---|
| 369 | <term><command>pg_dumpall</command></term>
|
---|
| 370 | <listitem><para>recursively calls <command>pg_dump</command> for each
|
---|
| 371 | database in a cluster.</para>
|
---|
| 372 | <indexterm zone="postgresql pg_dumpall">
|
---|
| 373 | <primary sortas="b-pg_dumpall">pg_dumpall</primary>
|
---|
| 374 | </indexterm></listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | <varlistentry id="pg_resetxlog">
|
---|
| 378 | <term><command>pg_resetxlog</command></term>
|
---|
| 379 | <listitem><para>clears the write-ahead log and optionally resets some
|
---|
| 380 | fields in the <filename>pg_control</filename> file.</para>
|
---|
| 381 | <indexterm zone="postgresql pg_resetxlog">
|
---|
| 382 | <primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
|
---|
| 383 | </indexterm></listitem>
|
---|
| 384 | </varlistentry>
|
---|
| 385 |
|
---|
| 386 | <varlistentry id="pg_restore">
|
---|
| 387 | <term><command>pg_restore</command></term>
|
---|
| 388 | <listitem><para>creates databases from dump files created by
|
---|
| 389 | <command>pg_dump</command>.</para>
|
---|
| 390 | <indexterm zone="postgresql pg_restore">
|
---|
| 391 | <primary sortas="b-pg_restore">pg_restore</primary>
|
---|
| 392 | </indexterm></listitem>
|
---|
| 393 | </varlistentry>
|
---|
| 394 |
|
---|
| 395 | <varlistentry id="pltcl_delmod">
|
---|
| 396 | <term><command>pltcl_delmod</command></term>
|
---|
| 397 | <listitem><para>is a support script used to delete a module from a
|
---|
| 398 | <acronym>PL</acronym>/<application>Tcl</application> table. The command
|
---|
| 399 | requires the <application><ulink
|
---|
| 400 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink></application>
|
---|
| 401 | package to be installed also.</para>
|
---|
| 402 | <indexterm zone="postgresql pltcl_delmod">
|
---|
| 403 | <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
|
---|
| 404 | </indexterm></listitem>
|
---|
| 405 | </varlistentry>
|
---|
| 406 |
|
---|
| 407 | <varlistentry id="pltcl_listmod">
|
---|
| 408 | <term><command>pltcl_listmod</command></term>
|
---|
| 409 | <listitem><para>is a support script used to list the modules in a
|
---|
| 410 | <acronym>PL</acronym>/<application>Tcl</application> table. The command
|
---|
| 411 | requires the <application><ulink
|
---|
| 412 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink></application>
|
---|
| 413 | package to be installed also.</para>
|
---|
| 414 | <indexterm zone="postgresql pltcl_listmod">
|
---|
| 415 | <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
|
---|
| 416 | </indexterm></listitem>
|
---|
| 417 | </varlistentry>
|
---|
| 418 |
|
---|
| 419 | <varlistentry id="pltcl_loadmod">
|
---|
| 420 | <term><command>pltcl_loadmod</command></term>
|
---|
| 421 | <listitem><para>is a support script used to load a module into a
|
---|
| 422 | <acronym>PL</acronym>/<application>Tcl</application> table. The command
|
---|
| 423 | requires the <application><ulink
|
---|
| 424 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink></application>
|
---|
| 425 | package to be installed also.</para>
|
---|
| 426 | <indexterm zone="postgresql pltcl_loadmod">
|
---|
| 427 | <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
|
---|
| 428 | </indexterm></listitem>
|
---|
| 429 | </varlistentry>
|
---|
| 430 |
|
---|
| 431 | <varlistentry id="postgres">
|
---|
| 432 | <term><command>postgres</command></term>
|
---|
| 433 | <listitem><para>is a single user database server, generally used for
|
---|
| 434 | debugging.</para>
|
---|
| 435 | <indexterm zone="postgresql postgres">
|
---|
| 436 | <primary sortas="b-postgres">postgres</primary>
|
---|
| 437 | </indexterm></listitem>
|
---|
| 438 | </varlistentry>
|
---|
| 439 |
|
---|
| 440 | <varlistentry id="postmaster">
|
---|
| 441 | <term><command>postmaster</command></term>
|
---|
| 442 | <listitem><para>is a multi-user database daemon.</para>
|
---|
| 443 | <indexterm zone="postgresql postmaster">
|
---|
| 444 | <primary sortas="b-postmaster">postmaster</primary>
|
---|
| 445 | </indexterm></listitem>
|
---|
| 446 | </varlistentry>
|
---|
| 447 |
|
---|
| 448 | <varlistentry id="psql">
|
---|
| 449 | <term><command>psql</command></term>
|
---|
| 450 | <listitem><para>is a console based database shell.</para>
|
---|
| 451 | <indexterm zone="postgresql psql">
|
---|
| 452 | <primary sortas="b-psql">psql</primary>
|
---|
| 453 | </indexterm></listitem>
|
---|
| 454 | </varlistentry>
|
---|
| 455 |
|
---|
| 456 | <varlistentry id="vacuumdb">
|
---|
| 457 | <term><command>vacuumdb</command></term>
|
---|
| 458 | <listitem><para>compacts databases and generates statistics for the query
|
---|
| 459 | analyzer.</para>
|
---|
| 460 | <indexterm zone="postgresql vacuumdb">
|
---|
| 461 | <primary sortas="b-vacuumdb">vacuumdb</primary>
|
---|
| 462 | </indexterm></listitem>
|
---|
| 463 | </varlistentry>
|
---|
| 464 | </variablelist>
|
---|
[08254fc] | 465 |
|
---|
| 466 | </sect2>
|
---|
[458342f] | 467 |
|
---|
| 468 | </sect1>
|
---|