Index: doc/src/sgml/admin.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/admin.sgml,v
retrieving revision 1.40
diff -c -r1.40 admin.sgml
*** doc/src/sgml/admin.sgml	24 Oct 2002 17:48:54 -0000	1.40
--- doc/src/sgml/admin.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 25,37 ****
     <title>What's In This Book</title>
  
     <para>
!     This book covers topics that are of interest to a PostgreSQL
!     database administrator.  This includes installation of the
!     software, set up and configuration of the server, management of
!     users and databases, and maintenance tasks.  Anyone who runs a
!     PostgreSQL server, either for personal use, but especially in
!     production, should be familiar with the topics covered in this
!     book.
     </para>
  
     <para>
--- 25,37 ----
     <title>What's In This Book</title>
  
     <para>
!     This book covers topics that are of interest to a
!     <productname>PostgreSQL</> database administrator.  This includes
!     installation of the software, set up and configuration of the
!     server, management of users and databases, and maintenance tasks.
!     Anyone who runs a <productname>PostgreSQL</> server, either for
!     personal use, but especially in production, should be familiar
!     with the topics covered in this book.
     </para>
  
     <para>
***************
*** 49,57 ****
      up their own server can begin their exploration with this book.
      The rest of this book which is about tuning and management
      presupposes that the reader is familiar with the general use of
!     the PostgreSQL database system.  Readers are encouraged to look at
!     the &cite-tutorial; and the &cite-user; for additional
!     information.
     </para>
  
     <para>
--- 49,57 ----
      up their own server can begin their exploration with this book.
      The rest of this book which is about tuning and management
      presupposes that the reader is familiar with the general use of
!     the <productname>PostgreSQL</> database system.  Readers are
!     encouraged to look at the &cite-tutorial; and the &cite-user; for
!     additional information.
     </para>
  
     <para>
Index: doc/src/sgml/charset.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/charset.sgml,v
retrieving revision 2.29
diff -c -r2.29 charset.sgml
*** doc/src/sgml/charset.sgml	21 Sep 2002 18:32:52 -0000	2.29
--- doc/src/sgml/charset.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 351,357 ****
     </para>
  
      <para>
!     Multibyte support is enabled by default since PostgreSQL version 7.3.
      </para>
  
     <sect2>
--- 351,358 ----
     </para>
  
      <para>
!     Multibyte support is enabled by default since
!     <productname>PostgreSQL</> version 7.3.
      </para>
  
     <sect2>
***************
*** 574,580 ****
       encoding conversion between server and client for some
       encodings. The conversion info is stored in <literal>pg_conversion</> system
       catalog. You can create a new conversion by using <command>CREATE
!      CONVERSION</command>. PostgreSQL comes with some predefined
       conversions. They are listed in <xref
       linkend="multibyte-translation-table">.
      </para>
--- 575,581 ----
       encoding conversion between server and client for some
       encodings. The conversion info is stored in <literal>pg_conversion</> system
       catalog. You can create a new conversion by using <command>CREATE
!      CONVERSION</command>. <productname>PostgreSQL</> comes with some predefined
       conversions. They are listed in <xref
       linkend="multibyte-translation-table">.
      </para>
Index: doc/src/sgml/client-auth.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/client-auth.sgml,v
retrieving revision 1.40
diff -c -r1.40 client-auth.sgml
*** doc/src/sgml/client-auth.sgml	11 Nov 2002 20:14:02 -0000	1.40
--- doc/src/sgml/client-auth.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 160,168 ****
       <term><replaceable>user</replaceable></term>
       <listitem>
        <para>
!        Specifies which PostgreSQL users this record matches. The value
!        <literal>all</literal> specifies that it matches all users.
!        Otherwise, this is the name of a specific
         <productname>PostgreSQL</productname> user. Multiple user names
         can be supplied by separating them with commas. Group names can
         be specified by preceding the group name with <literal>+</>. A
--- 160,168 ----
       <term><replaceable>user</replaceable></term>
       <listitem>
        <para>
!        Specifies which <productname>PostgreSQL</> users this record
!        matches. The value <literal>all</literal> specifies that it
!        matches all users.  Otherwise, this is the name of a specific
         <productname>PostgreSQL</productname> user. Multiple user names
         can be supplied by separating them with commas. Group names can
         be specified by preceding the group name with <literal>+</>. A
Index: doc/src/sgml/datatype.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/datatype.sgml,v
retrieving revision 1.107
diff -c -r1.107 datatype.sgml
*** doc/src/sgml/datatype.sgml	11 Nov 2002 20:14:02 -0000	1.107
--- doc/src/sgml/datatype.sgml	14 Nov 2002 00:58:52 -0000
***************
*** 245,258 ****
    <note>
     <title>Compatibility</title>
     <para>
!     The following types (or spellings thereof) are specified by SQL:
!     <type>bit</type>, <type>bit varying</type>, <type>boolean</type>,
!     <type>char</type>, <type>character</type>, <type>character
!     varying</type>, <type>varchar</type>, <type>date</type>,
!     <type>double precision</type>, <type>integer</type>,
!     <type>interval</type>, <type>numeric</type>, <type>decimal</type>,
!     <type>real</type>, <type>smallint</type>, <type>time</type>,
!     <type>timestamp</type> (both with or without time zone).
     </para>
    </note>
  
--- 245,259 ----
    <note>
     <title>Compatibility</title>
     <para>
!     The following types (or spellings thereof) are specified by
!     <acronym>SQL</acronym>: <type>bit</type>, <type>bit
!     varying</type>, <type>boolean</type>, <type>char</type>,
!     <type>character</type>, <type>character varying</type>,
!     <type>varchar</type>, <type>date</type>, <type>double
!     precision</type>, <type>integer</type>, <type>interval</type>,
!     <type>numeric</type>, <type>decimal</type>, <type>real</type>,
!     <type>smallint</type>, <type>time</type>, <type>timestamp</type>
!     (both with or without time zone).
     </para>
    </note>
  
***************
*** 464,474 ****
      </para>
  
      <para>
!      SQL only specifies the integer types <type>integer</type> (or
!      <type>int</type>) and <type>smallint</type>.  The type
!      <type>bigint</type>, and the type names <type>int2</type>,
!      <type>int4</type>, and <type>int8</type> are extensions, which
!      are shared with various other SQL database systems.
      </para>
  
      <note>
--- 465,476 ----
      </para>
  
      <para>
!      <acronym>SQL</acronym> only specifies the integer types
!      <type>integer</type> (or <type>int</type>) and
!      <type>smallint</type>.  The type <type>bigint</type>, and the
!      type names <type>int2</type>, <type>int4</type>, and
!      <type>int8</type> are extensions, which are shared with various
!      other <acronym>SQL</acronym> database systems.
      </para>
  
      <note>
***************
*** 536,548 ****
  NUMERIC
  </programlisting>
       without any precision or scale creates a column in which numeric
!      values of any precision and scale can be stored, up to the implementation
!      limit on precision.  A column of this kind will not coerce input
!      values to any particular scale, whereas <type>numeric</type> columns
!      with a declared scale will coerce input values to that scale.
!      (The SQL standard requires a default scale of 0, i.e., coercion to
!      integer precision.  We find this a bit useless.  If you're concerned about
!      portability, always specify the precision and scale explicitly.)
      </para>
  
      <para>
--- 538,552 ----
  NUMERIC
  </programlisting>
       without any precision or scale creates a column in which numeric
!      values of any precision and scale can be stored, up to the
!      implementation limit on precision.  A column of this kind will
!      not coerce input values to any particular scale, whereas
!      <type>numeric</type> columns with a declared scale will coerce
!      input values to that scale.  (The <acronym>SQL</acronym> standard
!      requires a default scale of 0, i.e., coercion to integer
!      precision.  We find this a bit useless.  If you're concerned
!      about portability, always specify the precision and scale
!      explicitly.)
      </para>
  
      <para>
***************
*** 554,560 ****
  
      <para>
       The types <type>decimal</type> and <type>numeric</type> are
!      equivalent.  Both types are part of the SQL standard.
      </para>
     </sect2>
  
--- 558,565 ----
  
      <para>
       The types <type>decimal</type> and <type>numeric</type> are
!      equivalent.  Both types are part of the <acronym>SQL</acronym>
!      standard.
      </para>
     </sect2>
  
***************
*** 806,812 ****
  
     <para>
      <xref linkend="datatype-character-table"> shows the
!     general-purpose character types available in PostgreSQL.
     </para>
  
     <para>
--- 811,818 ----
  
     <para>
      <xref linkend="datatype-character-table"> shows the
!     general-purpose character types available in
!     <productname>PostgreSQL</productname>.
     </para>
  
     <para>
***************
*** 818,828 ****
      longer string into a column of these types will result in an
      error, unless the excess characters are all spaces, in which case
      the string will be truncated to the maximum length.  (This
!     somewhat bizarre exception is required by the SQL standard.)  If
!     the string to be stored is shorter than the declared length,
!     values of type <type>character</type> will be space-padded; values
!     of type <type>character varying</type> will simply store the
!     shorter string.
     </para>
  
     <note>
--- 824,835 ----
      longer string into a column of these types will result in an
      error, unless the excess characters are all spaces, in which case
      the string will be truncated to the maximum length.  (This
!     somewhat bizarre exception is required by the
!     <acronym>SQL</acronym> standard.)  If the string to be stored is
!     shorter than the declared length, values of type
!     <type>character</type> will be space-padded; values of type
!     <type>character varying</type> will simply store the shorter
!     string.
     </para>
  
     <note>
***************
*** 831,837 ****
       <type>character(<replaceable>n</>)</type> or <type>character
       varying(<replaceable>n</>)</type>, then an overlength value will
       be truncated to <replaceable>n</> characters without raising an
!      error.  (This too is required by the SQL standard.)
      </para>
     </note>
  
--- 838,845 ----
       <type>character(<replaceable>n</>)</type> or <type>character
       varying(<replaceable>n</>)</type>, then an overlength value will
       be truncated to <replaceable>n</> characters without raising an
!      error.  (This too is required by the <acronym>SQL</acronym>
!      standard.)
      </para>
     </note>
  
***************
*** 859,866 ****
      more general <type>text</type> type, which stores strings of any
      length.  Unlike <type>character varying</type>, <type>text</type>
      does not require an explicit declared upper limit on the size of
!     the string.  Although the type <type>text</type> is not in the SQL
!     standard, many other RDBMS packages have it as well.
     </para>
  
     <para>
--- 867,875 ----
      more general <type>text</type> type, which stores strings of any
      length.  Unlike <type>character varying</type>, <type>text</type>
      does not require an explicit declared upper limit on the size of
!     the string.  Although the type <type>text</type> is not in the
!     <acronym>SQL</acronym> standard, many other RDBMS packages have it
!     as well.
     </para>
  
     <para>
***************
*** 1125,1136 ****
  
     <para>
      To use the <type>bytea</type> escaped octet notation, string
!     literals (input strings) must contain two backslashes due because
!     they must pass through two parsers in the PostgreSQL server. The
!     first backslash is interpreted as an escape character by the
!     string-literal parser, and therefore is consumed, leaving the
!     characters that follow.  The remaining backslash is recognized by
!     the <type>bytea</type> input function as the prefix of a three
      digit octal value. For example, a string literal passed to the
      backend as <literal>'\\001'</literal> becomes
      <literal>'\001'</literal> after passing through the string-literal
--- 1134,1145 ----
  
     <para>
      To use the <type>bytea</type> escaped octet notation, string
!     literals (input strings) must contain two backslashes because they
!     must pass through two parsers in the <productname>PostgreSQL</>
!     server. The first backslash is interpreted as an escape character
!     by the string-literal parser, and therefore is consumed, leaving
!     the characters that follow.  The remaining backslash is recognized
!     by the <type>bytea</type> input function as the prefix of a three
      digit octal value. For example, a string literal passed to the
      backend as <literal>'\\001'</literal> becomes
      <literal>'\001'</literal> after passing through the string-literal
***************
*** 1170,1190 ****
     </para>
  
     <para>
!     Depending on the front end to PostgreSQL you use, you may have
!     additional work to do in terms of escaping and unescaping
!     <type>bytea</type> strings. For example, you may also have to escape
!     line feeds and carriage returns if your interface automatically
!     translates these. Or you may have to double up on backslashes if
!     the parser for your language or choice also treats them as an
!     escape character.
     </para>
  
!   <para>
!    The SQL standard defines a different binary string type, called
!    <type>BLOB</type> or <type>BINARY LARGE OBJECT</type>.  The input
!    format is different compared to <type>bytea</type>, but the
!    provided functions and operators are mostly the same.
!   </para>
   </sect1>
  
  
--- 1179,1200 ----
     </para>
  
     <para>
!     Depending on the front end to <productname>PostgreSQL</> you use,
!     you may have additional work to do in terms of escaping and
!     unescaping <type>bytea</type> strings. For example, you may also
!     have to escape line feeds and carriage returns if your interface
!     automatically translates these. Or you may have to double up on
!     backslashes if the parser for your language or choice also treats
!     them as an escape character.
     </para>
  
!    <para>
! 	The <acronym>SQL</acronym> standard defines a different binary
! 	string type, called <type>BLOB</type> or <type>BINARY LARGE
! 	 OBJECT</type>.  The input format is different compared to
! 	<type>bytea</type>, but the provided functions and operators are
! 	mostly the same.
!    </para>
   </sect1>
  
  
***************
*** 1781,1791 ****
       Output formats can be set to one of the four styles ISO 8601,
       <acronym>SQL</acronym> (Ingres), traditional PostgreSQL, and
       German, using the <command>SET DateStyle</command>.  The default
!      is the <acronym>ISO</acronym> format.  (The SQL standard requires
!      the use of the ISO 8601 format.  The name of the
!      <quote>SQL</quote> output format is a historical accident.)
!      <xref linkend="datatype-datetime-output-table"> shows examples of
!      each output style.  The output of the <type>date</type> and
       <type>time</type> types is of course only the date or time part
       in accordance with the given examples.
      </para>
--- 1791,1802 ----
       Output formats can be set to one of the four styles ISO 8601,
       <acronym>SQL</acronym> (Ingres), traditional PostgreSQL, and
       German, using the <command>SET DateStyle</command>.  The default
!      is the <acronym>ISO</acronym> format.  (The
!      <acronym>SQL</acronym> standard requires the use of the ISO 8601
!      format.  The name of the <quote>SQL</quote> output format is a
!      historical accident.)  <xref
!      linkend="datatype-datetime-output-table"> shows examples of each
!      output style.  The output of the <type>date</type> and
       <type>time</type> types is of course only the date or time part
       in accordance with the given examples.
      </para>
***************
*** 1920,1953 ****
      </para>
  
      <para>
!      To address these difficulties, we recommend using date/time
!      types that contain both date and time when using time zones. We
!      recommend <emphasis>not</emphasis> using the type <type>time
!      with time zone</type> (though it is supported by
       <productname>PostgreSQL</productname> for legacy applications and
!      for compatibility with other SQL implementations).
!      <productname>PostgreSQL</productname> 
!      assumes your local time zone for any type containing only
!      date or time. Further, time zone support is derived from 
!      the underlying operating system
!      time-zone capabilities, and hence can handle daylight-saving time 
!      and other expected behavior.
      </para>
  
      <para>
!      <productname>PostgreSQL</productname> obtains time-zone support 
       from the underlying operating system for dates between 1902 and
       2038 (near the typical date limits for Unix-style
       systems). Outside of this range, all dates are assumed to be
!      specified and used in Universal Coordinated Time (UTC).
      </para>
  
      <para>
!      All dates and times are stored internally in UTC,
!      traditionally known as Greenwich Mean Time (GMT). 
!      Times are converted to local time on the database server before being
!      sent to the client frontend, hence by default are in the server
!      time zone.
      </para>
  
      <para>
--- 1931,1964 ----
      </para>
  
      <para>
!      To address these difficulties, we recommend using date/time types
!      that contain both date and time when using time zones. We
!      recommend <emphasis>not</emphasis> using the type <type>time with
!      time zone</type> (though it is supported by
       <productname>PostgreSQL</productname> for legacy applications and
!      for compatibility with other <acronym>SQL</acronym>
!      implementations).  <productname>PostgreSQL</productname> assumes
!      your local time zone for any type containing only date or
!      time. Further, time zone support is derived from the underlying
!      operating system time-zone capabilities, and hence can handle
!      daylight-saving time and other expected behavior.
      </para>
  
      <para>
!      <productname>PostgreSQL</productname> obtains time-zone support
       from the underlying operating system for dates between 1902 and
       2038 (near the typical date limits for Unix-style
       systems). Outside of this range, all dates are assumed to be
!      specified and used in Universal Coordinated Time
!      (<acronym>UTC</acronym>).
      </para>
  
      <para>
!      All dates and times are stored internally in
!      <acronym>UTC</acronym>, traditionally known as Greenwich Mean
!      Time (<acronym>GMT</acronym>).  Times are converted to local time
!      on the database server before being sent to the client frontend,
!      hence by default are in the server time zone.
      </para>
  
      <para>
***************
*** 1993,2000 ****
  
       <note>
        <para>
!        If an invalid time zone is specified,
!        the time zone becomes GMT (on most systems anyway).
        </para>
       </note>
  
--- 2004,2011 ----
  
       <note>
        <para>
!        If an invalid time zone is specified, the time zone becomes
!        <acronym>UTC</acronym> (on most systems anyway).
        </para>
       </note>
  
***************
*** 2124,2131 ****
     <para>
      Geometric data types represent two-dimensional spatial
      objects. <xref linkend="datatype-geo-table"> shows the geometric
!     types available in PostgreSQL.  The most fundamental type, the
!     point, forms the basis for all of the other types.
     </para>
  
      <table id="datatype-geo-table">
--- 2135,2143 ----
     <para>
      Geometric data types represent two-dimensional spatial
      objects. <xref linkend="datatype-geo-table"> shows the geometric
!     types available in <productname>PostgreSQL</productname>.  The
!     most fundamental type, the point, forms the basis for all of the
!     other types.
     </para>
  
      <table id="datatype-geo-table">
***************
*** 2746,2754 ****
  
     <note>
      <para>
!      Prior to <productname>PostgreSQL</> 7.2, <type>BIT</type> data was
!      always silently truncated or zero-padded on the right, with or without an
!      explicit cast. This was changed to comply with the SQL standard.
      </para>
     </note>
  
--- 2758,2767 ----
  
     <note>
      <para>
!      Prior to <productname>PostgreSQL</> 7.2, <type>BIT</type> data
!      was always silently truncated or zero-padded on the right, with
!      or without an explicit cast. This was changed to comply with the
!      <acronym>SQL</acronym> standard.
      </para>
     </note>
  
***************
*** 2978,2991 ****
     </para>
  
     <para>
!     A third identifier type used by the system is <type>cid</>, or command
!     identifier.  This is the data type of the system columns
!     <structfield>cmin</> and <structfield>cmax</>.
!     Command identifiers are also 32-bit quantities.  This creates a hard
!     limit of 2<superscript>32</> (4 billion) SQL commands within a single
!     transaction.
!     In practice this limit is not a problem --- note that the limit is on
!     number of SQL commands, not number of tuples processed.
     </para>
  
     <para>
--- 2991,3004 ----
     </para>
  
     <para>
!     A third identifier type used by the system is <type>cid</>, or
!     command identifier.  This is the data type of the system columns
!     <structfield>cmin</> and <structfield>cmax</>.  Command
!     identifiers are also 32-bit quantities.  This creates a hard limit
!     of 2<superscript>32</> (4 billion) <acronym>SQL</acronym> commands
!     within a single transaction.  In practice this limit is not a
!     problem --- note that the limit is on number of
!     <acronym>SQL</acronym> commands, not number of tuples processed.
     </para>
  
     <para>
***************
*** 3044,3052 ****
      column data type, but it can be used to declare a function's
      argument or result type.  Each of the available pseudo-types is
      useful in situations where a function's behavior does not
!     correspond to simply taking or returning a value of a specific SQL
!     data type.  <xref linkend="datatype-pseudotypes-table"> lists the
!     existing pseudo-types.
     </para>
  
      <table id="datatype-pseudotypes-table">
--- 3057,3066 ----
      column data type, but it can be used to declare a function's
      argument or result type.  Each of the available pseudo-types is
      useful in situations where a function's behavior does not
!     correspond to simply taking or returning a value of a specific
!     <acronym>SQL</acronym> data type.  <xref
!     linkend="datatype-pseudotypes-table"> lists the existing
!     pseudo-types.
     </para>
  
      <table id="datatype-pseudotypes-table">
***************
*** 3126,3139 ****
     </para>
  
     <para>
!     The <type>internal</> pseudo-type is used to declare functions that are
!     meant only to be called internally by the database system, and not by
!     direct invocation in a SQL query.  If a function has at least one
!     <type>internal</>-type argument then it cannot be called from SQL.
!     To preserve the type safety of this restriction it is important to
!     follow this coding rule: do not create any function that is declared
!     to return <type>internal</> unless it has at least one <type>internal</>
!     argument.
     </para>
  
    </sect1>
--- 3140,3154 ----
     </para>
  
     <para>
!     The <type>internal</> pseudo-type is used to declare functions
!     that are meant only to be called internally by the database
!     system, and not by direct invocation in a <acronym>SQL</acronym>
!     query.  If a function has at least one <type>internal</>-type
!     argument then it cannot be called from <acronym>SQL</acronym>.  To
!     preserve the type safety of this restriction it is important to
!     follow this coding rule: do not create any function that is
!     declared to return <type>internal</> unless it has at least one
!     <type>internal</> argument.
     </para>
  
    </sect1>
Index: doc/src/sgml/ddl.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ddl.sgml,v
retrieving revision 1.9
diff -c -r1.9 ddl.sgml
*** doc/src/sgml/ddl.sgml	11 Nov 2002 20:14:02 -0000	1.9
--- doc/src/sgml/ddl.sgml	14 Nov 2002 00:59:41 -0000
***************
*** 1103,1111 ****
  ALTER TABLE products ALTER COLUMN price DROP DEFAULT;
  </programlisting>
      This is equivalent to setting the default to null, at least in
!     PostgreSQL.  As a consequence, it is not an error to drop a
!     default where one hadn't been defined, because the default is
!     implicitly the null value.
     </para>
    </sect2>
  
--- 1103,1111 ----
  ALTER TABLE products ALTER COLUMN price DROP DEFAULT;
  </programlisting>
      This is equivalent to setting the default to null, at least in
!     <productname>PostgreSQL</>.  As a consequence, it is not an error
!     to drop a default where one hadn't been defined, because the
!     default is implicitly the null value.
     </para>
    </sect2>
  
***************
*** 1609,1616 ****
      standard.  Therefore, many users consider qualified names to
      really consist of
      <literal><replaceable>username</>.<replaceable>tablename</></literal>.
!     This is how PostgreSQL will effectively behave if you create a per-user
!     schema for every user.
     </para>
  
     <para>
--- 1609,1616 ----
      standard.  Therefore, many users consider qualified names to
      really consist of
      <literal><replaceable>username</>.<replaceable>tablename</></literal>.
!     This is how <productname>PostgreSQL</productname> will effectively
!     behave if you create a per-user schema for every user.
     </para>
  
     <para>
Index: doc/src/sgml/diskusage.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/diskusage.sgml,v
retrieving revision 1.7
diff -c -r1.7 diskusage.sgml
*** doc/src/sgml/diskusage.sgml	11 Nov 2002 20:14:02 -0000	1.7
--- doc/src/sgml/diskusage.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 6,16 ****
   <title>Monitoring Disk Usage</title>
  
   <para>
!   This chapter discusses how to monitor the disk usage of a PostgreSQL
!   database system.  In the current release, the database administrator
!   does not have much control over the on-disk storage layout, so this
!   chapter is mostly informative and can give you some ideas how to
!   manage the disk usage with operating system tools.
   </para>
  
   <sect1 id="disk-usage">
--- 6,17 ----
   <title>Monitoring Disk Usage</title>
  
   <para>
!   This chapter discusses how to monitor the disk usage of a
!   <productname>PostgreSQL</> database system.  In the current
!   release, the database administrator does not have much control over
!   the on-disk storage layout, so this chapter is mostly informative
!   and can give you some ideas how to manage the disk usage with
!   operating system tools.
   </para>
  
   <sect1 id="disk-usage">
Index: doc/src/sgml/ecpg.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ecpg.sgml,v
retrieving revision 1.39
diff -c -r1.39 ecpg.sgml
*** doc/src/sgml/ecpg.sgml	24 Oct 2002 17:48:54 -0000	1.39
--- doc/src/sgml/ecpg.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 38,63 ****
     for handling <acronym>SQL</acronym> commands from C code. First, it
     takes care of the tedious passing of information to and from
     variables in your <acronym>C</acronym> program.  Secondly, embedded
!    SQL in C is defined in the SQL standard and supported by many other
!    SQL databases.  The PostgreSQL implementation is designed to match
!    this standard as much as possible, and it is usually possible to
!    port embedded <acronym>SQL</acronym> programs written for other
     <acronym>RDBMS</acronym> to <productname>PostgreSQL</productname>
     with relative ease.
    </para>
  
    <para>
!    As indicated, programs written for the embedded SQL interface are
!    normal C programs with special code inserted to perform
!    database-related actions.  This special code always has the form
  <programlisting>
  EXEC SQL ...;
  </programlisting>
     These statements syntactically take the place of a C statement.
     Depending on the particular statement, they may appear in the
!    global context or within a function.  Embedded SQL statements
!    follow the case-sensitivity rules of normal SQL code, and not those
!    of C.
    </para>
  
    <para>
--- 38,66 ----
     for handling <acronym>SQL</acronym> commands from C code. First, it
     takes care of the tedious passing of information to and from
     variables in your <acronym>C</acronym> program.  Secondly, embedded
!    <acronym>SQL</acronym> in C is defined in the
!    <acronym>SQL</acronym> standard and supported by many other
!    <acronym>SQL</acronym> databases.  The <productname>PostgreSQL</>
!    implementation is designed to match this standard as much as
!    possible, and it is usually possible to port embedded
!    <acronym>SQL</acronym> programs written for other
     <acronym>RDBMS</acronym> to <productname>PostgreSQL</productname>
     with relative ease.
    </para>
  
    <para>
!    As indicated, programs written for the embedded
!    <acronym>SQL</acronym> interface are normal C programs with special
!    code inserted to perform database-related actions.  This special
!    code always has the form
  <programlisting>
  EXEC SQL ...;
  </programlisting>
     These statements syntactically take the place of a C statement.
     Depending on the particular statement, they may appear in the
!    global context or within a function.  Embedded
!    <acronym>SQL</acronym> statements follow the case-sensitivity rules
!    of normal <acronym>SQL</acronym> code, and not those of C.
    </para>
  
    <para>
***************
*** 748,755 ****
  
    <para>
     The preprocessor program is called <filename>ecpg</filename> and is
!    included in a normal PostgreSQL installation.  Embedded SQL
!    programs are typically named with an extension
     <filename>.pgc</filename>.  If you have a program file called
     <filename>prog1.pgc</filename>, you can preprocess it by simply
     calling
--- 751,758 ----
  
    <para>
     The preprocessor program is called <filename>ecpg</filename> and is
!    included in a normal <productname>PostgreSQL</> installation.
!    Embedded SQL programs are typically named with an extension
     <filename>.pgc</filename>.  If you have a program file called
     <filename>prog1.pgc</filename>, you can preprocess it by simply
     calling
***************
*** 768,777 ****
  cc -c prog1.c
  </programlisting>
     The generated C source files include headers files from the
!    PostgreSQL installation, so if you installed PostgreSQL in a
!    location that is not searched by default, you have to add an option
!    such as <literal>-I/usr/local/pgsql/include</literal> to the
!    compilation command line.
    </para>
  
    <para>
--- 771,781 ----
  cc -c prog1.c
  </programlisting>
     The generated C source files include headers files from the
!    <productname>PostgreSQL</> installation, so if you installed
!    <productname>PostgreSQL</> in a location that is not searched by
!    default, you have to add an option such as
!    <literal>-I/usr/local/pgsql/include</literal> to the compilation
!    command line.
    </para>
  
    <para>
Index: doc/src/sgml/features.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/features.sgml,v
retrieving revision 2.7
diff -c -r2.7 features.sgml
*** doc/src/sgml/features.sgml	21 Sep 2002 18:32:53 -0000	2.7
--- doc/src/sgml/features.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 15,25 ****
    </para>
  
    <para>
!    <acronym>SQL99</acronym> defines a large set of individual
!    features rather than the ineffectively broad three levels found in
     <acronym>SQL92</acronym>. We provide a list of supported features,
!    followed by a list of the features defined in SQL99 which are not
!    yet supported in PostgreSQL.
    </para>
  
    <sect1 id="features-sql99">
--- 15,26 ----
    </para>
  
    <para>
!    <acronym>SQL99</acronym> defines a large set of individual features
!    rather than the ineffectively broad three levels found in
     <acronym>SQL92</acronym>. We provide a list of supported features,
!    followed by a list of the features defined in
!    <acronym>SQL99</acronym> which are not yet supported in
!    <productname>PostgreSQL</>.
    </para>
  
    <sect1 id="features-sql99">
Index: doc/src/sgml/info.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/info.sgml,v
retrieving revision 1.16
diff -c -r1.16 info.sgml
*** doc/src/sgml/info.sgml	24 Oct 2002 17:48:54 -0000	1.16
--- doc/src/sgml/info.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 6,12 ****
   <title>Overview of Documentation Resources</title>
  
   <para>
!   The PostgreSQL documentation is organized into several books:
  
    <variablelist>
     <varlistentry>
--- 6,13 ----
   <title>Overview of Documentation Resources</title>
  
   <para>
!   The <productname>PostgreSQL</> documentation is organized into
!   several books:
  
    <variablelist>
     <varlistentry>
***************
*** 22,30 ****
      <term>&cite-user;</term>
      <listitem>
       <para>
!       Documents the SQL query language environment, including data
!       types and functions, as well as user-level performance tuning.
!       Every PostgreSQL user should read this.
       </para>
      </listitem>
     </varlistentry>
--- 23,32 ----
      <term>&cite-user;</term>
      <listitem>
       <para>
!       Documents the <acronym>SQL</acronym> query language environment,
!       including data types and functions, as well as user-level
!       performance tuning.  Every <productname>PostgreSQL</> user
!       should read this.
       </para>
      </listitem>
     </varlistentry>
***************
*** 34,41 ****
      <listitem>
       <para>
        Installation and server management information.  Everyone who
!       runs a PostgreSQL server, either for personal use or for other
!       users, needs to read this.
       </para>
      </listitem>
     </varlistentry>
--- 36,43 ----
      <listitem>
       <para>
        Installation and server management information.  Everyone who
!       runs a <productname>PostgreSQL</> server, either for personal
!       use or for other users, needs to read this.
       </para>
      </listitem>
     </varlistentry>
***************
*** 55,63 ****
      <term>&cite-reference;</term>
      <listitem>
       <para>
!       Reference pages for SQL command syntax, and client and server
!       programs.  This book is auxiliary to the User's,
!       Administrator's, and Programmer's Guides.
       </para>
      </listitem>
     </varlistentry>
--- 57,65 ----
      <term>&cite-reference;</term>
      <listitem>
       <para>
!       Reference pages for <acronym>SQL</acronym> command syntax, and
!       client and server programs.  This book is auxiliary to the
!       User's, Administrator's, and Programmer's Guides.
       </para>
      </listitem>
     </varlistentry>
Index: doc/src/sgml/installation.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/installation.sgml,v
retrieving revision 1.112
diff -c -r1.112 installation.sgml
*** doc/src/sgml/installation.sgml	12 Nov 2002 20:19:55 -0000	1.112
--- doc/src/sgml/installation.sgml	14 Nov 2002 01:14:47 -0000
***************
*** 68,76 ****
        <application>make</> programs will <emphasis>not</> work.
        <acronym>GNU</> <application>make</> is often installed under
        the name <filename>gmake</filename>; this document will always
!       refer to it by that name. (On some systems GNU make is the
!       default tool with the name <filename>make</>.) To test for
!       <acronym>GNU</acronym> <application>make</application> enter
  <screen>
  <userinput>gmake --version</userinput>
  </screen>
--- 68,77 ----
        <application>make</> programs will <emphasis>not</> work.
        <acronym>GNU</> <application>make</> is often installed under
        the name <filename>gmake</filename>; this document will always
!       refer to it by that name. (On some systems
!       <acronym>GNU</acronym> make is the default tool with the name
!       <filename>make</>.) To test for <acronym>GNU</acronym>
!       <application>make</application> enter
  <screen>
  <userinput>gmake --version</userinput>
  </screen>
***************
*** 137,145 ****
      <listitem>
       <para>
        To build the server programming language PL/Perl you need a full
!       Perl installation, including the <filename>libperl</filename>
!       library and the header files.  Since PL/Perl will be a shared
!       library, the <indexterm><primary>libperl</primary></indexterm>
        <filename>libperl</filename> library must be a shared library
        also on most platforms.  This appears to be the default in
        recent Perl versions, but it was not in earlier versions, and in
--- 138,147 ----
      <listitem>
       <para>
        To build the server programming language PL/Perl you need a full
!       <productname>Perl</productname> installation, including the
!       <filename>libperl</filename> library and the header files.
!       Since PL/Perl will be a shared library, the
!       <indexterm><primary>libperl</primary></indexterm>
        <filename>libperl</filename> library must be a shared library
        also on most platforms.  This appears to be the default in
        recent Perl versions, but it was not in earlier versions, and in
***************
*** 198,205 ****
        url="http://www.python.org/doc/FAQ.html#3.30">Python FAQ
        3.30</ulink>.  On some operating systems you don't really have
        to build a shared library, but then you will have to convince
!       the PostgreSQL build system of this.  Consult the
!       <filename>Makefile</filename> in the
        <filename>src/pl/plpython</filename> directory for details.
       </para>
      </listitem>
--- 200,207 ----
        url="http://www.python.org/doc/FAQ.html#3.30">Python FAQ
        3.30</ulink>.  On some operating systems you don't really have
        to build a shared library, but then you will have to convince
!       the <productname>PostgreSQL</> build system of this.  Consult
!       the <filename>Makefile</filename> in the
        <filename>src/pl/plpython</filename> directory for details.
       </para>
      </listitem>
***************
*** 250,267 ****
       <para>
        To enable Native Language Support (<acronym>NLS</acronym>), that
        is, the ability to display a program's messages in a language
!       other than English, you need an implementation of the <application>Gettext</>
!       <acronym>API</acronym>.  Some operating systems have this
!       built-in (e.g., <systemitem class="osname">Linux</>, <systemitem
!       class="osname">NetBSD</>, <systemitem
!       class="osname">Solaris</>), for other systems you can download
!       an add-on package from here: <ulink
        url="http://www.postgresql.org/~petere/gettext.html" ></ulink>.
        If you are using the <application>gettext</> implementation in
!       the GNU C library then you will additionally need the
!       <productname>GNU Gettext</productname> package for some utility
!       programs.  For any of the other implementations you will not
!       need it.
       </para>
      </listitem>
  
--- 252,269 ----
       <para>
        To enable Native Language Support (<acronym>NLS</acronym>), that
        is, the ability to display a program's messages in a language
!       other than English, you need an implementation of the
!       <application>Gettext</> <acronym>API</acronym>.  Some operating
!       systems have this built-in (e.g., <systemitem
!       class="osname">Linux</>, <systemitem class="osname">NetBSD</>,
!       <systemitem class="osname">Solaris</>), for other systems you
!       can download an add-on package from here: <ulink
        url="http://www.postgresql.org/~petere/gettext.html" ></ulink>.
        If you are using the <application>gettext</> implementation in
!       the <acronym>GNU</acronym> C library then you will additionally
!       need the <productname>GNU Gettext</productname> package for some
!       utility programs.  For any of the other implementations you will
!       not need it.
       </para>
      </listitem>
  
***************
*** 276,284 ****
    </para>
  
    <para>
!    If you are build from a CVS tree instead of using a released source
!    package, or if you want to do development, you also need the
!    following packages:
  
     <itemizedlist>
      <listitem>
--- 278,286 ----
    </para>
  
    <para>
!    If you are build from a <acronym>CVS</acronym> tree instead of
!    using a released source package, or if you want to do development,
!    you also need the following packages:
  
     <itemizedlist>
      <listitem>
***************
*** 1257,1264 ****
      add <filename>/usr/local/pgsql/bin</> (or whatever you set
      <option><literal>--bindir</></> to in <xref linkend="configure">)
      into your <envar>PATH</>.  Strictly speaking, this is not
!     necessary, but it will make the use of PostgreSQL much more
!     convenient.
     </para>
  
     <para>
--- 1259,1266 ----
      add <filename>/usr/local/pgsql/bin</> (or whatever you set
      <option><literal>--bindir</></> to in <xref linkend="configure">)
      into your <envar>PATH</>.  Strictly speaking, this is not
!     necessary, but it will make the use of <productname>PostgreSQL</>
!     much more convenient.
     </para>
  
     <para>
Index: doc/src/sgml/jdbc.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/jdbc.sgml,v
retrieving revision 1.40
diff -c -r1.40 jdbc.sgml
*** doc/src/sgml/jdbc.sgml	11 Nov 2002 07:31:28 -0000	1.40
--- doc/src/sgml/jdbc.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 51,66 ****
     </para>
  
     <para>
!     Alternatively you can build the driver from source, but you
!     should only need to do this if you are making changes to the
!     source code.  For details, refer to the PostgreSQL installation
      instructions.  After installation, the driver should be found in
      <filename><replaceable>PREFIX</>/share/java/postgresql.jar</filename>.
      The resulting driver will be built for the version of Java you are
!     running.  If you build with a 1.1 <acronym>JDK</> you will build a version
!     that supports the JDBC 1 specification, if you build with a Java 2
!     <acronym>JDK</> (e.g., <acronym>JDK</> 1.2 or <acronym>JDK</> 1.3) you will build a version that
!     supports the JDBC 2 specification.
     </para>
    </sect2>
  
--- 51,67 ----
     </para>
  
     <para>
!     Alternatively you can build the driver from source, but you should
!     only need to do this if you are making changes to the source code.
!     For details, refer to the <productname>PostgreSQL</> installation
      instructions.  After installation, the driver should be found in
      <filename><replaceable>PREFIX</>/share/java/postgresql.jar</filename>.
      The resulting driver will be built for the version of Java you are
!     running.  If you build with a 1.1 <acronym>JDK</> you will build a
!     version that supports the JDBC 1 specification, if you build with
!     a Java 2 <acronym>JDK</> (e.g., <acronym>JDK</> 1.2 or
!     <acronym>JDK</> 1.3) you will build a version that supports the
!     JDBC 2 specification.
     </para>
    </sect2>
  
Index: doc/src/sgml/libpgtcl.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/libpgtcl.sgml,v
retrieving revision 1.32
diff -c -r1.32 libpgtcl.sgml
*** doc/src/sgml/libpgtcl.sgml	8 Nov 2002 04:56:40 -0000	1.32
--- doc/src/sgml/libpgtcl.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 1112,1118 ****
  <TITLE>Description
  </TITLE>
  <PARA>
! <FUNCTION>pg_execute</FUNCTION> submits a query to the PostgreSQL backend.
  </PARA>
  <PARA>
  If the query is not a SELECT statement, the query is executed and the
--- 1112,1119 ----
  <TITLE>Description
  </TITLE>
  <PARA>
! <FUNCTION>pg_execute</FUNCTION> submits a query to the
! <PRODUCTNAME>PostgreSQL</> backend.
  </PARA>
  <PARA>
  If the query is not a SELECT statement, the query is executed and the
Index: doc/src/sgml/libpq.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/libpq.sgml,v
retrieving revision 1.101
diff -c -r1.101 libpq.sgml
*** doc/src/sgml/libpq.sgml	11 Nov 2002 20:14:03 -0000	1.101
--- doc/src/sgml/libpq.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 957,968 ****
  
    <para>
     <function>PQescapeBytea</> returns an escaped version of the
!    <parameter>from</parameter> parameter binary string, to a caller-provided
!     buffer. The return string has all special characters replaced
!    so that they can be properly processed by the PostgreSQL string literal
!    parser, and the <type>bytea</type> input function. A terminating zero
!    byte is also added.  The single quotes that must surround
!    PostgreSQL string literals are not part of the result string.
    </para>
  
    <para>
--- 957,970 ----
  
    <para>
     <function>PQescapeBytea</> returns an escaped version of the
!    <parameter>from</parameter> parameter binary string, to a
!    caller-provided buffer. The return string has all special
!    characters replaced so that they can be properly processed by the
!    <productname>PostgreSQL</> string literal parser, and the
!    <type>bytea</type> input function. A terminating zero byte is also
!    added.  The single quotes that must surround
!    <productname>PostgreSQL</> string literals are not part of the
!    result string.
    </para>
  
    <para>
Index: doc/src/sgml/manage-ag.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/manage-ag.sgml,v
retrieving revision 2.23
diff -c -r2.23 manage-ag.sgml
*** doc/src/sgml/manage-ag.sgml	11 Nov 2002 20:14:03 -0000	2.23
--- doc/src/sgml/manage-ag.sgml	14 Nov 2002 01:01:28 -0000
***************
*** 8,32 ****
   <indexterm zone="managing-databases"><primary>database</></>
  
   <para>
!   Every instance of a running PostgreSQL server manages one or more
!   databases.  Databases are therefore the topmost hierarchical level
!   for organizing SQL objects (<quote>database objects</quote>).  This
!   chapter describes the properties of databases, and how to create,
!   manage, and destroy them.
   </para>
  
   <sect1>
    <title>Overview</title>
  
    <para>
!    A database is a named collection of SQL objects (<quote>database
!    objects</quote>).  Generally, every database object (tables,
!    functions, etc.) belongs to one and only one database.  (But there
!    are a few system catalogs, for example <literal>pg_database</>,
!    that belong to a whole installation and are accessible from each
!    database within the installation.)  More accurately, a database is
!    a collection of schemas and the schemas contain the tables,
!    functions, etc.  So the full hierarchy is:
     server, database, schema, table (or something else instead of a
     table).
    </para>
--- 8,33 ----
   <indexterm zone="managing-databases"><primary>database</></>
  
   <para>
!   Every instance of a running <productname>PostgreSQL</productname>
!   server manages one or more databases.  Databases are therefore the
!   topmost hierarchical level for organizing <acronym>SQL</acronym>
!   objects (<quote>database objects</quote>).  This chapter describes
!   the properties of databases, and how to create, manage, and destroy
!   them.
   </para>
  
   <sect1>
    <title>Overview</title>
  
    <para>
!    A database is a named collection of <acronym>SQL</acronym> objects
!    (<quote>database objects</quote>).  Generally, every database
!    object (tables, functions, etc.) belongs to one and only one
!    database.  (But there are a few system catalogs, for example
!    <literal>pg_database</>, that belong to a whole installation and
!    are accessible from each database within the installation.)  More
!    accurately, a database is a collection of schemas and the schemas
!    contain the tables, functions, etc.  So the full hierarchy is:
     server, database, schema, table (or something else instead of a
     table).
    </para>
***************
*** 41,53 ****
     connection.  Schemas are a purely logical structure and who can
     access what is managed by the privilege system.  Databases are
     physically separated and access control is managed at the
!    connection level.  If one PostgreSQL server instance is to house
!    projects or users that should be separate and for the most part
!    unaware of each other, it is therefore recommendable to put them
!    into separate databases.  If the projects or users are interrelated
!    and should be able to use each other's resources they should be put
!    in the same databases but possibly into separate schemas.  More
!    information about managing schemas is in the &cite-user;.
    </para>
  
    <note>
--- 42,55 ----
     connection.  Schemas are a purely logical structure and who can
     access what is managed by the privilege system.  Databases are
     physically separated and access control is managed at the
!    connection level.  If one <productname>PostgreSQL</> server
!    instance is to house projects or users that should be separate and
!    for the most part unaware of each other, it is therefore
!    recommendable to put them into separate databases.  If the projects
!    or users are interrelated and should be able to use each other's
!    resources they should be put in the same databases but possibly
!    into separate schemas.  More information about managing schemas is
!    in the &cite-user;.
    </para>
  
    <note>
***************
*** 73,83 ****
  <synopsis>
  CREATE DATABASE <replaceable>name</>
  </synopsis>
!    where <replaceable>name</> follows the usual rules for SQL identifiers.
!    The current user automatically becomes
!    the owner of the new database. It is the privilege of the owner of
!    a database to remove it later on (which also removes all the
!    objects in it, even if they have a different owner).
    </para>
  
    <para>
--- 75,85 ----
  <synopsis>
  CREATE DATABASE <replaceable>name</>
  </synopsis>
!    where <replaceable>name</> follows the usual rules for
!    <acronym>SQL</acronym> identifiers.  The current user automatically
!    becomes the owner of the new database. It is the privilege of the
!    owner of a database to remove it later on (which also removes all
!    the objects in it, even if they have a different owner).
    </para>
  
    <para>
***************
*** 262,271 ****
    <title>Database Configuration</title>
  
    <para>
!    Recall from <xref linkend="runtime-config"> that the PostgreSQL
!    server provides a large number of run-time configuration variables.
!    You can set database-specific default values for many of these
!    settings.
    </para>
  
    <para>
--- 264,273 ----
    <title>Database Configuration</title>
  
    <para>
!    Recall from <xref linkend="runtime-config"> that the
!    <productname>PostgreSQL</> server provides a large number of
!    run-time configuration variables.  You can set database-specific
!    default values for many of these settings.
    </para>
  
    <para>
Index: doc/src/sgml/mvcc.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/mvcc.sgml,v
retrieving revision 2.29
diff -c -r2.29 mvcc.sgml
*** doc/src/sgml/mvcc.sgml	11 Nov 2002 20:14:03 -0000	2.29
--- doc/src/sgml/mvcc.sgml	14 Nov 2002 01:16:50 -0000
***************
*** 10,21 ****
    </indexterm>
  
    <para>
!    This chapter describes the behavior of the PostgreSQL database
!    system when two or more sessions try to access the same data at the
!    same time.  The goals in that situation are to allow efficient
!    access for all sessions while maintaining strict data integrity.
!    Every developer of database applications should be familiar with
!    the topics covered in this chapter.
    </para>
  
    <sect1 id="mvcc-intro">
--- 10,22 ----
    </indexterm>
  
    <para>
!    This chapter describes the behavior of the
!    <productname>PostgreSQL</productname> database system when two or
!    more sessions try to access the same data at the same time.  The
!    goals in that situation are to allow efficient access for all
!    sessions while maintaining strict data integrity.  Every developer
!    of database applications should be familiar with the topics covered
!    in this chapter.
    </para>
  
    <sect1 id="mvcc-intro">
***************
*** 38,53 ****
  
     <para>
      The main difference between multiversion and lock models is that
!     in MVCC locks acquired for querying (reading) data don't conflict
!     with locks acquired for writing data, and so reading never blocks
!     writing and writing never blocks reading.
     </para>
  
     <para>
      Table- and row-level locking facilities are also available in
      <productname>PostgreSQL</productname> for applications that cannot
!     adapt easily to MVCC behavior.  However, proper use of MVCC will
!     generally provide better performance than locks.
     </para>
    </sect1>
  
--- 39,55 ----
  
     <para>
      The main difference between multiversion and lock models is that
!     in <acronym>MVCC</acronym> locks acquired for querying (reading)
!     data don't conflict with locks acquired for writing data, and so
!     reading never blocks writing and writing never blocks reading.
     </para>
  
     <para>
      Table- and row-level locking facilities are also available in
      <productname>PostgreSQL</productname> for applications that cannot
!     adapt easily to <acronym>MVCC</acronym> behavior.  However, proper
!     use of <acronym>MVCC</acronym> will generally provide better
!     performance than locks.
     </para>
    </sect1>
  
***************
*** 380,393 ****
  
     <para>
      <productname>PostgreSQL</productname> provides various lock modes
!     to control concurrent access to data in tables.  These modes can be
!     used for application-controlled locking in situations where MVCC
!     does not give the desired behavior.  Also, most
!     <productname>PostgreSQL</productname> commands automatically
!     acquire locks of appropriate modes to ensure that referenced tables
!     are not dropped or modified in incompatible ways while the command
!     executes.  (For example, <command>ALTER TABLE</> cannot be executed
!     concurrently with other operations on the same table.)
     </para>
  
    <sect2 id="locking-tables">
--- 382,395 ----
  
     <para>
      <productname>PostgreSQL</productname> provides various lock modes
!     to control concurrent access to data in tables.  These modes can
!     be used for application-controlled locking in situations where
!     <acronym>MVCC</acronym> does not give the desired behavior.  Also,
!     most <productname>PostgreSQL</productname> commands automatically
!     acquire locks of appropriate modes to ensure that referenced
!     tables are not dropped or modified in incompatible ways while the
!     command executes.  (For example, <command>ALTER TABLE</> cannot be
!     executed concurrently with other operations on the same table.)
     </para>
  
    <sect2 id="locking-tables">
***************
*** 725,731 ****
     </para>
  
     <para>
!     Global validity checks require extra thought under MVCC.  For
      example, a banking application might wish to check that the sum of
      all credits in one table equals the sum of debits in another table,
      when both tables are being actively updated.  Comparing the results of two
--- 727,733 ----
     </para>
  
     <para>
!     Global validity checks require extra thought under <acronym>MVCC</acronym>.  For
      example, a banking application might wish to check that the sum of
      all credits in one table equals the sum of debits in another table,
      when both tables are being actively updated.  Comparing the results of two
Index: doc/src/sgml/programmer.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/programmer.sgml,v
retrieving revision 1.43
diff -c -r1.43 programmer.sgml
*** doc/src/sgml/programmer.sgml	24 Oct 2002 17:48:54 -0000	1.43
--- doc/src/sgml/programmer.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 24,41 ****
     <title>What's In This Book</title>
  
     <para>
!     This book is for PostgreSQL application programmers.  It is divided into three parts.
     </para>
  
     <para>
      The first part of this book describes the client programming
!     interfaces distributed with PostgreSQL.  Each of these chapters
!     can be read independently.  Note that there are many other
!     programming interfaces for client programs that are distributed
!     separately and contain their own documentation.  Readers of the
!     first part should be familiar with using SQL commands to
!     manipulate and query the database (see the &cite-user;) and of
!     course with the programming language that the interface uses.
     </para>
  
     <para>
--- 24,43 ----
     <title>What's In This Book</title>
  
     <para>
!     This book is for <productname>PostgreSQL</> application
!     programmers.  It is divided into three parts.
     </para>
  
     <para>
      The first part of this book describes the client programming
!     interfaces distributed with <productname>PostgreSQL</>.  Each of
!     these chapters can be read independently.  Note that there are
!     many other programming interfaces for client programs that are
!     distributed separately and contain their own documentation.
!     Readers of the first part should be familiar with using
!     <acronym>SQL</acronym> commands to manipulate and query the
!     database (see the &cite-user;) and of course with the programming
!     language that the interface uses.
     </para>
  
     <para>
***************
*** 43,49 ****
      functionality with user-defined functions, data types, triggers,
      etc.  These are advanced topics which should probably be
      approached only after all the other user documentation about
!     PostgreSQL has been understood.
     </para>
  
     <para>
--- 45,51 ----
      functionality with user-defined functions, data types, triggers,
      etc.  These are advanced topics which should probably be
      approached only after all the other user documentation about
!     <productname>PostgreSQL</> has been understood.
     </para>
  
     <para>
Index: doc/src/sgml/syntax.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/syntax.sgml,v
retrieving revision 1.73
diff -c -r1.73 syntax.sgml
*** doc/src/sgml/syntax.sgml	11 Nov 2002 20:14:04 -0000	1.73
--- doc/src/sgml/syntax.sgml	14 Nov 2002 01:23:17 -0000
***************
*** 120,127 ****
      The system uses no more than <symbol>NAMEDATALEN</symbol>-1
      characters of an identifier; longer names can be written in
      commands, but they will be truncated.  By default,
!     <symbol>NAMEDATALEN</symbol> is 64 so the maximum identifier length
!     is 63 (but at the time PostgreSQL is built,
      <symbol>NAMEDATALEN</symbol> can be changed in
      <filename>src/include/postgres_ext.h</filename>).
     </para>
--- 120,127 ----
      The system uses no more than <symbol>NAMEDATALEN</symbol>-1
      characters of an identifier; longer names can be written in
      commands, but they will be truncated.  By default,
!     <symbol>NAMEDATALEN</symbol> is 64 so the maximum identifier
!     length is 63 (but at the time <productname>PostgreSQL</> is built,
      <symbol>NAMEDATALEN</symbol> can be changed in
      <filename>src/include/postgres_ext.h</filename>).
     </para>
***************
*** 652,666 ****
  
     <para>
      <xref linkend="sql-precedence-table"> shows the precedence and
!     associativity of the operators in PostgreSQL.  Most operators have
!     the same precedence and are left-associative.  The precedence and
!     associativity of the operators is hard-wired into the parser.
!     This may lead to non-intuitive behavior; for example the Boolean
!     operators <literal>&lt;</> and <literal>&gt;</> have a different
!     precedence than the Boolean operators <literal>&lt;=</> and
!     <literal>&gt;=</>.  Also, you will sometimes need to add
!     parentheses when using combinations of binary and unary operators.
!     For instance
  <programlisting>
  SELECT 5 ! - 6;
  </programlisting>
--- 652,666 ----
  
     <para>
      <xref linkend="sql-precedence-table"> shows the precedence and
!     associativity of the operators in <productname>PostgreSQL</>.
!     Most operators have the same precedence and are left-associative.
!     The precedence and associativity of the operators is hard-wired
!     into the parser.  This may lead to non-intuitive behavior; for
!     example the Boolean operators <literal>&lt;</> and
!     <literal>&gt;</> have a different precedence than the Boolean
!     operators <literal>&lt;=</> and <literal>&gt;=</>.  Also, you will
!     sometimes need to add parentheses when using combinations of
!     binary and unary operators.  For instance
  <programlisting>
  SELECT 5 ! - 6;
  </programlisting>
Index: doc/src/sgml/tutorial.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/tutorial.sgml,v
retrieving revision 1.17
diff -c -r1.17 tutorial.sgml
*** doc/src/sgml/tutorial.sgml	24 Oct 2002 17:48:54 -0000	1.17
--- doc/src/sgml/tutorial.sgml	14 Nov 2002 01:20:41 -0000
***************
*** 30,38 ****
      these aspects.  We only assume some general knowledge about how to
      use computers.  No particular Unix or programming experience is
      required.  This book is mainly intended to give you a hands-on
!     experience with important aspects of the PostgreSQL system.  It
!     makes no attempt to be a complete or thorough treatment of the
!     topics it covers.
     </para>
  
     <para>
--- 30,38 ----
      these aspects.  We only assume some general knowledge about how to
      use computers.  No particular Unix or programming experience is
      required.  This book is mainly intended to give you a hands-on
!     experience with important aspects of the
!     <productname>PostgreSQL</productname> system.  It makes no attempt
!     to be a complete or thorough treatment of the topics it covers.
     </para>
  
     <para>
Index: doc/src/sgml/user.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/user.sgml,v
retrieving revision 1.34
diff -c -r1.34 user.sgml
*** doc/src/sgml/user.sgml	11 Nov 2002 20:14:04 -0000	1.34
--- doc/src/sgml/user.sgml	14 Nov 2002 01:02:55 -0000
***************
*** 23,35 ****
     <title>What's In This Book</title>
  
     <para>
!     This book describes the use of the SQL language in PostgreSQL.  We
!     start with describing the general syntax of SQL, then explain how
!     to create the structures to hold data, how to populate the
!     database, and how to query it.  The middle part lists the
!     available data types and functions for use in SQL data commands.
!     The rest of the book treats several aspects that are important for
!     tuning a database for optimal performance.
     </para>
  
     <para>
--- 23,37 ----
     <title>What's In This Book</title>
  
     <para>
!     This book describes the use of the <acronym>SQL</acronym> language
!     in <productname>PostgreSQL</productname>.  We start with
!     describing the general syntax of <acronym>SQL</acronym>, then
!     explain how to create the structures to hold data, how to populate
!     the database, and how to query it.  The middle part lists the
!     available data types and functions for use in
!     <acronym>SQL</acronym> data commands.  The rest of the book treats
!     several aspects that are important for tuning a database for
!     optimal performance.
     </para>
  
     <para>
***************
*** 44,53 ****
     </para>
  
     <para>
!     Readers of this book should know how to connect to a PostgreSQL
!     database and issue SQL commands.  Readers that are unfamiliar with
!     these issues are encouraged to read the &cite-tutorial; first.  SQL
!     commands are typically entered using the PostgreSQL interactive
      terminal <application>psql</application>, but other programs that
      have similar functionality can be used as well.
     </para>
--- 46,55 ----
     </para>
  
     <para>
!     Readers of this book should know how to connect to a <productname>PostgreSQL</>
!     database and issue <acronym>SQL</acronym> commands.  Readers that are unfamiliar with
!     these issues are encouraged to read the &cite-tutorial; first.  <acronym>SQL</acronym>
!     commands are typically entered using the <productname>PostgreSQL</> interactive
      terminal <application>psql</application>, but other programs that
      have similar functionality can be used as well.
     </para>
Index: doc/src/sgml/xfunc.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/xfunc.sgml,v
retrieving revision 1.61
diff -c -r1.61 xfunc.sgml
*** doc/src/sgml/xfunc.sgml	21 Sep 2002 18:32:54 -0000	1.61
--- doc/src/sgml/xfunc.sgml	14 Nov 2002 01:22:42 -0000
***************
*** 674,680 ****
  
     <note>
      <para>
!      The user ID the <application>PostgreSQL</application> server runs
       as must be able to traverse the path to the file you intend to
       load.  Making the file or a higher-level directory not readable
       and/or not executable by the <systemitem>postgres</systemitem> user is a
--- 674,680 ----
  
     <note>
      <para>
!      The user ID the <productname>PostgreSQL</productname> server runs
       as must be able to traverse the path to the file you intend to
       load.  Making the file or a higher-level directory not readable
       and/or not executable by the <systemitem>postgres</systemitem> user is a
***************
*** 691,697 ****
  
     <note>
      <para>
!      <application>PostgreSQL</application> will not compile a C function
       automatically.  The object file must be compiled before it is referenced
       in a <command>CREATE
       FUNCTION</> command.  See <xref linkend="dfunc"> for additional
--- 691,697 ----
  
     <note>
      <para>
!      <productname>PostgreSQL</productname> will not compile a C function
       automatically.  The object file must be compiled before it is referenced
       in a <command>CREATE
       FUNCTION</> command.  See <xref linkend="dfunc"> for additional
***************
*** 721,727 ****
  
     <note>
      <para>
!      Before <application>PostgreSQL</application> release 7.2, only exact
       absolute paths to object files could be specified in <command>CREATE
       FUNCTION</>.  This approach is now deprecated since it makes the
       function definition unnecessarily unportable.  It's best to specify
--- 721,727 ----
  
     <note>
      <para>
!      Before <productname>PostgreSQL</productname> release 7.2, only exact
       absolute paths to object files could be specified in <command>CREATE
       FUNCTION</>.  This approach is now deprecated since it makes the
       function definition unnecessarily unportable.  It's best to specify
Index: doc/src/sgml/ref/create_cast.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/create_cast.sgml,v
retrieving revision 1.6
diff -c -r1.6 create_cast.sgml
*** doc/src/sgml/ref/create_cast.sgml	4 Oct 2002 22:08:44 -0000	1.6
--- doc/src/sgml/ref/create_cast.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 196,209 ****
    </para>
  
    <para>
!    Prior to PostgreSQL 7.3, every function that had the same name as a
!    data type, returned that data type, and took one argument of a
!    different type was automatically a cast function.  This convention has
!    been abandoned in face of the introduction of schemas and to be
!    able to represent binary compatible casts in the catalogs.  (The built-in
!    cast functions
!    still follow this naming scheme, but they have to be shown as
!    casts in <literal>pg_cast</> now.)
    </para>
   </refsect1>
  
--- 196,209 ----
    </para>
  
    <para>
!    Prior to <productname>PostgreSQL</> 7.3, every function that had
!    the same name as a data type, returned that data type, and took one
!    argument of a different type was automatically a cast function.
!    This convention has been abandoned in face of the introduction of
!    schemas and to be able to represent binary compatible casts in the
!    catalogs.  (The built-in cast functions still follow this naming
!    scheme, but they have to be shown as casts in <literal>pg_cast</>
!    now.)
    </para>
   </refsect1>
  
Index: doc/src/sgml/ref/create_database.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/create_database.sgml,v
retrieving revision 1.29
diff -c -r1.29 create_database.sgml
*** doc/src/sgml/ref/create_database.sgml	21 Sep 2002 18:32:54 -0000	1.29
--- doc/src/sgml/ref/create_database.sgml	14 Nov 2002 01:18:06 -0000
***************
*** 217,223 ****
     <replaceable class="parameter">name</replaceable>.  In particular,
     by writing <literal>TEMPLATE = template0</>, you can create a virgin
     database containing only the standard objects predefined by your
!    version of <application>PostgreSQL</application>.  This is useful
     if you wish to avoid copying
     any installation-local objects that may have been added to
     <literal>template1</>. 
--- 217,223 ----
     <replaceable class="parameter">name</replaceable>.  In particular,
     by writing <literal>TEMPLATE = template0</>, you can create a virgin
     database containing only the standard objects predefined by your
!    version of <productname>PostgreSQL</productname>.  This is useful
     if you wish to avoid copying
     any installation-local objects that may have been added to
     <literal>template1</>. 
Index: doc/src/sgml/ref/ecpg-ref.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/ecpg-ref.sgml,v
retrieving revision 1.22
diff -c -r1.22 ecpg-ref.sgml
*** doc/src/sgml/ref/ecpg-ref.sgml	24 Oct 2002 17:48:54 -0000	1.22
--- doc/src/sgml/ref/ecpg-ref.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 157,165 ****
    <para>
     When compiling the preprocessed C code files, the compiler needs to
     be able to find the <application>ECPG</> header files in the
!    PostgreSQL include directory.  Therefore, one might have to use the
!    <option>-I</> option when invoking the compiler (e.g.,
!    <literal>-I/usr/local/pgsql/include</literal>).
    </para>
  
    <para>
--- 157,165 ----
    <para>
     When compiling the preprocessed C code files, the compiler needs to
     be able to find the <application>ECPG</> header files in the
!    <productname>PostgreSQL</> include directory.  Therefore, one might
!    have to use the <option>-I</> option when invoking the compiler
!    (e.g., <literal>-I/usr/local/pgsql/include</literal>).
    </para>
  
    <para>
Index: doc/src/sgml/ref/explain.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/explain.sgml,v
retrieving revision 1.20
diff -c -r1.20 explain.sgml
*** doc/src/sgml/ref/explain.sgml	21 Apr 2002 19:02:39 -0000	1.20
--- doc/src/sgml/ref/explain.sgml	14 Nov 2002 01:19:23 -0000
***************
*** 87,93 ****
  
     <note>
      <para>
!      Prior to <application>PostgreSQL</application> 7.3, the query plan
       was emitted in the form of a NOTICE message.  Now it appears as a
       query result (formatted like a table with a single text column).
      </para>
--- 87,93 ----
  
     <note>
      <para>
!      Prior to <productname>PostgreSQL</productname> 7.3, the query plan
       was emitted in the form of a NOTICE message.  Now it appears as a
       query result (formatted like a table with a single text column).
      </para>
***************
*** 105,116 ****
  
    <para>
     This command displays the execution plan that the
!    <application>PostgreSQL</application> planner
!    generates for the supplied query.  The execution plan shows how
!    the table(s) referenced by the query will be scanned---by plain
!    sequential scan, index scan, etc.---and if multiple tables are
!    referenced, what join algorithms will be used to bring together
!    the required tuples from each input table.
    </para>
  
    <para>
--- 105,116 ----
  
    <para>
     This command displays the execution plan that the
!    <productname>PostgreSQL</productname> planner generates for the
!    supplied query.  The execution plan shows how the table(s)
!    referenced by the query will be scanned---by plain sequential scan,
!    index scan, etc.---and if multiple tables are referenced, what join
!    algorithms will be used to bring together the required tuples from
!    each input table.
    </para>
  
    <para>
***************
*** 156,162 ****
     The VERBOSE option emits the full internal representation of the plan tree,
     rather than just a summary.
     Usually this option is only useful for debugging
!    <application>PostgreSQL</application>.   The VERBOSE dump is either
     pretty-printed or not, depending on the setting of the
     <option>EXPLAIN_PRETTY_PRINT</option> configuration parameter.
    </para>
--- 156,162 ----
     The VERBOSE option emits the full internal representation of the plan tree,
     rather than just a summary.
     Usually this option is only useful for debugging
!    <productname>PostgreSQL</productname>.   The VERBOSE dump is either
     pretty-printed or not, depending on the setting of the
     <option>EXPLAIN_PRETTY_PRINT</option> configuration parameter.
    </para>
***************
*** 232,238 ****
  
    <para>
     Note that the specific numbers shown, and even the selected query
!    strategy, may vary between <application>PostgreSQL</application>
     releases due to planner improvements.
    </para>
   </refsect1>
--- 232,238 ----
  
    <para>
     Note that the specific numbers shown, and even the selected query
!    strategy, may vary between <productname>PostgreSQL</productname>
     releases due to planner improvements.
    </para>
   </refsect1>
Index: doc/src/sgml/ref/load.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/load.sgml,v
retrieving revision 1.12
diff -c -r1.12 load.sgml
*** doc/src/sgml/ref/load.sgml	20 Jan 2002 22:19:57 -0000	1.12
--- doc/src/sgml/ref/load.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 23,35 ****
    <title>Description</title>
  
    <para>
!    Loads a shared library file into the PostgreSQL backend's address
!    space.  If the file had been loaded previously, it is first
!    unloaded.  This command is primarily useful to unload and reload a
!    shared library file that has been changed since the backend first
!    loaded it.  To make use of the
!    shared library, function(s) in it need to be declared using the <xref
!    linkend="sql-createfunction" endterm="sql-createfunction-title"> command.
    </para>
  
    <para>
--- 23,36 ----
    <title>Description</title>
  
    <para>
!    Loads a shared library file into the <productname>PostgreSQL</>
!    backend's address space.  If the file had been loaded previously,
!    it is first unloaded.  This command is primarily useful to unload
!    and reload a shared library file that has been changed since the
!    backend first loaded it.  To make use of the shared library,
!    function(s) in it need to be declared using the <xref
!    linkend="sql-createfunction" endterm="sql-createfunction-title">
!    command.
    </para>
  
    <para>
Index: doc/src/sgml/ref/pg_config-ref.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/pg_config-ref.sgml,v
retrieving revision 1.11
diff -c -r1.11 pg_config-ref.sgml
*** doc/src/sgml/ref/pg_config-ref.sgml	11 Oct 2002 23:03:48 -0000	1.11
--- doc/src/sgml/ref/pg_config-ref.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 131,137 ****
  
    <para>
     The option <option>--includedir-server</option> is new in
!    PostgreSQL 7.2.  In prior releases, the server include files were
     installed in the same location as the client headers, which could
     be queried with the <option>--includedir</option>.  To make your
     package handle both cases, try the newer option first and test the
--- 131,137 ----
  
    <para>
     The option <option>--includedir-server</option> is new in
!    <productname>PostgreSQL</> 7.2.  In prior releases, the server include files were
     installed in the same location as the client headers, which could
     be queried with the <option>--includedir</option>.  To make your
     package handle both cases, try the newer option first and test the
***************
*** 139,145 ****
    </para>
  
    <para>
!    In releases prior to PostgreSQL 7.1, before the
     <command>pg_config</command> came to be, a method for finding the
     equivalent configuration information did not exist.
    </para>
--- 139,145 ----
    </para>
  
    <para>
!    In releases prior to <productname>PostgreSQL</> 7.1, before the
     <command>pg_config</command> came to be, a method for finding the
     equivalent configuration information did not exist.
    </para>
***************
*** 150,156 ****
    <title>History</title>
  
    <para>
!    The <command>pg_config</command> utility first appeared in PostgreSQL 7.1.
    </para>
   </refsect1>
  
--- 150,157 ----
    <title>History</title>
  
    <para>
!    The <command>pg_config</command> utility first appeared in
!    <productname>PostgreSQL</> 7.1.
    </para>
   </refsect1>
  
Index: doc/src/sgml/ref/pg_dump.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/pg_dump.sgml,v
retrieving revision 1.52
diff -c -r1.52 pg_dump.sgml
*** doc/src/sgml/ref/pg_dump.sgml	11 Oct 2002 23:03:48 -0000	1.52
--- doc/src/sgml/ref/pg_dump.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 274,284 ****
  
         <para>
          <application>pg_dump</application> can handle databases from
!         previous releases of PostgreSQL, but very old versions are not
!         supported anymore (currently prior to 7.0).  Use this option
!         if you need to override the version check (and if
!         <application>pg_dump</application> then fails, don't say you
!         weren't warned).
         </para>
        </listitem>
       </varlistentry>
--- 274,284 ----
  
         <para>
          <application>pg_dump</application> can handle databases from
!         previous releases of <productname>PostgreSQL</>, but very old
!         versions are not supported anymore (currently prior to 7.0).
!         Use this option if you need to override the version check (and
!         if <application>pg_dump</application> then fails, don't say
!         you weren't warned).
         </para>
        </listitem>
       </varlistentry>
***************
*** 289,295 ****
        <listitem>
         <para>
  	Dump object identifiers (<acronym>OID</acronym>s) for every
! 	table.  Use this option if your application references the OID
  	columns in some way (e.g., in a foreign key constraint).
  	Otherwise, this option should not be used.
         </para>
--- 289,295 ----
        <listitem>
         <para>
  	Dump object identifiers (<acronym>OID</acronym>s) for every
! 	table.  Use this option if your application references the <acronym>OID</>
  	columns in some way (e.g., in a foreign key constraint).
  	Otherwise, this option should not be used.
         </para>
Index: doc/src/sgml/ref/pg_dumpall.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/pg_dumpall.sgml,v
retrieving revision 1.34
diff -c -r1.34 pg_dumpall.sgml
*** doc/src/sgml/ref/pg_dumpall.sgml	7 Sep 2002 16:14:33 -0000	1.34
--- doc/src/sgml/ref/pg_dumpall.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 27,39 ****
  
    <para>
     <application>pg_dumpall</application> is a utility for writing out
!    (<quote>dumping</quote>) all PostgreSQL databases of a cluster into
!    one script file.  The script file contains SQL commands that can be
!    used as input to <xref linkend="app-psql">
!    to restore the databases.  It does this by calling <xref
!    linkend="app-pgdump"> for each database
!    in a cluster.  <application>pg_dumpall</application> also dumps
!    global objects that are common to all databases.
     (<application>pg_dump</application> does not save these objects.)
     This currently includes the information about database users and
     groups.
--- 27,39 ----
  
    <para>
     <application>pg_dumpall</application> is a utility for writing out
!    (<quote>dumping</quote>) all <productname>PostgreSQL</> databases
!    of a cluster into one script file.  The script file contains
!    <acronym>SQL</acronym> commands that can be used as input to <xref
!    linkend="app-psql"> to restore the databases.  It does this by
!    calling <xref linkend="app-pgdump"> for each database in a cluster.
!    <application>pg_dumpall</application> also dumps global objects
!    that are common to all databases.
     (<application>pg_dump</application> does not save these objects.)
     This currently includes the information about database users and
     groups.
***************
*** 139,149 ****
  
         <para>
          <application>pg_dumpall</application> can handle databases
!         from previous releases of PostgreSQL, but very old versions
!         are not supported anymore (currently prior to 7.0).  Use this
!         option if you need to override the version check (and if
!         <application>pg_dumpall</application> then fails, don't say
!         you weren't warned).
         </para>
        </listitem>
       </varlistentry>
--- 139,149 ----
  
         <para>
          <application>pg_dumpall</application> can handle databases
!         from previous releases of <productname>PostgreSQL</>, but very
!         old versions are not supported anymore (currently prior to
!         7.0).  Use this option if you need to override the version
!         check (and if <application>pg_dumpall</application> then
!         fails, don't say you weren't warned).
         </para>
        </listitem>
       </varlistentry>
Index: doc/src/sgml/ref/pg_restore.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql-server/doc/src/sgml/ref/pg_restore.sgml,v
retrieving revision 1.31
diff -c -r1.31 pg_restore.sgml
*** doc/src/sgml/ref/pg_restore.sgml	11 Oct 2002 23:03:48 -0000	1.31
--- doc/src/sgml/ref/pg_restore.sgml	14 Nov 2002 00:47:15 -0000
***************
*** 417,427 ****
         </para>
  
         <para>
!         Presently, the commands emitted for <option>--disable-triggers</>
! 	must be done as superuser.  So, you should also specify
! 	a superuser name with <option>-S</>, or preferably specify
! 	<option>--use-set-session-authorization</> and run
! 	<application>pg_restore</application> as a PostgreSQL superuser.
         </para>
        </listitem>
       </varlistentry>
--- 417,428 ----
         </para>
  
         <para>
!         Presently, the commands emitted for
! 	<option>--disable-triggers</> must be done as superuser.  So, you
! 	should also specify a superuser name with <option>-S</>, or
! 	preferably specify <option>--use-set-session-authorization</> and
! 	run <application>pg_restore</application> as a
! 	<productname>PostgreSQL</> superuser.
         </para>
        </listitem>
       </varlistentry>
***************
*** 522,533 ****
      <msgexplan>
         <para>
  	<application>pg_restore</application> could not attach to the
!         PostgreSQL server
! 	process on the specified host and port.  If you see this message,
! 	ensure that the server
! 	is running on the proper host and that you have specified the proper
! 	port.  If your site uses an authentication system, ensure that you
! 	have obtained the required authentication credentials.
         </para>
      </msgexplan>
     </msgentry>
--- 523,534 ----
      <msgexplan>
         <para>
  	<application>pg_restore</application> could not attach to the
!         <productname>PostgreSQL</> server process on the specified
!         host and port.  If you see this message, ensure that the
!         server is running on the proper host and that you have
!         specified the proper port.  If your site uses an
!         authentication system, ensure that you have obtained the
!         required authentication credentials.
         </para>
      </msgexplan>
     </msgentry>
***************
*** 537,543 ****
      <para>
       When a direct database connection is specified using the -d
       option, <application>pg_restore</application> internally executes
!      SQL statements. If you have problems running
       <application>pg_restore</application>, make sure you are able to select
       information from the database using, for example,
       <application>psql</application>.
--- 538,544 ----
      <para>
       When a direct database connection is specified using the -d
       option, <application>pg_restore</application> internally executes
!      <acronym>SQL</acronym> statements. If you have problems running
       <application>pg_restore</application>, make sure you are able to select
       information from the database using, for example,
       <application>psql</application>.
