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

Commit 3aff33a

Browse files
committed
Fix typos.
Oskari Saarenmaa
1 parent fd658db commit 3aff33a

File tree

26 files changed

+30
-30
lines changed

26 files changed

+30
-30
lines changed

contrib/pgcrypto/sha1.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extern void sha1_pad(struct sha1_ctxt *);
6363
extern void sha1_loop(struct sha1_ctxt *, const uint8 *, size_t);
6464
extern void sha1_result(struct sha1_ctxt *, uint8 *);
6565

66-
/* compatibilty with other SHA1 source codes */
66+
/* compatibility with other SHA1 source codes */
6767
typedef struct sha1_ctxt SHA1_CTX;
6868

6969
#define SHA1Init(x) sha1_init((x))

contrib/sepgsql/label.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ sepgsql_set_client_label(const char *new_label)
161161
/*
162162
* sepgsql_xact_callback
163163
*
164-
* A callback routine of transaction commit/abort/prepare. Commmit or abort
164+
* A callback routine of transaction commit/abort/prepare. Commit or abort
165165
* changes in the client_label_pending list.
166166
*/
167167
static void

doc/src/sgml/sources.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ BETTER: unrecognized node type: 42
860860
Code in <productname>PostgreSQL</> should only rely on language
861861
features available in the C89 standard. That means a conforming
862862
C89 compiler has to be able to compile postgres, at least aside
863-
from a few platform dependant pieces. Features from later
863+
from a few platform dependent pieces. Features from later
864864
revision of the C standard or compiler specific features can be
865865
used, if a fallback is provided.
866866
</para>

src/backend/access/transam/twophase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
16131613
* transaction manager isn't active.
16141614
*
16151615
* It's also possible to move I/O out of the lock, but on
1616-
* every error we should check whether somebody commited our
1616+
* every error we should check whether somebody committed our
16171617
* transaction in different backend. Let's leave this optimisation
16181618
* for future, if somebody will spot that this place cause
16191619
* bottleneck.

src/backend/libpq/auth.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ pg_GSS_recvauth(Port *port)
838838

839839
/*
840840
* Loop through GSSAPI message exchange. This exchange can consist of
841-
* multiple messags sent in both directions. First message is always from
841+
* multiple messages sent in both directions. First message is always from
842842
* the client. All messages from client to server are password packets
843843
* (type 'p').
844844
*/
@@ -1078,7 +1078,7 @@ pg_SSPI_recvauth(Port *port)
10781078

10791079
/*
10801080
* Loop through SSPI message exchange. This exchange can consist of
1081-
* multiple messags sent in both directions. First message is always from
1081+
* multiple messages sent in both directions. First message is always from
10821082
* the client. All messages from client to server are password packets
10831083
* (type 'p').
10841084
*/

src/backend/optimizer/util/relnode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ build_join_rel(PlannerInfo *root,
501501
* level.
502502
*
503503
* Note that if there are more than two rels in this relation, they could
504-
* be divided between inner_rel and outer_rel in any arbitary way. We
504+
* be divided between inner_rel and outer_rel in any arbitrary way. We
505505
* assume this doesn't matter, because we should hit all the same baserels
506506
* and joinclauses while building up to this joinrel no matter which we
507507
* take; therefore, we should make the same decision here however we get

src/backend/parser/parse_target.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ transformTargetEntry(ParseState *pstate,
115115
*
116116
* This code acts mostly the same for SELECT, UPDATE, or RETURNING lists;
117117
* the main thing is to transform the given expressions (the "val" fields).
118-
* The exprKind parameter distinguishes these cases when necesssary.
118+
* The exprKind parameter distinguishes these cases when necessary.
119119
*/
120120
List *
121121
transformTargetList(ParseState *pstate, List *targetlist,

src/backend/storage/buffer/bufmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int effective_io_concurrency = 0;
113113

114114
/*
115115
* GUC variables about triggering kernel writeback for buffers written; OS
116-
* dependant defaults are set via the GUC mechanism.
116+
* dependent defaults are set via the GUC mechanism.
117117
*/
118118
int checkpoint_flush_after = 0;
119119
int bgwriter_flush_after = 0;

src/backend/storage/ipc/dsm_impl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* substantially, but there should be few systems where we must make do
3535
* with such poor tools.
3636
*
37-
* As ever, Windows requires its own implemetation.
37+
* As ever, Windows requires its own implementation.
3838
*
3939
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
4040
* Portions Copyright (c) 1994, Regents of the University of California

src/backend/storage/ipc/procarray.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef struct ProcArrayStruct
7171
* Known assigned XIDs handling
7272
*/
7373
int maxKnownAssignedXids; /* allocated size of array */
74-
int numKnownAssignedXids; /* currrent # of valid entries */
74+
int numKnownAssignedXids; /* current # of valid entries */
7575
int tailKnownAssignedXids; /* index of oldest valid element */
7676
int headKnownAssignedXids; /* index of newest element, + 1 */
7777
slock_t known_assigned_xids_lck; /* protects head/tail pointers */

src/backend/storage/ipc/shm_mq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ shm_mq_inc_bytes_read(volatile shm_mq *mq, Size n)
11041104
sender = mq->mq_sender;
11051105
SpinLockRelease(&mq->mq_mutex);
11061106

1107-
/* We shoudn't have any bytes to read without a sender. */
1107+
/* We shouldn't have any bytes to read without a sender. */
11081108
Assert(sender != NULL);
11091109
SetLatch(&sender->procLatch);
11101110
}

src/backend/utils/adt/json.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ parse_object(JsonLexContext *lex, JsonSemAction *sem)
508508
*/
509509
lex->lex_level++;
510510

511-
/* we know this will succeeed, just clearing the token */
511+
/* we know this will succeed, just clearing the token */
512512
lex_expect(JSON_PARSE_OBJECT_START, lex, JSON_TOKEN_OBJECT_START);
513513

514514
tok = lex_peek(lex);

src/backend/utils/adt/windowfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ rank_up(WindowObject winobj)
6767
up = true;
6868
}
6969

70-
/* We can advance the mark, but only *after* acccess to prior row */
70+
/* We can advance the mark, but only *after* access to prior row */
7171
WinSetMarkPosition(winobj, curpos);
7272

7373
return up;

src/backend/utils/misc/guc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,7 @@ static struct config_int ConfigureNamesInt[] =
23912391
GUC_UNIT_BLOCKS
23922392
},
23932393
&checkpoint_flush_after,
2394-
/* see bufmgr.h: OS dependant default */
2394+
/* see bufmgr.h: OS dependent default */
23952395
DEFAULT_CHECKPOINT_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
23962396
NULL, NULL, NULL
23972397
},
@@ -2403,7 +2403,7 @@ static struct config_int ConfigureNamesInt[] =
24032403
GUC_UNIT_BLOCKS
24042404
},
24052405
&backend_flush_after,
2406-
/* see bufmgr.h: OS dependant default */
2406+
/* see bufmgr.h: OS dependent default */
24072407
DEFAULT_BACKEND_FLUSH_AFTER, 0, WRITEBACK_MAX_PENDING_FLUSHES,
24082408
NULL, NULL, NULL
24092409
},

src/bin/pg_dump/compress_io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ DeflateCompressorZlib(ArchiveHandle *AH, CompressorState *cs, bool flush)
296296
if (zp->avail_out < cs->zlibOutSize)
297297
{
298298
/*
299-
* Any write function shoud do its own error checking but to
299+
* Any write function should do its own error checking but to
300300
* make sure we do a check here as well...
301301
*/
302302
size_t len = cs->zlibOutSize - zp->avail_out;

src/bin/pg_dump/parallel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ readMessageFromPipe(int fd)
12621262
int ret;
12631263

12641264
/*
1265-
* The problem here is that we need to deal with several possibilites: we
1265+
* The problem here is that we need to deal with several possibilities: we
12661266
* could receive only a partial message or several messages at once. The
12671267
* caller expects us to return exactly one message however.
12681268
*

src/bin/pg_upgrade/option.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ check_required_directory(char **dirpath, char **configpath,
381381
* adjust_data_dir
382382
*
383383
* If a configuration-only directory was specified, find the real data dir
384-
* by quering the running server. This has limited checking because we
384+
* by querying the running server. This has limited checking because we
385385
* can't check for a running server because we can't find postmaster.pid.
386386
*/
387387
void

src/bin/pgbench/pgbench.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ getExponentialRand(TState *thread, int64 min, int64 max, double parameter)
535535
uniform = 1.0 - pg_erand48(thread->random_state);
536536

537537
/*
538-
* inner expresion in (cut, 1] (if parameter > 0), rand in [0, 1)
538+
* inner expression in (cut, 1] (if parameter > 0), rand in [0, 1)
539539
*/
540540
Assert((1.0 - cut) != 0.0);
541541
rand = -log(cut + (1.0 - cut) * uniform) / parameter;

src/include/storage/shm_toc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* This is intended to provide a simple way to divide a chunk of shared
77
* memory (probably dynamic shared memory allocated via dsm_create) into
8-
* a number of regions and keep track of the addreses of those regions or
8+
* a number of regions and keep track of the addresses of those regions or
99
* key data structures within those regions. This is not intended to
1010
* scale to a large number of keys and will perform poorly if used that
1111
* way; if you need a large number of pointers, store them within some

src/interfaces/ecpg/ecpglib/execute.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* src/interfaces/ecpg/ecpglib/execute.c */
22

33
/*
4-
* The aim is to get a simpler inteface to the database routines.
4+
* The aim is to get a simpler interface to the database routines.
55
* All the tidieous messing around with tuples is supposed to be hidden
66
* by this function.
77
*/

src/interfaces/ecpg/preproc/parse.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ sub preload_addons
632632
my $filename = $path . "/ecpg.addons";
633633
open(my $fh, '<', $filename) or die;
634634

635-
# there may be multple lines starting ECPG: and then multiple lines of code.
635+
# there may be multiple lines starting ECPG: and then multiple lines of code.
636636
# the code need to be add to all prior ECPG records.
637637
my (@needsRules, @code, $record);
638638

src/interfaces/ecpg/preproc/type.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ ECPGdump_a_simple(FILE *o, const char *name, enum ECPGttype type,
446446
sprintf(variable, "&(%s%s)", prefix ? prefix : "", name);
447447

448448
/*
449-
* If we created a varchar structure atomatically, counter is
449+
* If we created a varchar structure automatically, counter is
450450
* greater than 0.
451451
*/
452452
if (counter)

src/test/regress/expected/inherit.out

+2-2
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ DETAIL: drop cascades to table inht2
983983
drop cascades to table inhts
984984
drop cascades to table inht3
985985
drop cascades to table inht4
986-
-- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
986+
-- Test non-inheritable indices [UNIQUE, EXCLUDE] constraints
987987
CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
988988
CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
989989
\d+ test_constraints
@@ -1049,7 +1049,7 @@ Inherits: test_ex_constraints
10491049

10501050
DROP TABLE test_ex_constraints_inh;
10511051
DROP TABLE test_ex_constraints;
1052-
-- Test non-inheritable foreign key contraints
1052+
-- Test non-inheritable foreign key constraints
10531053
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
10541054
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
10551055
CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);

src/test/regress/expected/replica_identity.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
6565
(1 row)
6666

6767
----
68-
-- Make sure index cases succeeed
68+
-- Make sure index cases succeed
6969
----
7070
-- succeed, primary key
7171
ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_identity_pkey;

src/test/regress/sql/inherit.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ SELECT a.attrelid::regclass, a.attname, a.attinhcount, e.expected
299299
DROP TABLE inht1, inhs1 CASCADE;
300300

301301

302-
-- Test non-inheritable indices [UNIQUE, EXCLUDE] contraints
302+
-- Test non-inheritable indices [UNIQUE, EXCLUDE] constraints
303303
CREATE TABLE test_constraints (id int, val1 varchar, val2 int, UNIQUE(val1, val2));
304304
CREATE TABLE test_constraints_inh () INHERITS (test_constraints);
305305
\d+ test_constraints
@@ -321,7 +321,7 @@ ALTER TABLE test_ex_constraints DROP CONSTRAINT test_ex_constraints_c_excl;
321321
DROP TABLE test_ex_constraints_inh;
322322
DROP TABLE test_ex_constraints;
323323

324-
-- Test non-inheritable foreign key contraints
324+
-- Test non-inheritable foreign key constraints
325325
CREATE TABLE test_primary_constraints(id int PRIMARY KEY);
326326
CREATE TABLE test_foreign_constraints(id1 int REFERENCES test_primary_constraints(id));
327327
CREATE TABLE test_foreign_constraints_inh () INHERITS (test_foreign_constraints);

src/test/regress/sql/replica_identity.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ALTER TABLE test_replica_identity REPLICA IDENTITY USING INDEX test_replica_iden
4444
SELECT relreplident FROM pg_class WHERE oid = 'test_replica_identity'::regclass;
4545

4646
----
47-
-- Make sure index cases succeeed
47+
-- Make sure index cases succeed
4848
----
4949

5050
-- succeed, primary key

0 commit comments

Comments
 (0)