Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit04539e7

Browse files
committed
Use the correct article for abbreviations
We've accumulated quite a mix of instances of "an SQL" and "a SQL" in thedocuments. It would be good to be a bit more consistent with these.The most recent version of the SQL standard I looked at seems to prefer"an SQL". That seems like a good lead to follow, so here we change allinstances of "a SQL" to become "an SQL". Most instances correctly use"an SQL" already, so it also makes sense to use the dominant variation inorder to minimise churn.Additionally, there were some other abbreviations that needed to beadjusted. FSM, SSPI, SRF and a few others. Also fix some pronounceable,abbreviations to use "a" instead of "an". For example, "a SASL" insteadof "an SASL".Here I've only adjusted the documents and error messages. Many othersstill exist in source code comments. Translator hint comments seem to bethe biggest culprit. It currently does not seem worth the churn to changethese.Discussion:https://postgr.es/m/CAApHDvpML27UqFXnrYO1MJddsKVMQoiZisPvsAGhKE_tsKXquw%40mail.gmail.com
1 parente56bce5 commit04539e7

35 files changed

+81
-81
lines changed

‎doc/src/sgml/client-auth.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ omicron bryanh guest1
14621462
<listitem>
14631463
<para>
14641464
Allows for mapping between system and database user names. See
1465-
<xref linkend="auth-username-maps"/> for details. Fora SSPI/Kerberos
1465+
<xref linkend="auth-username-maps"/> for details. Foran SSPI/Kerberos
14661466
principal, such as <literal>username@EXAMPLE.COM</literal> (or, less
14671467
commonly, <literal>username/hostbased@EXAMPLE.COM</literal>), the
14681468
user name used for mapping is

‎doc/src/sgml/config.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
In general, enclose the value in single quotes, doubling any single
5252
quotes within the value. Quotes can usually be omitted if the value
5353
is a simple number or identifier, however.
54-
(Values that matcha SQL keyword require quoting in some contexts.)
54+
(Values that matchan SQL keyword require quoting in some contexts.)
5555
</para>
5656
</listitem>
5757

@@ -222,7 +222,7 @@ shared_buffers = 128MB
222222
<productname>PostgreSQL</productname> provides three SQL
223223
commands to establish configuration defaults.
224224
The already-mentioned <command>ALTER SYSTEM</command> command
225-
providesa SQL-accessible means of changing global defaults; it is
225+
providesan SQL-accessible means of changing global defaults; it is
226226
functionally equivalent to editing <filename>postgresql.conf</filename>.
227227
In addition, there are two commands that allow setting of defaults
228228
on a per-database or per-role basis:
@@ -9625,7 +9625,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
96259625
<literal>\'</literal>. However, use of <literal>\'</literal> creates security risks
96269626
because in some client character set encodings, there are multibyte
96279627
characters in which the last byte is numerically equivalent to ASCII
9628-
<literal>\</literal>. If client-side code does escaping incorrectly thena
9628+
<literal>\</literal>. If client-side code does escaping incorrectly thenan
96299629
SQL-injection attack is possible. This risk can be prevented by
96309630
making the server reject queries in which a quote mark appears to be
96319631
escaped by a backslash.

‎doc/src/sgml/datatype.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ SELECT '\xDEADBEEF';
15381538
<para>
15391539
The reason that single quotes must be doubled, as shown
15401540
in <xref linkend="datatype-binary-sqlesc"/>, is that this
1541-
is true for any string literal ina SQL command. The generic
1541+
is true for any string literal inan SQL command. The generic
15421542
string-literal parser consumes the outermost single quotes
15431543
and reduces any pair of single quotes to one data character.
15441544
What the <type>bytea</type> input function sees is just one

‎doc/src/sgml/dblink.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,14 +1482,14 @@ dblink_get_result(text connname [, bool fail_on_error]) returns setof record
14821482
<title>Return Value</title>
14831483

14841484
<para>
1485-
For an async query (that is,a SQL statement returning rows),
1485+
For an async query (that is,an SQL statement returning rows),
14861486
the function returns the row(s) produced by the query. To use this
14871487
function, you will need to specify the expected set of columns,
14881488
as previously discussed for <function>dblink</function>.
14891489
</para>
14901490

14911491
<para>
1492-
For an async command (that is,a SQL statement not returning rows),
1492+
For an async command (that is,an SQL statement not returning rows),
14931493
the function returns a single row with a single text column containing
14941494
the command's status string. It is still necessary to specify that
14951495
the result will have a single text column in the calling <literal>FROM</literal>
@@ -1777,7 +1777,7 @@ dblink_build_sql_insert(text relname,
17771777
<para>
17781778
<function>dblink_build_sql_insert</function> can be useful in doing selective
17791779
replication of a local table to a remote database. It selects a row
1780-
from the local table based on primary key, and then buildsa SQL
1780+
from the local table based on primary key, and then buildsan SQL
17811781
<command>INSERT</command> command that will duplicate that row, but with
17821782
the primary key values replaced by the values in the last argument.
17831783
(To make an exact copy of the row, just specify the same values for
@@ -1909,7 +1909,7 @@ dblink_build_sql_delete(text relname,
19091909

19101910
<para>
19111911
<function>dblink_build_sql_delete</function> can be useful in doing selective
1912-
replication of a local table to a remote database. It buildsa SQL
1912+
replication of a local table to a remote database. It buildsan SQL
19131913
<command>DELETE</command> command that will delete the row with the given
19141914
primary key values.
19151915
</para>
@@ -2029,7 +2029,7 @@ dblink_build_sql_update(text relname,
20292029
<para>
20302030
<function>dblink_build_sql_update</function> can be useful in doing selective
20312031
replication of a local table to a remote database. It selects a row
2032-
from the local table based on primary key, and then buildsa SQL
2032+
from the local table based on primary key, and then buildsan SQL
20332033
<command>UPDATE</command> command that will duplicate that row, but with
20342034
the primary key values replaced by the values in the last argument.
20352035
(To make an exact copy of the row, just specify the same values for

‎doc/src/sgml/ecpg.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ current=testdb1 (should be testdb1)
354354
</para>
355355

356356
<para>
357-
The third option is to declarea SQL identifier linked to
357+
The third option is to declarean SQL identifier linked to
358358
the connection, for example:
359359
<programlisting>
360360
EXEC SQL AT <replaceable>connection-name</replaceable> DECLARE <replaceable>statement-name</replaceable> STATEMENT;
361361
EXEC SQL PREPARE <replaceable>statement-name</replaceable> FROM :<replaceable>dyn-string</replaceable>;
362362
</programlisting>
363-
Once you linka SQL identifier to a connection, you execute dynamic SQL
363+
Once you linkan SQL identifier to a connection, you execute dynamic SQL
364364
without an AT clause. Note that this option behaves like preprocessor
365365
directives, therefore the link is enabled only in the file.
366366
</para>
@@ -1542,7 +1542,7 @@ EXEC SQL END DECLARE SECTION;
15421542
variables and vice-versa. However, when creating a statement ecpg does
15431543
not know the types of the columns, so that it cannot check if a C array
15441544
is input into a corresponding SQL-level array. When processing the
1545-
output ofa SQL statement, ecpg has the necessary information and thus
1545+
output ofan SQL statement, ecpg has the necessary information and thus
15461546
checks if both are arrays.
15471547
</para>
15481548

@@ -4348,7 +4348,7 @@ switch (v.sqltype)
43484348
parameters to a prepared query are:
43494349
</para>
43504350
<step><simpara>Create a prepared query (prepared statement)</simpara></step>
4351-
<step><simpara>Declarea sqlda_t structure as an input SQLDA.</simpara></step>
4351+
<step><simpara>Declarean sqlda_t structure as an input SQLDA.</simpara></step>
43524352
<step><simpara>Allocate memory area (as sqlda_t structure) for the input SQLDA.</simpara></step>
43534353
<step><simpara>Set (copy) input values in the allocated memory.</simpara></step>
43544354
<step><simpara>Open a cursor with specifying the input SQLDA.</simpara></step>
@@ -4630,7 +4630,7 @@ main(void)
46304630
EXEC SQL PREPARE stmt1 FROM :query;
46314631
EXEC SQL DECLARE cur1 CURSOR FOR stmt1;
46324632

4633-
/* Createa SQLDA structure for an input parameter */
4633+
/* Createan SQLDA structure for an input parameter */
46344634
sqlda2 = (sqlda_t *)malloc(sizeof(sqlda_t) + sizeof(sqlvar_t));
46354635
memset(sqlda2, 0, sizeof(sqlda_t) + sizeof(sqlvar_t));
46364636
sqlda2->sqln = 2; /* a number of input variables */
@@ -6911,7 +6911,7 @@ EXEC SQL [ AT <replaceable class="parameter">connection_name</replaceable> ] DEC
69116911
<title>Description</title>
69126912

69136913
<para>
6914-
<command>DECLARE STATEMENT</command> declaresa SQL statement identifier.
6914+
<command>DECLARE STATEMENT</command> declaresan SQL statement identifier.
69156915
SQL statement identifier can be associated with the connection.
69166916
When the identifier is used by dynamic SQL statements, the statements
69176917
are executed using the associated connection.
@@ -6945,7 +6945,7 @@ EXEC SQL [ AT <replaceable class="parameter">connection_name</replaceable> ] DEC
69456945
<term><replaceable class="parameter">statement_name</replaceable></term>
69466946
<listitem>
69476947
<para>
6948-
The name ofa SQL statement identifier, either as an SQL identifier or a host variable.
6948+
The name ofan SQL statement identifier, either as an SQL identifier or a host variable.
69496949
</para>
69506950
</listitem>
69516951
</varlistentry>

‎doc/src/sgml/extend.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ include $(PGXS)
14411441
and include the global <acronym>PGXS</acronym> makefile.
14421442
Here is an example that builds an extension module named
14431443
<literal>isbn_issn</literal>, consisting of a shared library containing
1444-
some C code, an extension control file,a SQL script, an include file
1444+
some C code, an extension control file,an SQL script, an include file
14451445
(only needed if other modules might need to access the extension functions
14461446
without going via SQL), and a documentation text file:
14471447
<programlisting>

‎doc/src/sgml/func.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15196,7 +15196,7 @@ table2-mapping
1519615196
<returnvalue>json</returnvalue>
1519715197
</para>
1519815198
<para>
15199-
Convertsa SQL array to a JSON array. The behavior is the same
15199+
Convertsan SQL array to a JSON array. The behavior is the same
1520015200
as <function>to_json</function> except that line feeds will be added
1520115201
between top-level array elements if the optional boolean parameter is
1520215202
true.
@@ -15216,7 +15216,7 @@ table2-mapping
1521615216
<returnvalue>json</returnvalue>
1521715217
</para>
1521815218
<para>
15219-
Convertsa SQL composite value to a JSON object. The behavior is the
15219+
Convertsan SQL composite value to a JSON object. The behavior is the
1522015220
same as <function>to_json</function> except that line feeds will be
1522115221
added between top-level elements if the optional boolean parameter is
1522215222
true.
@@ -15629,7 +15629,7 @@ table2-mapping
1562915629
<itemizedlist spacing="compact">
1563015630
<listitem>
1563115631
<para>
15632-
A JSON null value is converted toa SQL null in all cases.
15632+
A JSON null value is converted toan SQL null in all cases.
1563315633
</para>
1563415634
</listitem>
1563515635
<listitem>
@@ -16152,7 +16152,7 @@ table2-mapping
1615216152
<literal>string</literal>, <literal>number</literal>,
1615316153
<literal>boolean</literal>, and <literal>null</literal>.
1615416154
(The <literal>null</literal> result should not be confused
16155-
witha SQL NULL; see the examples.)
16155+
withan SQL NULL; see the examples.)
1615616156
</para>
1615716157
<para>
1615816158
<literal>json_typeof('-123.4')</literal>

‎doc/src/sgml/high-availability.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ HINT: You can then restart the server after making the necessary configuration
21942194
Currently, temporary table creation is not allowed during read only
21952195
transactions, so in some cases existing scripts will not run correctly.
21962196
This restriction might be relaxed in a later release. This is
2197-
botha SQL Standard compliance issue and a technical issue.
2197+
bothan SQL Standard compliance issue and a technical issue.
21982198
</para>
21992199

22002200
<para>

‎doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ aminsert (Relation indexRelation,
338338

339339
<para>
340340
If the index AM wishes to cache data across successive index insertions
341-
withina SQL statement, it can allocate space
341+
withinan SQL statement, it can allocate space
342342
in <literal>indexInfo-&gt;ii_Context</literal> and store a pointer to the
343343
data in <literal>indexInfo-&gt;ii_AmCache</literal> (which will be NULL
344344
initially).

‎doc/src/sgml/libpq.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,7 @@ char *PQresultErrorField(const PGresult *res, int fieldcode);
34683468
<listitem>
34693469
<para>
34703470
The text of a failed internally-generated command. This could
3471-
be, for example,a SQL query issued by a PL/pgSQL function.
3471+
be, for example,an SQL query issued by a PL/pgSQL function.
34723472
</para>
34733473
</listitem>
34743474
</varlistentry>
@@ -5468,7 +5468,7 @@ UPDATE mytable SET x = x + 1 WHERE id = 42;
54685468
</indexterm>
54695469

54705470
<para>
5471-
Ordinarily, <application>libpq</application> collectsa SQL command's
5471+
Ordinarily, <application>libpq</application> collectsan SQL command's
54725472
entire result and returns it to the application as a single
54735473
<structname>PGresult</structname>. This can be unworkable for commands
54745474
that return a large number of rows. For such cases, applications can use

‎doc/src/sgml/ltree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ ltreetest=&gt; SELECT subpath(path,0,2)||'Space'||subpath(path,2) FROM test WHER
804804
</para>
805805

806806
<para>
807-
We could simplify this by creatinga SQL function that inserts a label
807+
We could simplify this by creatingan SQL function that inserts a label
808808
at a specified position in a path:
809809
<screen>
810810
CREATE FUNCTION ins_label(ltree, int, text) RETURNS ltree

‎doc/src/sgml/mvcc.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
703703
transactions might do, or it will not successfully commit. It is
704704
important that an environment which uses this technique have a
705705
generalized way of handling serialization failures (which always return
706-
witha SQLSTATE value of '40001'), because it will be very hard to
706+
withan SQLSTATE value of '40001'), because it will be very hard to
707707
predict exactly which transactions might contribute to the read/write
708708
dependencies and need to be rolled back to prevent serialization
709709
anomalies. The monitoring of read/write dependencies has a cost, as does

‎doc/src/sgml/pageinspect.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ test=# SELECT page_checksum(get_raw_page('pg_class', 0), 0);
136136
<listitem>
137137
<para>
138138
<function>fsm_page_contents</function> shows the internal node structure
139-
ofa FSM page. For example:
139+
ofan FSM page. For example:
140140
<screen>
141141
test=# SELECT fsm_page_contents(get_raw_page('pg_class', 'fsm', 0));
142142
</screen>

‎doc/src/sgml/pgcrypto.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ gen_salt(type text [, iter_count integer ]) returns text
521521
</listitem>
522522
<listitem>
523523
<para>
524-
An SHA1 hash of the random prefix and data is appended.
524+
A SHA1 hash of the random prefix and data is appended.
525525
</para>
526526
</listitem>
527527
<listitem>

‎doc/src/sgml/plpgsql.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ PERFORM <replaceable>query</replaceable>;
10991099
One might expect that writing <command>SELECT</command> directly
11001100
would accomplish this result, but at
11011101
present the only accepted way to do it is
1102-
<command>PERFORM</command>.A SQL command that can return rows,
1102+
<command>PERFORM</command>.An SQL command that can return rows,
11031103
such as <command>SELECT</command>, will be rejected as an error
11041104
unless it has an <literal>INTO</literal> clause as discussed in the
11051105
next section.
@@ -1128,7 +1128,7 @@ PERFORM create_mv('cs_session_page_requests_mv', my_query);
11281128
</indexterm>
11291129

11301130
<para>
1131-
The result ofa SQL command yielding a single row (possibly of multiple
1131+
The result ofan SQL command yielding a single row (possibly of multiple
11321132
columns) can be assigned to a record variable, row-type variable, or list
11331133
of scalar variables. This is done by writing the base SQL command and
11341134
adding an <literal>INTO</literal> clause. For example,
@@ -1317,7 +1317,7 @@ EXECUTE <replaceable class="command">command-string</replaceable> <optional> INT
13171317

13181318
<para>
13191319
The <literal>INTO</literal> clause specifies where the results of
1320-
a SQL command returning rows should be assigned. If a row variable
1320+
an SQL command returning rows should be assigned. If a row variable
13211321
or variable list is provided, it must exactly match the structure
13221322
of the command's results; if a
13231323
record variable is provided, it will configure itself to match the
@@ -2659,7 +2659,7 @@ END LOOP <optional> <replaceable>label</replaceable> </optional>;
26592659

26602660
<para>
26612661
The <literal>FOREACH</literal> loop is much like a <literal>FOR</literal> loop,
2662-
but instead of iterating through the rows returned bya SQL query,
2662+
but instead of iterating through the rows returned byan SQL query,
26632663
it iterates through the elements of an array value.
26642664
(In general, <literal>FOREACH</literal> is meant for looping through
26652665
components of a composite-valued expression; variants for looping
@@ -4726,7 +4726,7 @@ INSERT INTO foo (foo) VALUES (foo(foo));
47264726

47274727
<para>
47284728
Another way to understand this is that variable substitution can only
4729-
insert data values intoa SQL command; it cannot dynamically change which
4729+
insert data values intoan SQL command; it cannot dynamically change which
47304730
database objects are referenced by the command. (If you want to do
47314731
that, you must build a command string dynamically, as explained in
47324732
<xref linkend="plpgsql-statements-executing-dyn"/>.)
@@ -4748,7 +4748,7 @@ INSERT INTO dest (col) SELECT foo + bar FROM src;
47484748

47494749
<para>
47504750
By default, <application>PL/pgSQL</application> will report an error if a name
4751-
ina SQL statement could refer to either a variable or a table column.
4751+
inan SQL statement could refer to either a variable or a table column.
47524752
You can fix such a problem by renaming the variable or column,
47534753
or by qualifying the ambiguous reference, or by telling
47544754
<application>PL/pgSQL</application> which interpretation to prefer.
@@ -5384,7 +5384,7 @@ HINT: Make sure the query returns the exact list of columns.
53845384
<itemizedlist>
53855385
<listitem>
53865386
<para>
5387-
If a name used ina SQL command could be either a column name of a
5387+
If a name used inan SQL command could be either a column name of a
53885388
table used in the command or a reference to a variable of the function,
53895389
<application>PL/SQL</application> treats it as a column name.
53905390
By default, <application>PL/pgSQL</application> will throw an error

‎doc/src/sgml/plpython.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ AS $$
577577
$$ LANGUAGE plpythonu;
578578
</programlisting>
579579

580-
To returna SQL null for any column, insert <symbol>None</symbol> at
580+
To returnan SQL null for any column, insert <symbol>None</symbol> at
581581
the corresponding position.
582582
</para>
583583
<para>
@@ -605,7 +605,7 @@ $$ LANGUAGE plpythonu;
605605

606606
Any extra dictionary key/value pairs are ignored. Missing keys are
607607
treated as errors.
608-
To returna SQL null value for any column, insert
608+
To returnan SQL null value for any column, insert
609609
<symbol>None</symbol> with the corresponding column name as the key.
610610
</para>
611611
</listitem>

‎doc/src/sgml/pltcl.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ $$ LANGUAGE pltcl;
475475
<listitem>
476476
<para>
477477
The Tcl script contained in <replaceable>command</replaceable> is
478-
executed withina SQL subtransaction. If the script returns an
478+
executed withinan SQL subtransaction. If the script returns an
479479
error, that entire subtransaction is rolled back before returning the
480480
error out to the surrounding Tcl code.
481481
See <xref linkend="pltcl-subtransactions"/> for more details and an
@@ -854,7 +854,7 @@ CREATE EVENT TRIGGER tcl_a_snitch ON ddl_command_start EXECUTE FUNCTION tclsnitc
854854
PL/Tcl's <function>elog</function> command. Such errors can be caught
855855
within Tcl using the Tcl <function>catch</function> command. If an
856856
error is not caught but is allowed to propagate out to the top level of
857-
execution of the PL/Tcl function, it is reported asa SQL error in the
857+
execution of the PL/Tcl function, it is reported asan SQL error in the
858858
function's calling query.
859859
</para>
860860

@@ -867,7 +867,7 @@ CREATE EVENT TRIGGER tcl_a_snitch ON ddl_command_start EXECUTE FUNCTION tclsnitc
867867
subtransaction, which is rolled back on error, so that any
868868
partially-completed operation is automatically cleaned up.)
869869
Again, if an error propagates out to the top level without being caught,
870-
it turns back intoa SQL error.
870+
it turns back intoan SQL error.
871871
</para>
872872

873873
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp