Commit 0b520622 authored by Neil Conway's avatar Neil Conway

This patch makes some improvements and adds some additional detail

to the documentation on routine database maintainence activities.
I also corrected a bunch of SGML markup.
parent e2401872
This diff is collapsed.
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/page.sgml,v 1.16 2003/11/29 19:51:37 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/page.sgml,v 1.17 2003/12/14 00:10:32 neilc Exp $
--> -->
<chapter id="page"> <chapter id="page">
...@@ -151,7 +151,8 @@ data. Empty in ordinary tables.</entry> ...@@ -151,7 +151,8 @@ data. Empty in ordinary tables.</entry>
</table> </table>
<para> <para>
All the details may be found in src/include/storage/bufpage.h. All the details may be found in
<filename>src/include/storage/bufpage.h</filename>.
</para> </para>
<para> <para>
...@@ -305,7 +306,8 @@ data. Empty in ordinary tables.</entry> ...@@ -305,7 +306,8 @@ data. Empty in ordinary tables.</entry>
</table> </table>
<para> <para>
All the details may be found in src/include/access/htup.h. All the details may be found in
<filename>src/include/access/htup.h</filename>.
</para> </para>
<para> <para>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.38 2003/11/29 19:51:37 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.39 2003/12/14 00:10:32 neilc Exp $
--> -->
<chapter id="performance-tips"> <chapter id="performance-tips">
...@@ -100,7 +100,7 @@ $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.38 2003/11/29 19:51:37 pgsql Ex ...@@ -100,7 +100,7 @@ $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.38 2003/11/29 19:51:37 pgsql Ex
<para> <para>
Here are some examples (using the regression test database after a Here are some examples (using the regression test database after a
<literal>VACUUM ANALYZE</>, and 7.3 development sources): <command>VACUUM ANALYZE</>, and 7.3 development sources):
<programlisting> <programlisting>
EXPLAIN SELECT * FROM tenk1; EXPLAIN SELECT * FROM tenk1;
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.21 2003/11/29 19:51:37 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.22 2003/12/14 00:10:32 neilc Exp $
--> -->
<chapter id="plperl"> <chapter id="plperl">
...@@ -152,7 +152,7 @@ SELECT name, empcomp(employee) FROM employee; ...@@ -152,7 +152,7 @@ SELECT name, empcomp(employee) FROM employee;
<para> <para>
The argument values supplied to a PL/Perl function's code are The argument values supplied to a PL/Perl function's code are
simply the input arguments converted to text form (just as if they simply the input arguments converted to text form (just as if they
had been displayed by a <literal>SELECT</literal> statement). had been displayed by a <command>SELECT</command> statement).
Conversely, the <literal>return</> command will accept any string Conversely, the <literal>return</> command will accept any string
that is acceptable input format for the function's declared return that is acceptable input format for the function's declared return
type. So, the PL/Perl programmer can manipulate data values as if type. So, the PL/Perl programmer can manipulate data values as if
......
This diff is collapsed.
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/typeconv.sgml,v 1.41 2003/12/02 00:26:59 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/typeconv.sgml,v 1.42 2003/12/14 00:10:32 neilc Exp $
--> -->
<chapter Id="typeconv"> <chapter Id="typeconv">
...@@ -122,9 +122,9 @@ with, and perhaps converted to, the types of the target columns. ...@@ -122,9 +122,9 @@ with, and perhaps converted to, the types of the target columns.
</term> </term>
<listitem> <listitem>
<para> <para>
Since all query results from a unionized <literal>SELECT</literal> statement Since all query results from a unionized <command>SELECT</command> statement
must appear in a single set of columns, the types of the results of each must appear in a single set of columns, the types of the results of each
<literal>SELECT</> clause must be matched up and converted to a uniform set. <command>SELECT</> clause must be matched up and converted to a uniform set.
Similarly, the branch expressions of a <literal>CASE</> construct must be Similarly, the branch expressions of a <literal>CASE</> construct must be
converted to a common type so that the <literal>CASE</> expression as a whole converted to a common type so that the <literal>CASE</> expression as a whole
has a known output type. The same holds for <literal>ARRAY</> constructs. has a known output type. The same holds for <literal>ARRAY</> constructs.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment