Skip to content

Commit 5f6401f

Browse files
committed
Fix typos in code and comments
Author: Justin Pryzby Discussion: https://postgr.es/m/20230110045722.GD9837@telsasoft.com
1 parent 69fb29d commit 5f6401f

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

doc/src/sgml/ref/alter_database.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ ALTER DATABASE <replaceable class="parameter">name</replaceable> RESET ALL
211211
<term><literal>USER SET</literal></term>
212212
<listitem>
213213
<para>
214-
Specifies that variable should be set on behalf of ordinary role.
215-
That lets non-superuser and non-replication role to set placeholder
216-
variables, with permission requirements is not known yet;
214+
Specifies that the variable should be set on behalf of an ordinary role.
215+
That allows non-superuser and non-replication roles to set placeholder
216+
variables, whose permission requirements are not known yet;
217217
see <xref linkend="runtime-config-custom"/>. The variable won't
218218
be set if it appears to require superuser privileges.
219219
</para>

doc/src/sgml/ref/alter_role.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ ALTER ROLE { <replaceable class="parameter">role_specification</replaceable> | A
241241
<term><literal>USER SET</literal></term>
242242
<listitem>
243243
<para>
244-
Specifies that variable should be set on behalf of ordinary role.
245-
That lets non-superuser and non-replication role to set placeholder
246-
variables, with permission requirements is not known yet;
244+
Specifies that the variable should be set on behalf of an ordinary role.
245+
That allows non-superuser and non-replication roles to set placeholder
246+
variables, whose permission requirements are not known yet;
247247
see <xref linkend="runtime-config-custom"/>. The variable won't
248248
be set if it appears to require superuser privileges.
249249
</para>

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,8 +1901,8 @@ INSERT INTO tbl1 VALUES ($1, $2) \bind 'first value' 'second value' \g
19011901
</para>
19021902

19031903
<para>
1904-
Since <productname>PostgreSQL</productname> 16 the output includes
1905-
column with the values of
1904+
Since <productname>PostgreSQL</productname> 16, the output includes a
1905+
column with the values of the
19061906
<link linkend="sql-alterrole-user-set"><literal>USER SET</literal></link>
19071907
flag for each setting.
19081908
</para>

doc/src/sgml/system-views.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@
15801580
</para>
15811581

15821582
<para>
1583-
A specualtive insertion lock consists of a transaction ID and a speculative
1583+
A speculative insertion lock consists of a transaction ID and a speculative
15841584
insertion token. The speculative insertion token is displayed in the
15851585
<structfield>objid</structfield> column.
15861586
</para>

src/backend/access/transam/xlogrecovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ CheckRecoveryConsistency(void)
21142114

21152115
/*
21162116
* Check that pg_tblspc doesn't contain any real directories. Replay
2117-
* of Database/CREATE_* records may have created ficticious tablespace
2117+
* of Database/CREATE_* records may have created fictitious tablespace
21182118
* directories that should have been removed by the time consistency
21192119
* was reached.
21202120
*/

src/backend/utils/mmgr/mcxt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,10 +717,10 @@ MemoryContextStatsDetail(MemoryContext context, int max_children,
717717
* to the connected client.
718718
*
719719
* We don't buffer the information about all memory contexts in a
720-
* backend into StringInfo and log it as one message. Otherwise which
721-
* may require the buffer to be enlarged very much and lead to OOM
722-
* error since there can be a large number of memory contexts in a
723-
* backend. Instead, we log one message per memory context.
720+
* backend into StringInfo and log it as one message. That would
721+
* require the buffer to be enlarged, risking an OOM as there could
722+
* be a large number of memory contexts in a backend. Instead, we
723+
* log one message per memory context.
724724
*/
725725
ereport(LOG_SERVER_ONLY,
726726
(errhidestmt(true),

src/bin/psql/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ ExecQueryAndProcessResults(const char *query,
14471447
if (!AcceptResult(result, false))
14481448
{
14491449
/*
1450-
* Some error occured, either a server-side failure or a failure
1450+
* Some error occurred, either a server-side failure or a failure
14511451
* to submit the command string. Record that.
14521452
*/
14531453
const char *error = PQresultErrorMessage(result);

src/test/modules/test_pg_db_role_setting/expected/test_pg_db_role_setting.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ SHOW test_pg_db_role_setting.user_param;
122122
bbb
123123
(1 row)
124124

125-
-- module is loaded, and placeholder values are succesfully set
125+
-- module is loaded, and placeholder values are successfully set
126126
SELECT load_test_pg_db_role_setting();
127127
load_test_pg_db_role_setting
128128
------------------------------

src/test/modules/test_pg_db_role_setting/sql/test_pg_db_role_setting.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ALTER ROLE regress_regular_user SET test_pg_db_role_setting.superuser_param = 'c
5656
SHOW test_pg_db_role_setting.superuser_param;
5757
SHOW test_pg_db_role_setting.user_param;
5858

59-
-- module is loaded, and placeholder values are succesfully set
59+
-- module is loaded, and placeholder values are successfully set
6060
SELECT load_test_pg_db_role_setting();
6161

6262
SHOW test_pg_db_role_setting.superuser_param;

0 commit comments

Comments
 (0)