Skip to content

Commit eef231e

Browse files
committed
Fix some typos and some incorrectly duplicated words
Author: Justin Pryzby Reviewed-by: David Rowley Discussion: https://postgr.es/m/ZD3D1QxoccnN8A1V@telsasoft.com
1 parent b4dbf3e commit eef231e

File tree

20 files changed

+22
-22
lines changed

20 files changed

+22
-22
lines changed

contrib/test_decoding/expected/ddl.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'inc
428428
-- test whether a known, but not yet logged toplevel xact, followed by a
429429
-- subxact commit is handled correctly
430430
BEGIN;
431-
SELECT pg_current_xact_id() != '0'; -- so no fixed xid apears in the outfile
431+
SELECT pg_current_xact_id() != '0'; -- so no fixed xid appears in the outfile
432432
?column?
433433
----------
434434
t

contrib/test_decoding/sql/ddl.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'inc
236236
-- test whether a known, but not yet logged toplevel xact, followed by a
237237
-- subxact commit is handled correctly
238238
BEGIN;
239-
SELECT pg_current_xact_id() != '0'; -- so no fixed xid apears in the outfile
239+
SELECT pg_current_xact_id() != '0'; -- so no fixed xid appears in the outfile
240240
SAVEPOINT a;
241241
INSERT INTO tr_sub(path) VALUES ('4-top-1-#1');
242242
RELEASE SAVEPOINT a;

doc/src/sgml/user-manag.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ALTER ROLE myname SET enable_indexscan TO off;
346346
role using <literal>SET ROLE</literal>. However, since any user who has
347347
<literal>ADMIN OPTION</literal> on a role can grant membership in that
348348
role to any other user, the <literal>CREATEROLE</literal> user can gain
349-
access to the created role by simplying granting that role back to
349+
access to the created role by simply granting that role back to
350350
themselves with the <literal>INHERIT</literal> and/or <literal>SET</literal>
351351
options. Thus, the fact that privileges are not inherited by default nor
352352
is <literal>SET ROLE</literal> granted by default is a safeguard against

src/backend/optimizer/path/allpaths.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4051,7 +4051,7 @@ recurse_push_qual(Node *setOp, Query *topquery,
40514051
*
40524052
* extra_used_attrs can be passed as non-NULL to mark any columns (offset by
40534053
* FirstLowInvalidHeapAttributeNumber) that we should not remove. This
4054-
* parameter is modifed by the function, so callers must make a copy if they
4054+
* parameter is modified by the function, so callers must make a copy if they
40554055
* need to use the passed in Bitmapset after calling this function.
40564056
*
40574057
* To avoid affecting column numbering in the targetlist, we don't physically

src/backend/optimizer/util/plancat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent,
436436
* the number-of-tuples estimate to equal the parent table; if it
437437
* is partial then we have to use the same methods as we would for
438438
* a table, except we can be sure that the index is not larger
439-
* than the table. We must ignore partitioned indexes here as as
439+
* than the table. We must ignore partitioned indexes here as
440440
* there are not physical indexes.
441441
*/
442442
if (indexRelation->rd_rel->relkind != RELKIND_PARTITIONED_INDEX)

src/backend/replication/pgoutput/pgoutput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ static void
17711771
pgoutput_stream_stop(struct LogicalDecodingContext *ctx,
17721772
ReorderBufferTXN *txn)
17731773
{
1774-
/* we should be streaming a trasanction */
1774+
/* we should be streaming a transaction */
17751775
Assert(in_streaming);
17761776

17771777
OutputPluginPrepareWrite(ctx, true);

src/backend/utils/adt/xid8funcs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ pg_xact_status(PG_FUNCTION_ARGS)
678678
Assert(TransactionIdIsValid(xid));
679679

680680
/*
681-
* Like when doing visiblity checks on a row, check whether the
681+
* Like when doing visibility checks on a row, check whether the
682682
* transaction is still in progress before looking into the CLOG.
683683
* Otherwise we would incorrectly return "committed" for a transaction
684684
* that is committing and has already updated the CLOG, but hasn't

src/bin/pg_amcheck/t/002_nonesuch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
qr/pg_amcheck: warning: no connectable databases to check matching "no_such_database\.public\.foo_idx"/,
325325
qr/pg_amcheck: error: no relations to check/,
326326
],
327-
'checking otherwise existent objets in the wrong databases');
327+
'checking otherwise existent objects in the wrong databases');
328328

329329

330330
#########################################

src/bin/pg_basebackup/bbstreamer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bbstreamer_buffer_bytes(bbstreamer *streamer, const char **data, int *len,
165165
}
166166

167167
/*
168-
* This is a convenence method for use when implementing a bbstreamer; it is
168+
* This is a convenience method for use when implementing a bbstreamer; it is
169169
* not for use by outsider callers. It attempts to add enough data to the
170170
* bbstreamer's buffer to reach a length of target_bytes and adjusts '*len'
171171
* and '*data' accordingly. It returns true if the target length has been

src/bin/pg_dump/pg_dumpall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,11 +997,11 @@ dumpRoleMembership(PGconn *conn)
997997
/*
998998
* We can't dump these GRANT commands in arbitrary order, because a role
999999
* that is named as a grantor must already have ADMIN OPTION on the
1000-
* role for which it is granting permissions, except for the boostrap
1000+
* role for which it is granting permissions, except for the bootstrap
10011001
* superuser, who can always be named as the grantor.
10021002
*
10031003
* We handle this by considering these grants role by role. For each role,
1004-
* we initially consider the only allowable grantor to be the boostrap
1004+
* we initially consider the only allowable grantor to be the bootstrap
10051005
* superuser. Every time we grant ADMIN OPTION on the role to some user,
10061006
* that user also becomes an allowable grantor. We make repeated passes
10071007
* over the grants for the role, each time dumping those whose grantors

src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3541,7 +3541,7 @@ printVerboseErrorMessages(CState *st, pg_time_usec_t *now, bool is_retry)
35413541
"ends the failed transaction"));
35423542
appendPQExpBuffer(buf, " (try %u", st->tries);
35433543

3544-
/* Print max_tries if it is not unlimitted. */
3544+
/* Print max_tries if it is not unlimited. */
35453545
if (max_tries)
35463546
appendPQExpBuffer(buf, "/%u", max_tries);
35473547

@@ -5303,7 +5303,7 @@ GetTableInfo(PGconn *con, bool scale_given)
53035303
pg_log_error_hint("Perhaps you need to do initialization (\"pgbench -i\") in database \"%s\".", PQdb(con));
53045304
exit(1);
53055305
}
5306-
else /* PQntupes(res) == 1 */
5306+
else /* PQntuples(res) == 1 */
53075307
{
53085308
/* normal case, extract partition information */
53095309
if (PQgetisnull(res, 0, 1))

src/include/access/tableam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ table_relation_toast_am(Relation rel)
18951895
*
18961896
* toastrel is the relation in which the toasted value is stored.
18971897
*
1898-
* valueid identifes which toast value is to be fetched. For the heap,
1898+
* valueid identifies which toast value is to be fetched. For the heap,
18991899
* this corresponds to the values stored in the chunk_id column.
19001900
*
19011901
* attrsize is the total size of the toast value to be fetched.

src/include/backup/basebackup_target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct BaseBackupTargetHandle BaseBackupTargetHandle;
2626
* and either throws an error (if the target detail is not valid or some other
2727
* problem, such as a permissions issue, is detected) or returns a pointer to
2828
* the data that will be needed to create a bbsink implementing that target.
29-
* The second argumnt will be NULL if the TARGET_DETAIL option to the
29+
* The second argument will be NULL if the TARGET_DETAIL option to the
3030
* BASE_BACKUP command was not specified.
3131
*
3232
* 'get_sink' is a function that creates the bbsink. The first argument

src/include/replication/output_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
112112
const char *gid);
113113

114114
/*
115-
* Callback called for every BEGIN of a prepared trnsaction.
115+
* Callback called for every BEGIN of a prepared transaction.
116116
*/
117117
typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
118118
ReorderBufferTXN *txn);

src/include/storage/s_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ tas(volatile slock_t *lock)
321321
/*
322322
* Solaris has always run sparc processors in TSO (total store) mode, but
323323
* linux didn't use to and the *BSDs still don't. So, be careful about
324-
* acquire/release semantics. The CPU will treat superfluous membars as
324+
* acquire/release semantics. The CPU will treat superfluous members as
325325
* NOPs, so it's just code space.
326326
*/
327327
#define HAS_TEST_AND_SET

src/test/isolation/specs/serializable-parallel-3.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Exercise the case where a read-only serializable transaction has
22
# SXACT_FLAG_RO_SAFE set in a parallel query. This variant is like
3-
# two copies of #2 running at the same time, and excercises the case
3+
# two copies of #2 running at the same time, and exercises the case
44
# where another transaction has the same xmin, and it is the oldest.
55

66
setup

src/test/modules/unsafe_tests/expected/guc_privs.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ GRANT SET, ALTER SYSTEM ON PARAMETER
337337
autovacuum_work_mem, hash_mem_multiplier, max_stack_depth,
338338
shared_buffers, temp_file_limit, work_mem
339339
TO regress_host_resource_admin;
340-
-- Check the new role now has privilges on parameters
340+
-- Check the new role now has privileges on parameters
341341
SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET, ALTER SYSTEM');
342342
has_parameter_privilege
343343
-------------------------

src/test/modules/unsafe_tests/sql/guc_privs.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ GRANT SET, ALTER SYSTEM ON PARAMETER
133133
autovacuum_work_mem, hash_mem_multiplier, max_stack_depth,
134134
shared_buffers, temp_file_limit, work_mem
135135
TO regress_host_resource_admin;
136-
-- Check the new role now has privilges on parameters
136+
-- Check the new role now has privileges on parameters
137137
SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET, ALTER SYSTEM');
138138
SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET');
139139
SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'ALTER SYSTEM');

src/tools/pg_bsd_indent/tests/elsecomment.0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* $FreeBSD$ */
22
/* See r303484 and r309342 */
33
void t(void) {
4-
/* The two if statements below excercise two different code paths. */
4+
/* The two if statements below exercise two different code paths. */
55

66
if (1) /* a */ int a; else /* b */ int b;
77

src/tools/pg_bsd_indent/tests/elsecomment.0.stdout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
void
44
t(void)
55
{
6-
/* The two if statements below excercise two different code paths. */
6+
/* The two if statements below exercise two different code paths. */
77

88
if (1) /* a */
99
int a;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy