Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d38753c

Browse files
committed
Doc: Fix various typos
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
1 parent b298e37 commit d38753c

13 files changed

+20
-23
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11031,7 +11031,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
1103111031
<entry><structfield>kinds</structfield></entry>
1103211032
<entry><type>text[]</type></entry>
1103311033
<entry></entry>
11034-
<entry>Types of exdended statistics enabled for this record</entry>
11034+
<entry>Types of extended statistics enabled for this record</entry>
1103511035
</row>
1103611036

1103711037
<row>

doc/src/sgml/custom-scan.sgml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ typedef struct CustomPath
8383
by <literal>nodeToString</literal>, so that debugging routines that attempt to
8484
print the custom path will work as designed. <structfield>methods</structfield> must
8585
point to a (usually statically allocated) object implementing the required
86-
custom path methods, of which there is currently only one. The
87-
<structfield>LibraryName</structfield> and <structfield>SymbolName</structfield> fields must also
88-
be initialized so that the dynamic loader can resolve them to locate the
89-
method table.
86+
custom path methods, of which there is currently only one.
9087
</para>
9188

9289
<para>

doc/src/sgml/ecpg.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5011,7 +5011,7 @@ struct
50115011

50125012
<para>
50135013
The fields <structfield>sqlcaid</structfield>,
5014-
<structfield>sqlcabc</structfield>,
5014+
<structfield>sqlabc</structfield>,
50155015
<structfield>sqlerrp</structfield>, and the remaining elements of
50165016
<structfield>sqlerrd</structfield> and
50175017
<structfield>sqlwarn</structfield> currently contain no useful

doc/src/sgml/func.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@
28932893
</row>
28942894

28952895
<row>
2896-
<entry><literal>tcvn_to_utf8</literal></entry>
2896+
<entry><literal>windows_1258_to_utf8</literal></entry>
28972897
<entry><literal>WIN1258</literal></entry>
28982898
<entry><literal>UTF8</literal></entry>
28992899
</row>
@@ -3061,7 +3061,7 @@
30613061
</row>
30623062

30633063
<row>
3064-
<entry><literal>utf8_to_tcvn</literal></entry>
3064+
<entry><literal>utf8_to_windows_1258</literal></entry>
30653065
<entry><literal>UTF8</literal></entry>
30663066
<entry><literal>WIN1258</literal></entry>
30673067
</row>

doc/src/sgml/gist.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ my_picksplit(PG_FUNCTION_ARGS)
696696

697697
/*
698698
* Choose where to put the index entries and update unionL and unionR
699-
* accordingly. Append the entries to either v_spl_left or
700-
* v_spl_right, and care about the counters.
699+
* accordingly. Append the entries to either v-&gt;spl_left or
700+
* v-&gt;spl_right, and care about the counters.
701701
*/
702702

703703
if (my_choice_is_left(unionL, curl, unionR, curr))
@@ -910,7 +910,7 @@ Datum
910910
my_fetch(PG_FUNCTION_ARGS)
911911
{
912912
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
913-
input_data_type *in = DatumGetP(entry->key);
913+
input_data_type *in = DatumGetPointer(entry->key);
914914
fetched_data_type *fetched_data;
915915
GISTENTRY *retval;
916916

@@ -921,7 +921,7 @@ my_fetch(PG_FUNCTION_ARGS)
921921
* Convert 'fetched_data' into the a Datum of the original datatype.
922922
*/
923923

924-
/* fill *retval from fetch_data. */
924+
/* fill *retval from fetched_data. */
925925
gistentryinit(*retval, PointerGetDatum(converted_datum),
926926
entry->rel, entry->page, entry->offset, FALSE);
927927

doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5913,7 +5913,7 @@ int PQendcopy(PGconn *conn);
59135913
It should either be issued when the last string has been sent
59145914
to the server using <function>PQputline</function> or when the
59155915
last string has been received from the server using
5916-
<function>PGgetline</function>. It must be issued or the server
5916+
<function>PQgetline</function>. It must be issued or the server
59175917
will get <quote>out of sync</quote> with the client. Upon return
59185918
from this function, the server is ready to receive the next SQL
59195919
command. The return value is 0 on successful completion,

doc/src/sgml/plpgsql.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,9 +3740,9 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
37403740
<para>
37413741
If no condition name nor SQLSTATE is specified in a
37423742
<command>RAISE EXCEPTION</command> command, the default is to use
3743-
<literal>RAISE_EXCEPTION</literal> (<literal>P0001</literal>). If no message
3744-
text is specified, the default is to use the condition name or
3745-
SQLSTATE as message text.
3743+
<literal>ERRCODE_RAISE_EXCEPTION</literal> (<literal>P0001</literal>).
3744+
If no message text is specified, the default is to use the condition
3745+
name or SQLSTATE as message text.
37463746
</para>
37473747

37483748
<note>
@@ -5626,7 +5626,7 @@ BEGIN
56265626
INSERT INTO cs_active_job(job_id) VALUES (v_job_id);
56275627

56285628
BEGIN
5629-
INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, sysdate);
5629+
INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, now());
56305630
EXCEPTION
56315631
WHEN dup_val_on_index THEN NULL; -- don't worry if it already exists
56325632
END;

doc/src/sgml/problems.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
C library, processor, memory information, and so on. In most
253253
cases it is sufficient to report the vendor and version, but do
254254
not assume everyone knows what exactly <quote>Debian</quote>
255-
contains or that everyone runs on i386s. If you have
255+
contains or that everyone runs on x86_64. If you have
256256
installation problems then information about the toolchain on
257257
your machine (compiler, <application>make</application>, and so
258258
on) is also necessary.

doc/src/sgml/ref/create_aggregate.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ CREATE [ OR REPLACE ] AGGREGATE <replaceable class="parameter">name</replaceable
211211
as described in <xref linkend="xaggr-moving-aggregates"/>. This requires
212212
specifying the <literal>MSFUNC</literal>, <literal>MINVFUNC</literal>,
213213
and <literal>MSTYPE</literal> parameters, and optionally
214-
the <literal>MSPACE</literal>, <literal>MFINALFUNC</literal>,
214+
the <literal>MSSPACE</literal>, <literal>MFINALFUNC</literal>,
215215
<literal>MFINALFUNC_EXTRA</literal>, <literal>MFINALFUNC_MODIFY</literal>,
216216
and <literal>MINITCOND</literal> parameters. Except for <literal>MINVFUNC</literal>,
217217
these parameters work like the corresponding simple-aggregate parameters

doc/src/sgml/ref/set_role.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RESET ROLE
7070
effectively drops all the privileges assigned directly to the session user
7171
and to the other roles it is a member of, leaving only the privileges
7272
available to the named role. On the other hand, if the session user role
73-
has the <literal>NOINHERITS</literal> attribute, <command>SET ROLE</command> drops the
73+
has the <literal>NOINHERIT</literal> attribute, <command>SET ROLE</command> drops the
7474
privileges assigned directly to the session user and instead acquires the
7575
privileges available to the named role.
7676
</para>

doc/src/sgml/sources.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ BETTER: unrecognized node type: 42
884884
features can be used, if a fallback is provided.
885885
</para>
886886
<para>
887-
For example <literal>_StaticAssert()</literal> and
887+
For example <literal>_Static_assert()</literal> and
888888
<literal>__builtin_constant_p</literal> are currently used, even though
889889
they are from newer revisions of the C standard and a
890890
<productname>GCC</productname> extension respectively. If not available

doc/src/sgml/sslinfo.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ countryName (alias C)
185185
localityName (alias L)
186186
stateOrProvinceName (alias ST)
187187
organizationName (alias O)
188-
organizationUnitName (alias OU)
188+
organizationalUnitName (alias OU)
189189
title
190190
description
191191
initials

doc/src/sgml/xplang.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ CREATE FUNCTION <replaceable>validator_function_name</replaceable>(oid)
137137
<para>
138138
Finally, the PL must be declared with the command
139139
<synopsis>
140-
CREATE <optional>TRUSTED</optional> LANGUAGE <replaceable>language-name</replaceable>
140+
CREATE <optional>TRUSTED</optional> LANGUAGE <replaceable>language_name</replaceable>
141141
HANDLER <replaceable>handler_function_name</replaceable>
142142
<optional>INLINE <replaceable>inline_function_name</replaceable></optional>
143143
<optional>VALIDATOR <replaceable>validator_function_name</replaceable></optional> ;

0 commit comments

Comments
 (0)