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

Commit 3f58a4e

Browse files
committed
Fix various typos and incorrect/outdated name references
Author: Alexander Lakhin Discussion: https://postgr.es/m/699beab4-a6ca-92c9-f152-f559caf6dc25@gmail.com
1 parent fcb21b3 commit 3f58a4e

File tree

28 files changed

+35
-35
lines changed

28 files changed

+35
-35
lines changed

contrib/basebackup_to_shell/t/001_basic.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
qr/shell command for backup is not configured/,
5050
'fails if basebackup_to_shell.command is not set');
5151

52-
# Configure basebackup_to_shell.command and reload the configuation file.
52+
# Configure basebackup_to_shell.command and reload the configuration file.
5353
my $backup_path = PostgreSQL::Test::Utils::tempdir;
5454
my $escaped_backup_path = $backup_path;
5555
$escaped_backup_path =~ s{\\}{\\\\}g

contrib/pg_walinspect/pg_walinspect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ GetCurrentLSN(void)
8585
}
8686

8787
/*
88-
* Intialize WAL reader and identify first valid LSN.
88+
* Initialize WAL reader and identify first valid LSN.
8989
*/
9090
static XLogReaderState *
9191
InitXLogReaderState(XLogRecPtr lsn)

src/backend/access/transam/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ InitializeParallelDSM(ParallelContext *pcxt)
376376

377377
/*
378378
* Serialize the transaction snapshot if the transaction
379-
* isolation-level uses a transaction snapshot.
379+
* isolation level uses a transaction snapshot.
380380
*/
381381
if (IsolationUsesXactSnapshot())
382382
{

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5835,7 +5835,7 @@ ReachedEndOfBackup(XLogRecPtr EndRecPtr, TimeLineID tli)
58355835
{
58365836
/*
58375837
* We have reached the end of base backup, as indicated by pg_control. The
5838-
* data on disk is now consistent (unless minRecovery point is further
5838+
* data on disk is now consistent (unless minRecoveryPoint is further
58395839
* ahead, which can happen if we crashed during previous recovery). Reset
58405840
* backupStartPoint and backupEndPoint, and update minRecoveryPoint to
58415841
* make sure we don't allow starting up at an earlier point even if

src/backend/access/transam/xlogprefetcher.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ XLogPrefetcherComputeStats(XLogPrefetcher *prefetcher)
457457
* *lsn, and the I/O will be considered to have completed once that LSN is
458458
* replayed.
459459
*
460-
* Returns LRQ_NO_IO if we examined the next block reference and found that it
461-
* was already in the buffer pool, or we decided for various reasons not to
462-
* prefetch.
460+
* Returns LRQ_NEXT_NO_IO if we examined the next block reference and found
461+
* that it was already in the buffer pool, or we decided for various reasons
462+
* not to prefetch.
463463
*/
464464
static LsnReadQueueNextStatus
465465
XLogPrefetcherNextBlock(uintptr_t pgsr_private, XLogRecPtr *lsn)

src/backend/access/transam/xlogrecovery.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or standby mode, depending on configuration options and the state of
99
* the control file and possible backup label file. PerformWalRecovery()
1010
* performs the actual WAL replay, calling the rmgr-specific redo routines.
11-
* EndWalRecovery() performs end-of-recovery checks and cleanup actions,
11+
* FinishWalRecovery() performs end-of-recovery checks and cleanup actions,
1212
* and prepares information needed to initialize the WAL for writes. In
1313
* addition to these three main functions, there are a bunch of functions
1414
* for interrogating recovery state and controlling the recovery process.
@@ -505,7 +505,7 @@ EnableStandbyMode(void)
505505
* disk does after initializing other subsystems, but before calling
506506
* PerformWalRecovery().
507507
*
508-
* This initializes some global variables like ArchiveModeRequested, and
508+
* This initializes some global variables like ArchiveRecoveryRequested, and
509509
* StandbyModeRequested and InRecovery.
510510
*/
511511
void
@@ -1396,11 +1396,11 @@ read_tablespace_map(List **tablespaces)
13961396
*
13971397
* This does not close the 'xlogreader' yet, because in some cases the caller
13981398
* still wants to re-read the last checkpoint record by calling
1399-
* ReadCheckPointRecord().
1399+
* ReadCheckpointRecord().
14001400
*
14011401
* Returns the position of the last valid or applied record, after which new
14021402
* WAL should be appended, information about why recovery was ended, and some
1403-
* other things. See the WalRecoveryResult struct for details.
1403+
* other things. See the EndOfWalRecoveryInfo struct for details.
14041404
*/
14051405
EndOfWalRecoveryInfo *
14061406
FinishWalRecovery(void)

src/backend/backup/basebackup_copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* basebackup_copy.c
44
* send basebackup archives using COPY OUT
55
*
6-
* We send a result set with information about the tabelspaces to be included
6+
* We send a result set with information about the tablespaces to be included
77
* in the backup before starting COPY OUT. Then, we start a single COPY OUT
88
* operation and transmits all the archives and the manifest if present during
99
* the course of that single COPY OUT. Each CopyData message begins with a

src/backend/catalog/pg_publication.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ compare_int16(const void *a, const void *b)
497497
* and a Bitmapset with them; verify that each attribute is appropriate
498498
* to have in a publication column list (no system or generated attributes,
499499
* no duplicates). Additional checks with replica identity are done later;
500-
* see check_publication_columns.
500+
* see pub_collist_contains_invalid_column.
501501
*
502502
* Note that the attribute numbers are *not* offset by
503503
* FirstLowInvalidHeapAttributeNumber; system columns are forbidden so this

src/backend/commands/vacuumparallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* In a parallel vacuum, we perform both index bulk deletion and index cleanup
1010
* with parallel worker processes. Individual indexes are processed by one
11-
* vacuum process. ParalleVacuumState contains shared information as well as
11+
* vacuum process. ParallelVacuumState contains shared information as well as
1212
* the memory space for storing dead items allocated in the DSM segment. We
1313
* launch parallel worker processes at the start of parallel index
1414
* bulk-deletion and index cleanup and once all indexes are processed, the

src/backend/executor/nodeAgg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4081,7 +4081,7 @@ build_pertrans_for_aggref(AggStatePerTrans pertrans,
40814081
numTransArgs = pertrans->numTransInputs + 1;
40824082

40834083
/*
4084-
* Set up infrastructure for calling the transfn. Note that invtrans is
4084+
* Set up infrastructure for calling the transfn. Note that invtransfn is
40854085
* not needed here.
40864086
*/
40874087
build_aggregate_transfn_expr(inputTypes,

src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ ExecGetUpdateNewTuple(ResultRelInfo *relinfo,
740740
*
741741
* Returns RETURNING result if any, otherwise NULL.
742742
* *inserted_tuple is the tuple that's effectively inserted;
743-
* *inserted_destrel is the relation where it was inserted.
743+
* *insert_destrel is the relation where it was inserted.
744744
* These are only set on success.
745745
*
746746
* This may change the currently active tuple conversion map in

src/backend/executor/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ AtEOXact_SPI(bool isCommit)
432432

433433
/*
434434
* Pop stack entries, stopping if we find one marked internal_xact (that
435-
* one belongs to the caller of SPI_commit or SPI_abort).
435+
* one belongs to the caller of SPI_commit or SPI_rollback).
436436
*/
437437
while (_SPI_connected >= 0)
438438
{

src/backend/optimizer/plan/initsplan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3152,7 +3152,7 @@ check_hashjoinable(RestrictInfo *restrictinfo)
31523152
/*
31533153
* check_memoizable
31543154
* If the restrictinfo's clause is suitable to be used for a Memoize node,
3155-
* set the lefthasheqoperator and righthasheqoperator to the hash equality
3155+
* set the left_hasheqoperator and right_hasheqoperator to the hash equality
31563156
* operator that will be needed during caching.
31573157
*/
31583158
static void

src/backend/replication/logical/tablesync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ FetchTableStates(bool *started_tx)
15561556
* Does the subscription have tables?
15571557
*
15581558
* If there were not-READY relations found then we know it does. But
1559-
* if table_state_not_ready was empty we still need to check again to
1559+
* if table_states_not_ready was empty we still need to check again to
15601560
* see if there are 0 tables.
15611561
*/
15621562
has_subrels = (table_states_not_ready != NIL) ||

src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ static inline GlobalVisHorizonKind
20002000
GlobalVisHorizonKindForRel(Relation rel)
20012001
{
20022002
/*
2003-
* Other relkkinds currently don't contain xids, nor always the necessary
2003+
* Other relkinds currently don't contain xids, nor always the necessary
20042004
* logical decoding markers.
20052005
*/
20062006
Assert(!rel ||

src/backend/utils/mmgr/generation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ GenerationBlockInit(GenerationContext *context, GenerationBlock *block,
544544

545545
/*
546546
* GenerationBlockIsEmpty
547-
* Returns true iif 'block' contains no chunks
547+
* Returns true iff 'block' contains no chunks
548548
*/
549549
static inline bool
550550
GenerationBlockIsEmpty(GenerationBlock *block)

src/backend/utils/sort/tuplesort.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ static void tuplesort_updatemax(Tuplesortstate *state);
494494
* abbreviations of text or multi-key sorts. There could be! Is it worth it?
495495
*/
496496

497-
/* Used if first key's comparator is ssup_datum_unsigned_compare */
497+
/* Used if first key's comparator is ssup_datum_unsigned_cmp */
498498
static pg_attribute_always_inline int
499499
qsort_tuple_unsigned_compare(SortTuple *a, SortTuple *b, Tuplesortstate *state)
500500
{
@@ -517,7 +517,7 @@ qsort_tuple_unsigned_compare(SortTuple *a, SortTuple *b, Tuplesortstate *state)
517517
}
518518

519519
#if SIZEOF_DATUM >= 8
520-
/* Used if first key's comparator is ssup_datum_signed_compare */
520+
/* Used if first key's comparator is ssup_datum_signed_cmp */
521521
static pg_attribute_always_inline int
522522
qsort_tuple_signed_compare(SortTuple *a, SortTuple *b, Tuplesortstate *state)
523523
{
@@ -541,7 +541,7 @@ qsort_tuple_signed_compare(SortTuple *a, SortTuple *b, Tuplesortstate *state)
541541
}
542542
#endif
543543

544-
/* Used if first key's comparator is ssup_datum_int32_compare */
544+
/* Used if first key's comparator is ssup_datum_int32_cmp */
545545
static pg_attribute_always_inline int
546546
qsort_tuple_int32_compare(SortTuple *a, SortTuple *b, Tuplesortstate *state)
547547
{

src/backend/utils/time/snapmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ ThereAreNoPriorRegisteredSnapshots(void)
16301630
}
16311631

16321632
/*
1633-
* HaveRegisteredOrActiveSnapshots
1633+
* HaveRegisteredOrActiveSnapshot
16341634
* Is there any registered or active snapshot?
16351635
*
16361636
* NB: Unless pushed or active, the cached catalog snapshot will not cause

src/bin/pg_basebackup/bbstreamer_gzip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bbstreamer_gzip_writer_content(bbstreamer *streamer,
150150
* calling gzclose.
151151
*
152152
* It makes no difference whether we opened the file or the caller did it,
153-
* because libz provides no way of avoiding a close on the underling file
153+
* because libz provides no way of avoiding a close on the underlying file
154154
* handle. Notice, however, that bbstreamer_gzip_writer_new() uses dup() to
155155
* work around this issue, so that the behavior from the caller's viewpoint
156156
* is the same as for bbstreamer_plain_writer.

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9636,7 +9636,7 @@ getAdditionalACLs(Archive *fout)
96369636
{
96379637
if (dobj->objType == DO_TABLE)
96389638
{
9639-
/* For a column initpriv, set the table's ACL flags */
9639+
/* For a column initprivs, set the table's ACL flags */
96409640
dobj->components |= DUMP_COMPONENT_ACL;
96419641
((TableInfo *) dobj)->hascolumnACLs = true;
96429642
}

src/include/utils/pgstat_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ typedef struct PgStatShared_HashEntry
102102
} PgStatShared_HashEntry;
103103

104104
/*
105-
* Common header struct for PgStatShm_Stat*Entry.
105+
* Common header struct for PgStatShared_*.
106106
*/
107107
typedef struct PgStatShared_Common
108108
{

src/include/utils/sortsupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ ApplySortAbbrevFullComparator(Datum datum1, bool isNull1,
372372

373373
/*
374374
* Datum comparison functions that we have specialized sort routines for.
375-
* Datatypes that install these as their comparator or abbrevated comparator
375+
* Datatypes that install these as their comparator or abbreviated comparator
376376
* are eligible for faster sorting.
377377
*/
378378
extern int ssup_datum_unsigned_cmp(Datum x, Datum y, SortSupport ssup);

src/interfaces/libpq/fe-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ PQsetTraceFlags(PGconn *conn, int flags)
7474
/*
7575
* Print the current time, with microseconds, into a caller-supplied
7676
* buffer.
77-
* Cribbed from setup_formatted_log_time, but much simpler.
77+
* Cribbed from get_formatted_log_time, but much simpler.
7878
*/
7979
static void
8080
pqTraceFormatTimestamp(char *timestr, size_t ts_len)

src/pl/plpython/plpy_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ plpython3_inline_handler(PG_FUNCTION_ARGS)
306306
/*
307307
* Setup error traceback support for ereport().
308308
* plpython_inline_error_callback doesn't currently need exec_ctx, but
309-
* for consistency with plpython_call_handler we do it the same way.
309+
* for consistency with plpython3_call_handler we do it the same way.
310310
*/
311311
plerrcontext.callback = plpython_inline_error_callback;
312312
plerrcontext.arg = exec_ctx;

src/test/subscription/t/013_partition.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ BEGIN
564564

565565

566566
# now switch the order of publications in the list, try again, the result
567-
# should be the same (no dependence on order of pulications)
567+
# should be the same (no dependence on order of publications)
568568
$node_subscriber2->safe_psql('postgres',
569569
"ALTER SUBSCRIPTION sub2 SET PUBLICATION pub_all, pub_lower_level");
570570

src/test/subscription/t/023_twophase_stream.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ sub test_streaming
264264
is($result, qq(1), 'transaction is prepared on subscriber');
265265

266266
# Insert a different record (now we are outside of the 2PC transaction)
267-
# Note: the 2PC transaction still holds row locks so make sure this insert is for a separare primary key
267+
# Note: the 2PC transaction still holds row locks so make sure this insert is for a separate primary key
268268
$node_publisher->safe_psql('postgres',
269269
"INSERT INTO test_tab VALUES (99999, 'foobar')");
270270

src/test/subscription/t/029_on_error.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Test skipping the transaction. This function must be called after the caller
1414
# has inserted data that conflicts with the subscriber. The finish LSN of the
1515
# error transaction that is used to specify to ALTER SUBSCRIPTION ... SKIP is
16-
# fetched from the server logs. After executing ALTER SUBSCRITPION ... SKIP, we
16+
# fetched from the server logs. After executing ALTER SUBSCRIPTION ... SKIP, we
1717
# check if logical replication can continue working by inserting $nonconflict_data
1818
# on the publisher.
1919
sub test_skip_lsn

src/tools/mark_pgdllimport.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Perl script that tries to add PGDLLIMPORT markings to PostgreSQL
77
# header files.
88
#
9-
# This relies on a few idiosyncracies of the PostgreSQL coding style,
9+
# This relies on a few idiosyncrasies of the PostgreSQL coding style,
1010
# such as the fact that we always use "extern" in function
1111
# declarations, and that we don't use // comments. It's not very
1212
# smart and may not catch all cases.

0 commit comments

Comments
 (0)