Skip to content

Commit 31d250e

Browse files
committed
Update stale comments, and fix comment typos.
1 parent 92c4abc commit 31d250e

File tree

13 files changed

+20
-33
lines changed

13 files changed

+20
-33
lines changed

src/backend/access/brin/brin_inclusion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ brin_inclusion_consistent(PG_FUNCTION_ARGS)
432432
* It is straightforward to support the equality strategies with
433433
* the contains operator. Generally, inequality strategies do not
434434
* make much sense for the types which will be used with the
435-
* inclusion BRIN family of opclasses, but is possible to
435+
* inclusion BRIN family of opclasses, but it is possible to
436436
* implement them with logical negation of the left-of and
437437
* right-of operators.
438438
*

src/backend/access/transam/multixact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ SetMultiXactIdLimit(MultiXactId oldest_datminmxid, Oid oldest_datoid,
22082208
* space, but that's not really true, because multixacts wrap differently
22092209
* from transaction IDs. Note that, separately from any concern about
22102210
* multixact IDs wrapping, we must ensure that multixact members do not
2211-
* wrap. Limits for that are set in DetermineSafeOldestOffset, not here.
2211+
* wrap. Limits for that are set in SetOffsetVacuumLimit, not here.
22122212
*/
22132213
multiWrapLimit = oldest_datminmxid + (MaxMultiXactId >> 1);
22142214
if (multiWrapLimit < FirstMultiXactId)

src/backend/port/sysv_shmem.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ PGSharedMemoryAttach(IpcMemoryId shmId,
390390

391391
/*
392392
* Try to attach to the segment and see if it matches our data directory.
393-
* This avoids shmid-conflict problems on machines that are running
394-
* several postmasters under the same userid and port number. (That would
395-
* not ordinarily happen in production, but it can happen during parallel
393+
* This avoids key-conflict problems on machines that are running several
394+
* postmasters under the same userid and port number. (That would not
395+
* ordinarily happen in production, but it can happen during parallel
396396
* testing. Since our test setups don't open any TCP ports on Unix, such
397397
* cases don't conflict otherwise.)
398398
*/

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,8 +4743,8 @@ internal_forkexec(int argc, char *argv[], Port *port)
47434743
}
47444744

47454745
/*
4746-
* Queue a waiter for to signal when this child dies. The wait will be
4747-
* handled automatically by an operating system thread pool.
4746+
* Queue a waiter to signal when this child dies. The wait will be handled
4747+
* automatically by an operating system thread pool.
47484748
*
47494749
* Note: use malloc instead of palloc, since it needs to be thread-safe.
47504750
* Struct will be free():d from the callback function that runs on a

src/backend/utils/adt/like.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ Generic_Text_IC_like(text *str, text *pat, Oid collation)
211211

212212
if (pg_database_encoding_max_length() > 1 || (locale && locale->provider == COLLPROVIDER_ICU))
213213
{
214-
/* lower's result is never packed, so OK to use old macros here */
215214
pat = DatumGetTextPP(DirectFunctionCall1Coll(lower, collation,
216215
PointerGetDatum(pat)));
217216
p = VARDATA_ANY(pat);

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,12 +1681,7 @@ GenerateRecoveryConf(PGconn *conn)
16811681
initPQExpBuffer(&conninfo_buf);
16821682
for (option = connOptions; option && option->keyword; option++)
16831683
{
1684-
/*
1685-
* Do not emit this setting if: - the setting is "replication",
1686-
* "dbname" or "fallback_application_name", since these would be
1687-
* overridden by the libpqwalreceiver module anyway. - not set or
1688-
* empty.
1689-
*/
1684+
/* Omit empty settings and those libpqwalreceiver overrides. */
16901685
if (strcmp(option->keyword, "replication") == 0 ||
16911686
strcmp(option->keyword, "dbname") == 0 ||
16921687
strcmp(option->keyword, "fallback_application_name") == 0 ||

src/bin/pg_rewind/t/RewindTest.pm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ package RewindTest;
2626
# still running.
2727
#
2828
# The test script can use the helper functions master_psql and standby_psql
29-
# to run psql against the master and standby servers, respectively. The
30-
# test script can also use the $connstr_master and $connstr_standby global
31-
# variables, which contain libpq connection strings for connecting to the
32-
# master and standby servers. The data directories are also available
33-
# in paths $test_master_datadir and $test_standby_datadir
29+
# to run psql against the master and standby servers, respectively.
3430

3531
use strict;
3632
use warnings;

src/bin/pg_upgrade/TESTING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Here are the steps needed to create a regression database dump file:
3636

3737
1) Create and populate the regression database in the old cluster.
3838
This database can be created by running 'make installcheck' from
39-
src/test/regression.
39+
src/test/regress.
4040

4141
2) Use pg_dump to dump out the regression database. Use the new
4242
cluster's pg_dump on the old database to minimize whitespace

src/bin/pg_upgrade/controldata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
105105
#ifndef WIN32
106106
pg_putenv("LANG", NULL);
107107
#else
108-
/* On Windows the default locale cannot be English, so force it */
108+
/* On Windows the default locale may not be English, so force it */
109109
pg_putenv("LANG", "en");
110110
#endif
111111
pg_putenv("LANGUAGE", NULL);

src/fe_utils/string_utils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,7 @@ appendShellStringNoError(PQExpBuffer buf, const char *str)
541541

542542
/*
543543
* Append the given string to the buffer, with suitable quoting for passing
544-
* the string as a value, in a keyword/pair value in a libpq connection
545-
* string
544+
* the string as a value in a keyword/value pair in a libpq connection string.
546545
*/
547546
void
548547
appendConnStrVal(PQExpBuffer buf, const char *str)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy