Skip to content

Commit 15ae1a3

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 4514322 commit 15ae1a3

File tree

12 files changed

+17
-20
lines changed

12 files changed

+17
-20
lines changed

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</>, so that debugging routines that attempt to
8484
print the custom path will work as designed. <structfield>methods</> 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</> and <structfield>SymbolName</> 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
@@ -4957,7 +4957,7 @@ struct
49574957

49584958
<para>
49594959
The fields <structfield>sqlcaid</structfield>,
4960-
<structfield>sqlcabc</structfield>,
4960+
<structfield>sqlabc</structfield>,
49614961
<structfield>sqlerrp</structfield>, and the remaining elements of
49624962
<structfield>sqlerrd</structfield> and
49634963
<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
@@ -2771,7 +2771,7 @@
27712771
</row>
27722772

27732773
<row>
2774-
<entry><literal>tcvn_to_utf8</literal></entry>
2774+
<entry><literal>windows_1258_to_utf8</literal></entry>
27752775
<entry><literal>WIN1258</literal></entry>
27762776
<entry><literal>UTF8</literal></entry>
27772777
</row>
@@ -2939,7 +2939,7 @@
29392939
</row>
29402940

29412941
<row>
2942-
<entry><literal>utf8_to_tcvn</literal></entry>
2942+
<entry><literal>utf8_to_windows_1258</literal></entry>
29432943
<entry><literal>UTF8</literal></entry>
29442944
<entry><literal>WIN1258</literal></entry>
29452945
</row>

doc/src/sgml/gist.sgml

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

685685
/*
686686
* Choose where to put the index entries and update unionL and unionR
687-
* accordingly. Append the entries to either v_spl_left or
688-
* v_spl_right, and care about the counters.
687+
* accordingly. Append the entries to either v-&gt;spl_left or
688+
* v-&gt;spl_right, and care about the counters.
689689
*/
690690

691691
if (my_choice_is_left(unionL, curl, unionR, curr))
@@ -896,7 +896,7 @@ Datum
896896
my_fetch(PG_FUNCTION_ARGS)
897897
{
898898
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
899-
input_data_type *in = DatumGetP(entry->key);
899+
input_data_type *in = DatumGetPointer(entry->key);
900900
fetched_data_type *fetched_data;
901901
GISTENTRY *retval;
902902

@@ -907,7 +907,7 @@ my_fetch(PG_FUNCTION_ARGS)
907907
* Convert 'fetched_data' into the a Datum of the original datatype.
908908
*/
909909

910-
/* fill *retval from fetch_data. */
910+
/* fill *retval from fetched_data. */
911911
gistentryinit(*retval, PointerGetDatum(converted_datum),
912912
entry->rel, entry->page, entry->offset, FALSE);
913913

doc/src/sgml/libpq.sgml

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

doc/src/sgml/plpgsql.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3603,7 +3603,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
36033603
<para>
36043604
If no condition name nor SQLSTATE is specified in a
36053605
<command>RAISE EXCEPTION</command> command, the default is to use
3606-
<literal>RAISE_EXCEPTION</> (<literal>P0001</>). If no message
3606+
<literal>ERRCODE_RAISE_EXCEPTION</> (<literal>P0001</>). If no message
36073607
text is specified, the default is to use the condition name or
36083608
SQLSTATE as message text.
36093609
</para>
@@ -5419,7 +5419,7 @@ BEGIN
54195419
INSERT INTO cs_active_job(job_id) VALUES (v_job_id);
54205420

54215421
BEGIN
5422-
INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, sysdate);
5422+
INSERT INTO cs_jobs (job_id, start_stamp) VALUES (v_job_id, now());
54235423
EXCEPTION
54245424
WHEN dup_val_on_index THEN NULL; -- don't worry if it already exists
54255425
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
@@ -197,7 +197,7 @@ CREATE AGGREGATE <replaceable class="PARAMETER">name</replaceable> (
197197
as described in <xref linkend="xaggr-moving-aggregates">. This requires
198198
specifying the <literal>MSFUNC</>, <literal>MINVFUNC</>,
199199
and <literal>MSTYPE</> parameters, and optionally
200-
the <literal>MSPACE</>, <literal>MFINALFUNC</>, <literal>MFINALFUNC_EXTRA</>,
200+
the <literal>MSSPACE</>, <literal>MFINALFUNC</>, <literal>MFINALFUNC_EXTRA</>,
201201
and <literal>MINITCOND</> parameters. Except for <literal>MINVFUNC</>,
202202
these parameters work like the corresponding simple-aggregate parameters
203203
without <literal>M</>; they define a separate implementation of the

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</> attribute, <command>SET ROLE</> drops the
73+
has the <literal>NOINHERIT</> attribute, <command>SET ROLE</> 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
@@ -875,7 +875,7 @@ BETTER: unrecognized node type: 42
875875
</para>
876876
<para>
877877
For example <literal>static inline</> and
878-
<literal>_StaticAssert()</literal> are currently used, even
878+
<literal>_Static_assert()</literal> are currently used, even
879879
though they are from newer revisions of the C standard. If not
880880
available we respectively fall back to defining the functions
881881
without inline, and to using a C89 compatible replacement that

doc/src/sgml/sslinfo.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ countryName (alias C)
180180
localityName (alias L)
181181
stateOrProvinceName (alias ST)
182182
organizationName (alias O)
183-
organizationUnitName (alias OU)
183+
organizationalUnitName (alias OU)
184184
title
185185
description
186186
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> <optional>PROCEDURAL</optional> LANGUAGE <replaceable>language-name</replaceable>
140+
CREATE <optional>TRUSTED</optional> <optional>PROCEDURAL</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)