1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY postgresql-download-http " ">
|
---|
8 | <!ENTITY postgresql-download-ftp "ftp://ftp5.us.postgresql.org/pub/PostgreSQL/source/v&postgresql-version;/postgresql-&postgresql-version;.tar.bz2">
|
---|
9 | <!ENTITY postgresql-md5sum "6ee5bb53b97da7c6ad9cb0825d3300dd">
|
---|
10 | <!ENTITY postgresql-size "16.0 MB">
|
---|
11 | <!ENTITY postgresql-buildsize "181 MB (additional 151 MB to run the testsuite)">
|
---|
12 | <!ENTITY postgresql-time "1.4 SBU (additional 0.2 SBU to run the testsuite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="postgresql" xreflabel="PostgreSQL-&postgresql-version;">
|
---|
16 | <?dbhtml filename="postgresql.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>PostgreSQL-&postgresql-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="postgresql">
|
---|
26 | <primary sortas="a-PostgreSQL">PostgreSQL</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to PostgreSQL</title>
|
---|
31 |
|
---|
32 | <para><application>PostgreSQL</application> is an advanced
|
---|
33 | object-relational database management system (ORDBMS), derived
|
---|
34 | from the Berkeley Postgres database management system.</para>
|
---|
35 |
|
---|
36 | <para>There may be a more recent release available from the
|
---|
37 | <application>PostgreSQL</application> home page. You can check
|
---|
38 | <ulink url="http://www.postgresql.org/"/> and probably use the
|
---|
39 | existing BLFS instructions. Note that versions other than the one shown
|
---|
40 | in the download URLs have not been tested in a BLFS environment.</para>
|
---|
41 |
|
---|
42 | &lfs73_built;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>Download (HTTP): <ulink url="&postgresql-download-http;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download (FTP): <ulink url="&postgresql-download-ftp;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download MD5 sum: &postgresql-md5sum;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download size: &postgresql-size;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated disk space required: &postgresql-buildsize;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated build time: &postgresql-time;</para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect3">PostgreSQL Dependencies</bridgehead>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
69 | <para role="optional"><xref linkend="python2"/>,
|
---|
70 | <xref linkend="tcl"/>,
|
---|
71 | <xref linkend="openssl"/>,
|
---|
72 | <xref linkend="libxml2"/>,
|
---|
73 | <xref linkend="libxslt"/>,
|
---|
74 | <xref linkend="openldap"/>,
|
---|
75 | <xref linkend="linux-pam"/>,
|
---|
76 | <xref linkend="mitkrb"/> and
|
---|
77 | <ulink url="http://developer.apple.com/networking/bonjour/">Bonjour</ulink></para>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Optional (To Regenerate Documentation)</bridgehead>
|
---|
80 | <para role="optional"><xref linkend="sgml-dtd"/>,
|
---|
81 | <xref linkend="docbook-dsssl"/>,
|
---|
82 | <xref linkend="openjade"/>, and
|
---|
83 | <xref linkend="perl-sgmlspm"/></para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">User Notes:
|
---|
86 | <ulink url="&blfs-wiki;/postgresql"/></para>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of PostgreSQL</title>
|
---|
92 |
|
---|
93 | <para>Install <application>PostgreSQL</application> with the
|
---|
94 | following commands: </para>
|
---|
95 |
|
---|
96 | <screen><userinput>sed -e "s@DEFAULT_PGSOCKET_DIR \"/tmp\"@DEFAULT_PGSOCKET_DIR \"/run/postgresql\"@" \
|
---|
97 | -i src/include/pg_config_manual.h &&
|
---|
98 | ./configure --prefix=/usr \
|
---|
99 | --enable-thread-safety \
|
---|
100 | --docdir=/usr/share/doc/postgresql-&postgresql-version; &&
|
---|
101 | make</userinput></screen>
|
---|
102 |
|
---|
103 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
104 |
|
---|
105 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
106 |
|
---|
107 | <screen role="root"><userinput>make install &&
|
---|
108 | make install-docs</userinput></screen>
|
---|
109 |
|
---|
110 | <!-- 'Upgrading' seems to only ever exist in the docs for *previous* version -->
|
---|
111 | <note>
|
---|
112 | <para>If you are upgrading an existing system and are going to install
|
---|
113 | the new files over the old ones, then you should back up your data, shut
|
---|
114 | down the old server and follow the instructions in <ulink
|
---|
115 | url="http://www.postgresql.org/docs/9.0/static/install-upgrading.html">the
|
---|
116 | official <application>PostgreSQL</application> documentation</ulink>.</para>
|
---|
117 | </note>
|
---|
118 |
|
---|
119 | <para>Initialize a database cluster with the following commands issued by the
|
---|
120 | <systemitem class="username">root</systemitem> user:</para>
|
---|
121 |
|
---|
122 | <screen role="root"><userinput>install -v -dm700 /srv/pgsql/data &&
|
---|
123 | install -v -dm755 /run/postgresql &&
|
---|
124 | groupadd -g 41 postgres &&
|
---|
125 | useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \
|
---|
126 | -u 41 postgres &&
|
---|
127 | chown -Rv postgres:postgres /srv/pgsql /run/postgresql &&
|
---|
128 | su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data'</userinput></screen>
|
---|
129 |
|
---|
130 | <para>As the <systemitem class="username">root</systemitem> user, start the
|
---|
131 | database server with the following command:</para>
|
---|
132 |
|
---|
133 | <screen role="root"><userinput>su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \
|
---|
134 | /srv/pgsql/data/logfile 2>&1 &'</userinput></screen>
|
---|
135 |
|
---|
136 | <para>Still as user <systemitem class="username">root</systemitem>, create
|
---|
137 | a database and verify the installation:</para>
|
---|
138 |
|
---|
139 | <screen role="root"><userinput>su - postgres -c '/usr/bin/createdb test' &&
|
---|
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')</userinput></screen>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <sect2 role="commands">
|
---|
153 | <title>Command Explanations</title>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | <command>sed -e ...</command>: This sed changes server socket location
|
---|
157 | from <filename class="directory">/tmp</filename> to
|
---|
158 | <filename class="directory">/run/postgresql</filename>.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para><parameter>--docdir=/usr/share/doc/postgresql-&postgresql-version;</parameter>:
|
---|
162 | This switch puts the documentation in a versioned directory.</para>
|
---|
163 |
|
---|
164 | <para><parameter>--enable-thread-safety</parameter>: This switch makes the
|
---|
165 | client libraries thread-safe by allowing concurrent threads in
|
---|
166 | <filename class='libraryfile'>libpq</filename> and ECPG programs to safely
|
---|
167 | control their private connection handles.</para>
|
---|
168 |
|
---|
169 | <para><option>--with-openssl</option>: build with support for
|
---|
170 | <application>OpenSSL</application> encrypted connections.</para>
|
---|
171 |
|
---|
172 | <para><option>--with-perl</option>: build the PL/Perl server-side language.
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <para><option>--with-python</option>: build the PL/Python server-side
|
---|
176 | language.</para>
|
---|
177 |
|
---|
178 | <para><option>--with-tcl</option>: build the PL/Tcl server-side language.</para>
|
---|
179 |
|
---|
180 | <para><command>groupadd ...</command>; <command>useradd ...</command>:
|
---|
181 | These commands add an unprivileged user and group to run the database
|
---|
182 | server.</para>
|
---|
183 |
|
---|
184 | <para><command>createdb test; create table t1; insert into t1 values...;
|
---|
185 | select * from t1</command>: Create a database, add a table to it, insert
|
---|
186 | some rows into the table and select them to verify that the installation
|
---|
187 | is working properly.</para>
|
---|
188 |
|
---|
189 | </sect2>
|
---|
190 |
|
---|
191 | <sect2 role="configuration">
|
---|
192 | <title>Configuring PostgreSQL</title>
|
---|
193 |
|
---|
194 | <sect3 id="postgresql-config">
|
---|
195 | <title>Config Files</title>
|
---|
196 |
|
---|
197 | <para><filename>$PGDATA/pg_ident.con</filename>,
|
---|
198 | <filename>$PGDATA/pg_hba.conf</filename> and
|
---|
199 | <filename>$PGDATA/postgresql.conf</filename></para>
|
---|
200 |
|
---|
201 | <indexterm zone="postgresql postgresql-config">
|
---|
202 | <primary sortas="e-A.PGDATA-pg_ident.con">$PGDATA/pg_indent.con</primary>
|
---|
203 | </indexterm>
|
---|
204 |
|
---|
205 | <indexterm zone="postgresql postgresql-config">
|
---|
206 | <primary sortas="e-A.PGDATA-pg_hba.conf">$PGDATA/pg_hba_conf</primary>
|
---|
207 | </indexterm>
|
---|
208 |
|
---|
209 | <indexterm zone="postgresql postgresql-config">
|
---|
210 | <primary sortas="e-A.PGDATA-postgresql.conf">$PGDATA/postgresql.conf</primary>
|
---|
211 | </indexterm>
|
---|
212 |
|
---|
213 | <para>The <envar>PGDATA</envar> environment variable is used to
|
---|
214 | distinguish database clusters from one another by setting it to
|
---|
215 | the value of the directory which contains the cluster desired.
|
---|
216 | The three configuration files exist in every <filename
|
---|
217 | class="directory">PGDATA/</filename> directory. Details on the
|
---|
218 | format of the files and the options that can be set in each can
|
---|
219 | be found in <ulink
|
---|
220 | url="file:///usr/share/doc/postgresql-&postgresql-version;/html/index.html"/>.</para>
|
---|
221 |
|
---|
222 | </sect3>
|
---|
223 |
|
---|
224 | <sect3 id="postgresql-init">
|
---|
225 | <title>Boot Script</title>
|
---|
226 |
|
---|
227 | <para>Install the <filename>/etc/rc.d/init.d/postgresql</filename>
|
---|
228 | init script included in the
|
---|
229 | <xref linkend="bootscripts"/> package.</para>
|
---|
230 |
|
---|
231 | <indexterm zone="postgresql postgresql-init">
|
---|
232 | <primary sortas="f-postgresql">postgresql</primary>
|
---|
233 | </indexterm>
|
---|
234 |
|
---|
235 | <screen role="root"><userinput>make install-postgresql</userinput></screen>
|
---|
236 |
|
---|
237 | </sect3>
|
---|
238 |
|
---|
239 | </sect2>
|
---|
240 |
|
---|
241 | <sect2 role="content">
|
---|
242 | <title>Contents</title>
|
---|
243 |
|
---|
244 | <segmentedlist>
|
---|
245 | <segtitle>Installed Programs</segtitle>
|
---|
246 | <segtitle>Installed Libraries</segtitle>
|
---|
247 | <segtitle>Installed Directories</segtitle>
|
---|
248 |
|
---|
249 | <seglistitem>
|
---|
250 | <seg>clusterdb, createdb, createlang, createuser, dropdb, droplang,
|
---|
251 | dropuser, ecpg, initdb, pg_basebackup, pg_config, pg_controldata, pg_ctl,
|
---|
252 | pg_dump, pg_dumpall, pg_resetxlog, pg_restore, pltcl_delmod,
|
---|
253 | pltcl_listmod, pltcl_loadmod, postgres, postmaster, psql,
|
---|
254 | reindexdb, and vacuumdb</seg>
|
---|
255 | <seg>libecpg.{so,a}, libecpg_compat.{so,a}, libpgport.a, libpgtypes.{so,a},
|
---|
256 | libpq.{so,a}, and various charset (and optionally, programming language)
|
---|
257 | modules.</seg>
|
---|
258 | <seg>/srv/pgsql, /usr/include/libpq, /usr/include/postgresql,
|
---|
259 | /usr/lib/postgresql, /usr/share/doc/postgresql-&postgresql-version;, and
|
---|
260 | /usr/share/postgresql</seg>
|
---|
261 | </seglistitem>
|
---|
262 | </segmentedlist>
|
---|
263 |
|
---|
264 | <variablelist>
|
---|
265 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
266 | <?dbfo list-presentation="list"?>
|
---|
267 | <?dbhtml list-presentation="table"?>
|
---|
268 |
|
---|
269 | <varlistentry id="clusterdb">
|
---|
270 | <term><command>clusterdb</command></term>
|
---|
271 | <listitem>
|
---|
272 | <para>is a utility for reclustering tables in a
|
---|
273 | <application>PostgreSQL</application> database.</para>
|
---|
274 | <indexterm zone="postgresql clusterdb">
|
---|
275 | <primary sortas="b-clusterdb">clusterdb</primary>
|
---|
276 | </indexterm>
|
---|
277 | </listitem>
|
---|
278 | </varlistentry>
|
---|
279 |
|
---|
280 | <varlistentry id="createdb">
|
---|
281 | <term><command>createdb</command></term>
|
---|
282 | <listitem>
|
---|
283 | <para> creates a new <application>PostgreSQL</application>
|
---|
284 | database.</para>
|
---|
285 | <indexterm zone="postgresql createdb">
|
---|
286 | <primary sortas="b-createdb">createdb</primary>
|
---|
287 | </indexterm>
|
---|
288 | </listitem>
|
---|
289 | </varlistentry>
|
---|
290 |
|
---|
291 | <varlistentry id="createlang">
|
---|
292 | <term><command>createlang</command></term>
|
---|
293 | <listitem>
|
---|
294 | <para>defines a new <application>PostgreSQL</application> procedural
|
---|
295 | language.</para>
|
---|
296 | <indexterm zone="postgresql createlang">
|
---|
297 | <primary sortas="b-createlang">createlang</primary>
|
---|
298 | </indexterm>
|
---|
299 | </listitem>
|
---|
300 | </varlistentry>
|
---|
301 |
|
---|
302 | <varlistentry id="createuser">
|
---|
303 | <term><command>createuser</command></term>
|
---|
304 | <listitem>
|
---|
305 | <para>defines a new <application>PostgreSQL</application>
|
---|
306 | user account.</para>
|
---|
307 | <indexterm zone="postgresql createuser">
|
---|
308 | <primary sortas="b-createuser">createuser</primary>
|
---|
309 | </indexterm>
|
---|
310 | </listitem>
|
---|
311 | </varlistentry>
|
---|
312 |
|
---|
313 | <varlistentry id="dropdb">
|
---|
314 | <term><command>dropdb</command></term>
|
---|
315 | <listitem>
|
---|
316 | <para>removes a <application>PostgreSQL</application> database.</para>
|
---|
317 | <indexterm zone="postgresql dropdb">
|
---|
318 | <primary sortas="b-dropdb">dropdb</primary>
|
---|
319 | </indexterm>
|
---|
320 | </listitem>
|
---|
321 | </varlistentry>
|
---|
322 |
|
---|
323 | <varlistentry id="droplang">
|
---|
324 | <term><command>droplang</command></term>
|
---|
325 | <listitem>
|
---|
326 | <para>removes a <application>PostgreSQL</application> procedural
|
---|
327 | language.</para>
|
---|
328 | <indexterm zone="postgresql droplang">
|
---|
329 | <primary sortas="b-droplang">droplang</primary>
|
---|
330 | </indexterm>
|
---|
331 | </listitem>
|
---|
332 | </varlistentry>
|
---|
333 |
|
---|
334 | <varlistentry id="dropuser">
|
---|
335 | <term><command>dropuser</command></term>
|
---|
336 | <listitem>
|
---|
337 | <para>removes a <application>PostgreSQL</application>
|
---|
338 | user account.</para>
|
---|
339 | <indexterm zone="postgresql dropuser">
|
---|
340 | <primary sortas="b-dropuser">dropuser</primary>
|
---|
341 | </indexterm>
|
---|
342 | </listitem>
|
---|
343 | </varlistentry>
|
---|
344 |
|
---|
345 | <varlistentry id="ecpg">
|
---|
346 | <term><command>ecpg</command></term>
|
---|
347 | <listitem>
|
---|
348 | <para>is the embedded SQL preprocessor.</para>
|
---|
349 | <indexterm zone="postgresql ecpg">
|
---|
350 | <primary sortas="b-ecpg">ecpg</primary>
|
---|
351 | </indexterm>
|
---|
352 | </listitem>
|
---|
353 | </varlistentry>
|
---|
354 |
|
---|
355 | <varlistentry id="initdb">
|
---|
356 | <term><command>initdb</command></term>
|
---|
357 | <listitem>
|
---|
358 | <para>creates a new database cluster.</para>
|
---|
359 | <indexterm zone="postgresql initdb">
|
---|
360 | <primary sortas="b-initdb">initdb</primary>
|
---|
361 | </indexterm>
|
---|
362 | </listitem>
|
---|
363 | </varlistentry>
|
---|
364 |
|
---|
365 | <varlistentry id="pg_basebackup">
|
---|
366 | <term><command>pg_basebackup</command></term>
|
---|
367 | <listitem>
|
---|
368 | <para>takes base backups of a running
|
---|
369 | <application>PostgreSQL</application> cluster.</para>
|
---|
370 | <indexterm zone="postgresql pg_basebackup">
|
---|
371 | <primary sortas="b-pg_basebackup">pg_basebackup</primary>
|
---|
372 | </indexterm>
|
---|
373 | </listitem>
|
---|
374 | </varlistentry>
|
---|
375 |
|
---|
376 | <varlistentry id="pg_config">
|
---|
377 | <term><command>pg_config</command></term>
|
---|
378 | <listitem>
|
---|
379 | <para>retrieves <application>PostgreSQL</application> version
|
---|
380 | information.</para>
|
---|
381 | <indexterm zone="postgresql pg_config">
|
---|
382 | <primary sortas="b-pg_config">pg_config</primary>
|
---|
383 | </indexterm>
|
---|
384 | </listitem>
|
---|
385 | </varlistentry>
|
---|
386 |
|
---|
387 | <varlistentry id="pg_controldata">
|
---|
388 | <term><command>pg_controldata</command></term>
|
---|
389 | <listitem>
|
---|
390 | <para>returns information initialized during
|
---|
391 | <command>initdb</command>, such as the catalog version and server
|
---|
392 | locale.</para>
|
---|
393 | <indexterm zone="postgresql pg_controldata">
|
---|
394 | <primary sortas="b-pg_controldata">pg_controldata</primary>
|
---|
395 | </indexterm>
|
---|
396 | </listitem>
|
---|
397 | </varlistentry>
|
---|
398 |
|
---|
399 | <varlistentry id="pg_ctl">
|
---|
400 | <term><command>pg_ctl</command></term>
|
---|
401 | <listitem>
|
---|
402 | <para>controls stopping and starting the database server.</para>
|
---|
403 | <indexterm zone="postgresql pg_ctl">
|
---|
404 | <primary sortas="b-pg_ctl">pg_ctl</primary>
|
---|
405 | </indexterm>
|
---|
406 | </listitem>
|
---|
407 | </varlistentry>
|
---|
408 |
|
---|
409 | <varlistentry id="pg_dump">
|
---|
410 | <term><command>pg_dump</command></term>
|
---|
411 | <listitem>
|
---|
412 | <para>dumps database data and metadata into scripts which are used
|
---|
413 | to recreate the database.</para>
|
---|
414 | <indexterm zone="postgresql pg_dump">
|
---|
415 | <primary sortas="b-pg_dump">pg_dump</primary>
|
---|
416 | </indexterm>
|
---|
417 | </listitem>
|
---|
418 | </varlistentry>
|
---|
419 |
|
---|
420 | <varlistentry id="pg_dumpall">
|
---|
421 | <term><command>pg_dumpall</command></term>
|
---|
422 | <listitem>
|
---|
423 | <para>recursively calls <command>pg_dump</command> for each
|
---|
424 | database in a cluster.</para>
|
---|
425 | <indexterm zone="postgresql pg_dumpall">
|
---|
426 | <primary sortas="b-pg_dumpall">pg_dumpall</primary>
|
---|
427 | </indexterm>
|
---|
428 | </listitem>
|
---|
429 | </varlistentry>
|
---|
430 |
|
---|
431 | <varlistentry id="pg_resetxlog">
|
---|
432 | <term><command>pg_resetxlog</command></term>
|
---|
433 | <listitem>
|
---|
434 | <para>clears the write-ahead log and optionally resets some
|
---|
435 | fields in the <filename>pg_control</filename> file.</para>
|
---|
436 | <indexterm zone="postgresql pg_resetxlog">
|
---|
437 | <primary sortas="b-pg_resetxlog">pg_resetxlog</primary>
|
---|
438 | </indexterm>
|
---|
439 | </listitem>
|
---|
440 | </varlistentry>
|
---|
441 |
|
---|
442 | <varlistentry id="pg_restore">
|
---|
443 | <term><command>pg_restore</command></term>
|
---|
444 | <listitem>
|
---|
445 | <para>creates databases from dump files created by
|
---|
446 | <command>pg_dump</command>.</para>
|
---|
447 | <indexterm zone="postgresql pg_restore">
|
---|
448 | <primary sortas="b-pg_restore">pg_restore</primary>
|
---|
449 | </indexterm>
|
---|
450 | </listitem>
|
---|
451 | </varlistentry>
|
---|
452 |
|
---|
453 | <varlistentry id="pltcl_delmod">
|
---|
454 | <term><command>pltcl_delmod</command></term>
|
---|
455 | <listitem>
|
---|
456 | <para>is a support script used to delete a module from a
|
---|
457 | PL/<application>Tcl</application> table. The command
|
---|
458 | requires the <ulink
|
---|
459 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
460 | package to be installed also.</para>
|
---|
461 | <indexterm zone="postgresql pltcl_delmod">
|
---|
462 | <primary sortas="b-pltcl_delmod">pltcl_delmod</primary>
|
---|
463 | </indexterm>
|
---|
464 | </listitem>
|
---|
465 | </varlistentry>
|
---|
466 |
|
---|
467 | <varlistentry id="pltcl_listmod">
|
---|
468 | <term><command>pltcl_listmod</command></term>
|
---|
469 | <listitem>
|
---|
470 | <para>is a support script used to list the modules in a
|
---|
471 | PL/<application>Tcl</application> table. The command
|
---|
472 | requires the <ulink
|
---|
473 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
474 | package to be installed also.</para>
|
---|
475 | <indexterm zone="postgresql pltcl_listmod">
|
---|
476 | <primary sortas="b-pltcl_listmod">pltcl_listmod</primary>
|
---|
477 | </indexterm>
|
---|
478 | </listitem>
|
---|
479 | </varlistentry>
|
---|
480 |
|
---|
481 | <varlistentry id="pltcl_loadmod">
|
---|
482 | <term><command>pltcl_loadmod</command></term>
|
---|
483 | <listitem>
|
---|
484 | <para>is a support script used to load a module into a
|
---|
485 | PL/<application>Tcl</application> table. The command
|
---|
486 | requires the <ulink
|
---|
487 | url="http://gborg.postgresql.org/project/pgtcl/">Pgtcl</ulink>
|
---|
488 | package to be installed also.</para>
|
---|
489 | <indexterm zone="postgresql pltcl_loadmod">
|
---|
490 | <primary sortas="b-pltcl_loadmod">pltcl_loadmod</primary>
|
---|
491 | </indexterm>
|
---|
492 | </listitem>
|
---|
493 | </varlistentry>
|
---|
494 |
|
---|
495 | <varlistentry id="postgres">
|
---|
496 | <term><command>postgres</command></term>
|
---|
497 | <listitem>
|
---|
498 | <para>is a single user database server, generally used for
|
---|
499 | debugging.</para>
|
---|
500 | <indexterm zone="postgresql postgres">
|
---|
501 | <primary sortas="b-postgres">postgres</primary>
|
---|
502 | </indexterm>
|
---|
503 | </listitem>
|
---|
504 | </varlistentry>
|
---|
505 |
|
---|
506 | <varlistentry id="postmaster">
|
---|
507 | <term><command>postmaster</command></term>
|
---|
508 | <listitem>
|
---|
509 | <para>(a symlink to <command>postgres</command>) is a multi-user
|
---|
510 | database daemon.</para>
|
---|
511 | <indexterm zone="postgresql postmaster">
|
---|
512 | <primary sortas="b-postmaster">postmaster</primary>
|
---|
513 | </indexterm>
|
---|
514 | </listitem>
|
---|
515 | </varlistentry>
|
---|
516 |
|
---|
517 | <varlistentry id="psql">
|
---|
518 | <term><command>psql</command></term>
|
---|
519 | <listitem>
|
---|
520 | <para>is a console based database shell.</para>
|
---|
521 | <indexterm zone="postgresql psql">
|
---|
522 | <primary sortas="b-psql">psql</primary>
|
---|
523 | </indexterm>
|
---|
524 | </listitem>
|
---|
525 | </varlistentry>
|
---|
526 |
|
---|
527 | <varlistentry id="reindexdb">
|
---|
528 | <term><command>reindexdb</command></term>
|
---|
529 | <listitem>
|
---|
530 | <para>is a utility for rebuilding indexes in a database.</para>
|
---|
531 | <indexterm zone="postgresql reindexdb">
|
---|
532 | <primary sortas="b-reindexdb">reindexdb</primary>
|
---|
533 | </indexterm>
|
---|
534 | </listitem>
|
---|
535 | </varlistentry>
|
---|
536 |
|
---|
537 | <varlistentry id="vacuumdb">
|
---|
538 | <term><command>vacuumdb</command></term>
|
---|
539 | <listitem>
|
---|
540 | <para>compacts databases and generates statistics for the query
|
---|
541 | analyzer.</para>
|
---|
542 | <indexterm zone="postgresql vacuumdb">
|
---|
543 | <primary sortas="b-vacuumdb">vacuumdb</primary>
|
---|
544 | </indexterm>
|
---|
545 | </listitem>
|
---|
546 | </varlistentry>
|
---|
547 |
|
---|
548 | <varlistentry id="libecpg">
|
---|
549 | <term><filename class='libraryfile'>libecpg.{so,a}</filename></term>
|
---|
550 | <listitem>
|
---|
551 | <para>contains functions to support embedded SQL in C programs.</para>
|
---|
552 | <indexterm zone="postgresql libecpg">
|
---|
553 | <primary sortas="c-libecpg">libecpg.{so,a}</primary>
|
---|
554 | </indexterm>
|
---|
555 | </listitem>
|
---|
556 | </varlistentry>
|
---|
557 |
|
---|
558 | <varlistentry id="libecpg_compat">
|
---|
559 | <term><filename class='libraryfile'>libecpg_compat.{so,a}</filename></term>
|
---|
560 | <listitem>
|
---|
561 | <para>is the ecpg compatibility library.</para>
|
---|
562 | <indexterm zone="postgresql libecpg_compat">
|
---|
563 | <primary sortas="c-libecpg_compat">libecpg_compat.{so,a}</primary>
|
---|
564 | </indexterm>
|
---|
565 | </listitem>
|
---|
566 | </varlistentry>
|
---|
567 |
|
---|
568 | <varlistentry id="libgport">
|
---|
569 | <term><filename class='libraryfile'>libgport.a</filename></term>
|
---|
570 | <listitem>
|
---|
571 | <para>is the port-specific subsystem of the Postgres backend.</para>
|
---|
572 | <indexterm zone="postgresql libgport">
|
---|
573 | <primary sortas="c-libgport">libgport.a</primary>
|
---|
574 | </indexterm>
|
---|
575 | </listitem>
|
---|
576 | </varlistentry>
|
---|
577 |
|
---|
578 | <varlistentry id="libpgtypes">
|
---|
579 | <term><filename class='libraryfile'>libpgtypes.{so,a}</filename></term>
|
---|
580 | <listitem>
|
---|
581 | <para>contains functions for dealing with Postgres data types.</para>
|
---|
582 | <indexterm zone="postgresql libpgtypes">
|
---|
583 | <primary sortas="c-libpgtypes">libpgtypes.{so,a}</primary>
|
---|
584 | </indexterm>
|
---|
585 | </listitem>
|
---|
586 | </varlistentry>
|
---|
587 |
|
---|
588 | <varlistentry id="libpq">
|
---|
589 | <term><filename class='libraryfile'>libpq.{so,a}</filename></term>
|
---|
590 | <listitem>
|
---|
591 | <para>is the C programmer's API to Postgres.</para>
|
---|
592 | <indexterm zone="postgresql libpq">
|
---|
593 | <primary sortas="c-libpq">libpq.{so,a}</primary>
|
---|
594 | </indexterm>
|
---|
595 | </listitem>
|
---|
596 | </varlistentry>
|
---|
597 |
|
---|
598 | </variablelist>
|
---|
599 |
|
---|
600 | </sect2>
|
---|
601 |
|
---|
602 | </sect1>
|
---|