Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4236825

Browse files
committed
Fix typos and grammar in code comments and docs
Author: Alexander Lakhin Discussion: https://postgr.es/m/[email protected]
1 parent c7cd2d6 commit 4236825

File tree

19 files changed

+24
-24
lines changed

19 files changed

+24
-24
lines changed

contrib/test_decoding/specs/skip_snapshot_restore.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ step "s2_get_changes_slot0" { SELECT data FROM pg_logical_slot_get_changes('slot
3939
# serializes consistent snapshots to the disk at LSNs where are before
4040
# s0-transaction's commit. After s0-transaction commits, "s1_init" resumes but
4141
# must not restore any serialized snapshots and will reach the consistent state
42-
# when decoding a RUNNING_XACT record generated after s0-transaction's commit.
42+
# when decoding a RUNNING_XACTS record generated after s0-transaction's commit.
4343
# We check if the get_changes on 'slot1' will not return any s0-transaction's
4444
# changes as its confirmed_flush_lsn will be after the s0-transaction's commit
4545
# record.

doc/src/sgml/xfunc.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3891,8 +3891,8 @@ static const PgStat_KindInfo custom_stats = {
38913891
it with <literal>pgstat_register_kind</literal> and a unique ID used to
38923892
store the entries related to this type of statistics:
38933893
<programlisting>
3894-
extern PgStat_Kind pgstat_add_kind(PgStat_Kind kind,
3895-
const PgStat_KindInfo *kind_info);
3894+
extern PgStat_Kind pgstat_register_kind(PgStat_Kind kind,
3895+
const PgStat_KindInfo *kind_info);
38963896
</programlisting>
38973897
While developing a new extension, use
38983898
<literal>PGSTAT_KIND_EXPERIMENTAL</literal> for

src/backend/access/transam/multixact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ check_multixact_offset_buffers(int *newval, void **extra, GucSource source)
20172017
}
20182018

20192019
/*
2020-
* GUC check_hook for multixact_member_buffer
2020+
* GUC check_hook for multixact_member_buffers
20212021
*/
20222022
bool
20232023
check_multixact_member_buffers(int *newval, void **extra, GucSource source)

src/backend/commands/matview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ RefreshMatViewByOid(Oid matviewOid, bool is_create, bool skipData,
382382
* command tag is left false in cmdtaglist.h. Otherwise, the change of
383383
* completion tag output might break applications using it.
384384
*
385-
* When called from CREATE MATERIALIZED VIEW comand, the rowcount is
385+
* When called from CREATE MATERIALIZED VIEW command, the rowcount is
386386
* displayed with the command tag CMDTAG_SELECT.
387387
*/
388388
if (qc)

src/backend/commands/waitlsn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ pg_wal_replay_wait(PG_FUNCTION_ARGS)
369369
*/
370370
InvalidateCatalogSnapshot();
371371

372-
/* Give up if there is still an active or registered sanpshot. */
372+
/* Give up if there is still an active or registered snapshot. */
373373
if (GetOldestSnapshot())
374374
ereport(ERROR,
375375
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),

src/backend/executor/execExprInterp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
11011101

11021102
EEO_CASE(EEOP_PARAM_SET)
11031103
{
1104-
/* out of line, unlikely to matter performancewise */
1104+
/* out of line, unlikely to matter performance-wise */
11051105
ExecEvalParamSet(state, op, econtext);
11061106
EEO_NEXT();
11071107
}
@@ -4762,7 +4762,7 @@ ExecEvalJsonCoercionFinish(ExprState *state, ExprEvalStep *op)
47624762
if (SOFT_ERROR_OCCURRED(&jsestate->escontext))
47634763
{
47644764
/*
4765-
* jsestate->error or jsetate->empty being set means that the error
4765+
* jsestate->error or jsestate->empty being set means that the error
47664766
* occurred when coercing the JsonBehavior value. Throw the error in
47674767
* that case with the actual coercion error message shown in the
47684768
* DETAIL part.

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,8 @@ CleanupBackend(Backend *bp,
26282628
BackgroundWorkerStopNotifications(bp->pid);
26292629

26302630
/*
2631-
* If it was a background worker, also update its RegisteredWorker entry.
2631+
* If it was a background worker, also update its RegisteredBgWorker
2632+
* entry.
26322633
*/
26332634
if (bp->bkend_type == BACKEND_TYPE_BGWORKER)
26342635
{

src/backend/replication/logical/slotsync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
* this flag is set. Note that we don't need to reset this variable as after
8484
* promotion the slot sync worker won't be restarted because the pmState
8585
* changes to PM_RUN from PM_HOT_STANDBY and we don't support demoting
86-
* primary without restarting the server. See MaybeStartSlotSyncWorker.
86+
* primary without restarting the server. See LaunchMissingBackgroundProcesses.
8787
*
8888
* The 'syncing' flag is needed to prevent concurrent slot syncs to avoid slot
8989
* overwrites.

src/backend/storage/aio/read_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ read_stream_begin_impl(int flags,
449449
queue_size = max_pinned_buffers + 1;
450450

451451
/*
452-
* Allocate the object, the buffers, the ios and per_data_data space in
452+
* Allocate the object, the buffers, the ios and per_buffer_data space in
453453
* one big chunk. Though we have queue_size buffers, we want to be able
454454
* to assume that all the buffers for a single read are contiguous (i.e.
455455
* don't wrap around halfway through), so we allow temporary overflows of

src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ LockManagerShmemInit(void)
396396

397397
/*
398398
* Compute init/max size to request for lock hashtables. Note these
399-
* calculations must agree with LockShmemSize!
399+
* calculations must agree with LockManagerShmemSize!
400400
*/
401401
max_table_size = NLOCKENTS();
402402
init_table_size = max_table_size / 2;

0 commit comments

Comments
 (0)