Skip to content

Commit d098b23

Browse files
committed
Fix typos in comments.
1 parent a26ae56 commit d098b23

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/backend/catalog/namespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
260260
* with the answer changing under them, or that they already hold some
261261
* appropriate lock, and therefore return the first answer we get without
262262
* checking for invalidation messages. Also, if the requested lock is
263-
* already held, no LockRelationOid will not AcceptInvalidationMessages,
263+
* already held, LockRelationOid will not AcceptInvalidationMessages,
264264
* so we may fail to notice a change. We could protect against that case
265265
* by calling AcceptInvalidationMessages() before beginning this loop, but
266266
* that would add a significant amount overhead, so for now we don't.
@@ -502,7 +502,7 @@ RangeVarGetCreationNamespace(const RangeVar *newRelation)
502502
* the same name which already exists in that namespace, or to InvalidOid if
503503
* no such relation exists.
504504
*
505-
* If lockmode != NoLock, the specified lock mode is acquire on the existing
505+
* If lockmode != NoLock, the specified lock mode is acquired on the existing
506506
* relation, if any, provided that the current user owns the target relation.
507507
* However, if lockmode != NoLock and the user does not own the target
508508
* relation, we throw an ERROR, as we must not try to lock relations the

src/backend/port/win32/socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pgwin32_waitforsinglesocket(SOCKET s, int what, int timeout)
177177
* Just a workaround of unknown locking problem with writing in UDP socket
178178
* under high load: Client's pgsql backend sleeps infinitely in
179179
* WaitForMultipleObjectsEx, pgstat process sleeps in pgwin32_select().
180-
* So, we will wait with small timeout(0.1 sec) and if sockect is still
180+
* So, we will wait with small timeout(0.1 sec) and if socket is still
181181
* blocked, try WSASend (see comments in pgwin32_select) and wait again.
182182
*/
183183
if ((what & FD_WRITE) && isUDP)

src/backend/utils/mb/encnames.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Encoding names and routines for work with it. All
3-
* in this file is shared bedween FE and BE.
3+
* in this file is shared between FE and BE.
44
*
55
* src/backend/utils/mb/encnames.c
66
*/

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11332,7 +11332,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
1133211332
/* Make sure we are in proper schema */
1133311333
selectSourceSchema(fout, collinfo->dobj.namespace->dobj.name);
1133411334

11335-
/* Get conversion-specific details */
11335+
/* Get collation-specific details */
1133611336
appendPQExpBuffer(query, "SELECT "
1133711337
"collcollate, "
1133811338
"collctype "

0 commit comments

Comments
 (0)