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

Commit aaf8c99

Browse files
committed
Fix typos and some format mistakes in comments
Author: Justin Pryzby Discussion: https://postgr.es/m/20200612023709.GC14879@telsasoft.com
1 parent ffd2582 commit aaf8c99

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ replorigin_drop(RepOriginId roident, bool nowait)
427427

428428

429429
/*
430-
* Lookup replication origin via it's oid and return the name.
430+
* Lookup replication origin via its oid and return the name.
431431
*
432432
* The external name is palloc'd in the calling context.
433433
*

src/backend/replication/logical/relation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ logicalrep_partmap_init(void)
576576
* the attribute map, which can be different for the partition.
577577
*
578578
* Note there's no logicalrep_partition_close, because the caller closes the
579-
* the component relation.
579+
* component relation.
580580
*/
581581
LogicalRepRelMapEntry *
582582
logicalrep_partition_open(LogicalRepRelMapEntry *root,

src/backend/utils/mmgr/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ Memory Accounting
462462
-----------------
463463

464464
One of the basic memory context operations is determining the amount of
465-
memory used in the context (and it's children). We have multiple places
465+
memory used in the context (and its children). We have multiple places
466466
that implement their own ad hoc memory accounting, and this is meant to
467467
provide a unified approach. Ad hoc accounting solutions work for places
468468
with tight control over the allocations or when it's easy to determine

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ dumpOptionsFromRestoreOptions(RestoreOptions *ropt)
209209
/*
210210
* Wrapper functions.
211211
*
212-
* The objective it to make writing new formats and dumpers as simple
212+
* The objective is to make writing new formats and dumpers as simple
213213
* as possible, if necessary at the expense of extra function calls etc.
214214
*
215215
*/
216216

217217
/*
218218
* The dump worker setup needs lots of knowledge of the internals of pg_dump,
219-
* so It's defined in pg_dump.c and passed into OpenArchive. The restore worker
219+
* so it's defined in pg_dump.c and passed into OpenArchive. The restore worker
220220
* setup doesn't need to know anything much, so it's defined here.
221221
*/
222222
static void
@@ -1450,7 +1450,7 @@ SortTocFromFile(Archive *AHX)
14501450
}
14511451

14521452
/**********************
1453-
* 'Convenience functions that look like standard IO functions
1453+
* Convenience functions that look like standard IO functions
14541454
* for writing data when in dump mode.
14551455
**********************/
14561456

src/bin/pg_dump/pg_backup_custom.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ _ReadExtraToc(ArchiveHandle *AH, TocEntry *te)
262262
* that includes useful information about the TOC entry.
263263
*
264264
* Optional.
265-
*
266265
*/
267266
static void
268267
_PrintExtraToc(ArchiveHandle *AH, TocEntry *te)
@@ -324,7 +323,6 @@ _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
324323
* finished.
325324
*
326325
* Optional.
327-
*
328326
*/
329327
static void
330328
_EndData(ArchiveHandle *AH, TocEntry *te)
@@ -529,8 +527,8 @@ _LoadBlobs(ArchiveHandle *AH, bool drop)
529527
/*
530528
* Skip the BLOBs from the current file position.
531529
* BLOBS are written sequentially as data blocks (see below).
532-
* Each BLOB is preceded by it's original OID.
533-
* A zero OID indicated the end of the BLOBS
530+
* Each BLOB is preceded by its original OID.
531+
* A zero OID indicates the end of the BLOBS.
534532
*/
535533
static void
536534
_skipBlobs(ArchiveHandle *AH)
@@ -548,7 +546,7 @@ _skipBlobs(ArchiveHandle *AH)
548546
/*
549547
* Skip data from current file position.
550548
* Data blocks are formatted as an integer length, followed by data.
551-
* A zero length denoted the end of the block.
549+
* A zero length indicates the end of the block.
552550
*/
553551
static void
554552
_skipData(ArchiveHandle *AH)

0 commit comments

Comments
 (0)