Fix typos in comments.

This commit is contained in:
Noah Misch 2014-06-11 19:50:29 -04:00
parent a26ae56f51
commit d098b236f3
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -177,7 +177,7 @@ pgwin32_waitforsinglesocket(SOCKET s, int what, int timeout)
* Just a workaround of unknown locking problem with writing in UDP socket * Just a workaround of unknown locking problem with writing in UDP socket
* under high load: Client's pgsql backend sleeps infinitely in * under high load: Client's pgsql backend sleeps infinitely in
* WaitForMultipleObjectsEx, pgstat process sleeps in pgwin32_select(). * WaitForMultipleObjectsEx, pgstat process sleeps in pgwin32_select().
* So, we will wait with small timeout(0.1 sec) and if sockect is still * So, we will wait with small timeout(0.1 sec) and if socket is still
* blocked, try WSASend (see comments in pgwin32_select) and wait again. * blocked, try WSASend (see comments in pgwin32_select) and wait again.
*/ */
if ((what & FD_WRITE) && isUDP) if ((what & FD_WRITE) && isUDP)

View File

@ -1,6 +1,6 @@
/* /*
* Encoding names and routines for work with it. All * Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE. * in this file is shared between FE and BE.
* *
* src/backend/utils/mb/encnames.c * src/backend/utils/mb/encnames.c
*/ */

View File

@ -11332,7 +11332,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
/* Make sure we are in proper schema */ /* Make sure we are in proper schema */
selectSourceSchema(fout, collinfo->dobj.namespace->dobj.name); selectSourceSchema(fout, collinfo->dobj.namespace->dobj.name);
/* Get conversion-specific details */ /* Get collation-specific details */
appendPQExpBuffer(query, "SELECT " appendPQExpBuffer(query, "SELECT "
"collcollate, " "collcollate, "
"collctype " "collctype "