diff options
author | Noah Misch <noah@leadboat.com> | 2019-06-08 10:12:26 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2019-06-08 10:12:26 -0700 |
commit | 31d250e049b4e3d51a635edaa2221c11815e40e7 (patch) | |
tree | 974dc2122d471fa09c16ad0658d3353cc8b644e6 /src/backend | |
parent | 92c4abc73693690ce9ff13ede160f0dcb0a2de7b (diff) |
Update stale comments, and fix comment typos.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/brin/brin_inclusion.c | 2 | ||||
-rw-r--r-- | src/backend/access/transam/multixact.c | 2 | ||||
-rw-r--r-- | src/backend/port/sysv_shmem.c | 6 | ||||
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/like.c | 1 |
5 files changed, 7 insertions, 8 deletions
diff --git a/src/backend/access/brin/brin_inclusion.c b/src/backend/access/brin/brin_inclusion.c index 332a854af6a..86788024ef6 100644 --- a/src/backend/access/brin/brin_inclusion.c +++ b/src/backend/access/brin/brin_inclusion.c @@ -432,7 +432,7 @@ brin_inclusion_consistent(PG_FUNCTION_ARGS) * It is straightforward to support the equality strategies with * the contains operator. Generally, inequality strategies do not * make much sense for the types which will be used with the - * inclusion BRIN family of opclasses, but is possible to + * inclusion BRIN family of opclasses, but it is possible to * implement them with logical negation of the left-of and * right-of operators. * diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index 4004468fa01..fad859a812e 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -2208,7 +2208,7 @@ SetMultiXactIdLimit(MultiXactId oldest_datminmxid, Oid oldest_datoid, * space, but that's not really true, because multixacts wrap differently * from transaction IDs. Note that, separately from any concern about * multixact IDs wrapping, we must ensure that multixact members do not - * wrap. Limits for that are set in DetermineSafeOldestOffset, not here. + * wrap. Limits for that are set in SetOffsetVacuumLimit, not here. */ multiWrapLimit = oldest_datminmxid + (MaxMultiXactId >> 1); if (multiWrapLimit < FirstMultiXactId) diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c index 4a86fbc1c1e..968506dd516 100644 --- a/src/backend/port/sysv_shmem.c +++ b/src/backend/port/sysv_shmem.c @@ -390,9 +390,9 @@ PGSharedMemoryAttach(IpcMemoryId shmId, /* * Try to attach to the segment and see if it matches our data directory. - * This avoids shmid-conflict problems on machines that are running - * several postmasters under the same userid and port number. (That would - * not ordinarily happen in production, but it can happen during parallel + * This avoids key-conflict problems on machines that are running several + * postmasters under the same userid and port number. (That would not + * ordinarily happen in production, but it can happen during parallel * testing. Since our test setups don't open any TCP ports on Unix, such * cases don't conflict otherwise.) */ diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index dd16938d9c7..688ad439edb 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -4743,8 +4743,8 @@ retry: } /* - * Queue a waiter for to signal when this child dies. The wait will be - * handled automatically by an operating system thread pool. + * Queue a waiter to signal when this child dies. The wait will be handled + * automatically by an operating system thread pool. * * Note: use malloc instead of palloc, since it needs to be thread-safe. * Struct will be free():d from the callback function that runs on a diff --git a/src/backend/utils/adt/like.c b/src/backend/utils/adt/like.c index 69beaf2ab50..13d5cb083c3 100644 --- a/src/backend/utils/adt/like.c +++ b/src/backend/utils/adt/like.c @@ -211,7 +211,6 @@ Generic_Text_IC_like(text *str, text *pat, Oid collation) if (pg_database_encoding_max_length() > 1 || (locale && locale->provider == COLLPROVIDER_ICU)) { - /* lower's result is never packed, so OK to use old macros here */ pat = DatumGetTextPP(DirectFunctionCall1Coll(lower, collation, PointerGetDatum(pat))); p = VARDATA_ANY(pat); |