Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Doc: Fix various typos
authorMichael Paquier <michael@paquier.xyz>
Tue, 20 Aug 2019 04:46:19 +0000 (13:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 20 Aug 2019 04:46:19 +0000 (13:46 +0900)
All those fixes are already included on HEAD thanks to for example
c96581a and 66bde49, and have gone missing on back-branches.

Author: Alexander Lakhin, Liudmila Mantrova
Discussion: https://postgr.es/m/CAEkD-mDJHV3bhgezu3MUafJLoAKsOOT86+wHukKU8_NeiJYhLQ@mail.gmail.com
Backpatch-through: 9.4

doc/src/sgml/ecpg.sgml
doc/src/sgml/func.sgml
doc/src/sgml/gist.sgml
doc/src/sgml/libpq.sgml
doc/src/sgml/plpgsql.sgml
doc/src/sgml/problems.sgml
doc/src/sgml/ref/create_aggregate.sgml
doc/src/sgml/ref/set_role.sgml
doc/src/sgml/sslinfo.sgml
doc/src/sgml/xplang.sgml

index a83a13b9a96889e7ac0cf5c60f2480275a33826e..fa08a83315a4211e7f96b3be14d95b590dfc27c6 100644 (file)
@@ -4925,7 +4925,7 @@ struct
 
    <para>
     The fields <structfield>sqlcaid</structfield>,
-    <structfield>sqlcabc</structfield>,
+    <structfield>sqlabc</structfield>,
     <structfield>sqlerrp</structfield>, and the remaining elements of
     <structfield>sqlerrd</structfield> and
     <structfield>sqlwarn</structfield> currently contain no useful
index 089fc8f099f2c12b2b40f2c1b0e986f7d4938cfe..0417f2a2f65b71afeb02e6359a149ab7e2c94ecd 100644 (file)
       </row>
 
       <row>
-       <entry><literal>tcvn_to_utf8</literal></entry>
+       <entry><literal>windows_1258_to_utf8</literal></entry>
        <entry><literal>WIN1258</literal></entry>
        <entry><literal>UTF8</literal></entry>
       </row>
       </row>
 
       <row>
-       <entry><literal>utf8_to_tcvn</literal></entry>
+       <entry><literal>utf8_to_windows_1258</literal></entry>
        <entry><literal>UTF8</literal></entry>
        <entry><literal>WIN1258</literal></entry>
       </row>
index 2d1a5aa863f20177e366021bf977d1049a8d1b26..2e7d48f5b963aaa5ef04919d13cb2eab271e9b02 100644 (file)
@@ -655,8 +655,8 @@ my_picksplit(PG_FUNCTION_ARGS)
 
         /*
          * Choose where to put the index entries and update unionL and unionR
-         * accordingly. Append the entries to either v_spl_left or
-         * v_spl_right, and care about the counters.
+         * accordingly. Append the entries to either v-&gt;spl_left or
+         * v-&gt;spl_right, and care about the counters.
          */
 
         if (my_choice_is_left(unionL, curl, unionR, curr))
@@ -857,7 +857,7 @@ Datum
 my_fetch(PG_FUNCTION_ARGS)
 {
     GISTENTRY  *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
-    input_data_type *in = DatumGetP(entry->key);
+    input_data_type *in = DatumGetPointer(entry->key);
     fetched_data_type *fetched_data;
     GISTENTRY  *retval;
 
@@ -868,7 +868,7 @@ my_fetch(PG_FUNCTION_ARGS)
      * Convert 'fetched_data' into the a Datum of the original datatype.
      */
 
-    /* fill *retval from fetch_data. */
+    /* fill *retval from fetched_data. */
     gistentryinit(*retval, PointerGetDatum(converted_datum),
                   entry->rel, entry->page, entry->offset, FALSE);
 
index a67cfbf1cc17fa149a0581bb71d2687ee9e14c39..82e597830def0c6b59cad15bf4e261c61549af6a 100644 (file)
@@ -5466,7 +5466,7 @@ int PQendcopy(PGconn *conn);
        It should either be issued when the  last  string  has  been sent
        to  the  server using <function>PQputline</function> or when the
        last string has been  received  from  the  server using
-       <function>PGgetline</function>.  It must be issued or the server
+       <function>PQgetline</function>.  It must be issued or the server
        will get <quote>out of sync</quote> with  the client.   Upon return
        from this function, the server is ready to receive the next SQL
        command.  The return value is 0  on  successful  completion,
index 642a59f9f378aac0729fb29e0dd8ec7d385ad0bd..4ffccc71e538f321672bf140c651cda29886c682 100644 (file)
@@ -3603,7 +3603,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
    <para>
     If no condition name nor SQLSTATE is specified in a
     <command>RAISE EXCEPTION</command> command, the default is to use
-    <literal>RAISE_EXCEPTION</> (<literal>P0001</>).  If no message
+    <literal>ERRCODE_RAISE_EXCEPTION</> (<literal>P0001</>).  If no message
     text is specified, the default is to use the condition name or
     SQLSTATE as message text.
    </para>
@@ -5316,7 +5316,7 @@ BEGIN
     INSERT INTO cs_active_job(job_id) VALUES (v_job_id);
 
     BEGIN
-        INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, sysdate);
+        INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, now());
     EXCEPTION
         WHEN dup_val_on_index THEN NULL; -- don't worry if it already exists
     END;
index 764bca1f02951ebdb34e8fe968042d81e21e6a63..5385c60eb09221545f8691881a780bbebb1579a3 100644 (file)
       C library, processor, memory information, and so on. In most
       cases it is sufficient to report the vendor and version, but do
       not assume everyone knows what exactly <quote>Debian</quote>
-      contains or that everyone runs on i386s. If you have
+      contains or that everyone runs on x86_64. If you have
       installation problems then information about the toolchain on
       your machine (compiler, <application>make</application>, and so
       on) is also necessary.
index eaa410bc94cf181da4b126286f62d36906232c43..2a0dbb6291b044ffb24f35bd1beae1c42509a835 100644 (file)
@@ -189,7 +189,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> (
    as described in <xref linkend="xaggr-moving-aggregates">.  This requires
    specifying the <literal>MSFUNC</>, <literal>MINVFUNC</>,
    and <literal>MSTYPE</> parameters, and optionally
-   the <literal>MSPACE</>, <literal>MFINALFUNC</>, <literal>MFINALFUNC_EXTRA</>,
+   the <literal>MSSPACE</>, <literal>MFINALFUNC</>, <literal>MFINALFUNC_EXTRA</>,
    and <literal>MINITCOND</> parameters.  Except for <literal>MINVFUNC</>,
    these parameters work like the corresponding simple-aggregate parameters
    without <literal>M</>; they define a separate implementation of the
index 8e2deb76351765453a55f1b5195258ef1a70682e..cb25ebbec6f0e84062fcc3fa3556dba74aa47d36 100644 (file)
@@ -70,7 +70,7 @@ RESET ROLE
    effectively drops all the privileges assigned directly to the session user
    and to the other roles it is a member of, leaving only the privileges
    available to the named role.  On the other hand, if the session user role
-   has the <literal>NOINHERITS</> attribute, <command>SET ROLE</> drops the
+   has the <literal>NOINHERIT</> attribute, <command>SET ROLE</> drops the
    privileges assigned directly to the session user and instead acquires the
    privileges available to the named role.
   </para>
index 22ef4396abc98fea3db88cabb3a8059c70b1b884..9dfd24fd29cc12e31d1d3476b2a32a5e43548010 100644 (file)
@@ -180,7 +180,7 @@ countryName (alias C)
 localityName (alias L)
 stateOrProvinceName (alias ST)
 organizationName (alias O)
-organizationUnitName (alias OU)
+organizationalUnitName (alias OU)
 title
 description
 initials
index 68220bf63343f4e956c888b822875729bbb0b1d8..32433b13d9819d5a4e87f3be191895809b052596 100644 (file)
@@ -144,7 +144,7 @@ CREATE FUNCTION <replaceable>validator_function_name</replaceable>(oid)
      <para>
       Finally, the PL must be declared with the command
 <synopsis>
-CREATE <optional>TRUSTED</optional> <optional>PROCEDURAL</optional> LANGUAGE <replaceable>language-name</replaceable>
+CREATE <optional>TRUSTED</optional> <optional>PROCEDURAL</optional> LANGUAGE <replaceable>language_name</replaceable>
     HANDLER <replaceable>handler_function_name</replaceable>
     <optional>INLINE <replaceable>inline_function_name</replaceable></optional>
     <optional>VALIDATOR <replaceable>validator_function_name</replaceable></optional> ;