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

Commit 21f1e15

Browse files
committed
Unify spelling of "canceled", "canceling", "cancellation"
We had previously (af26857) established the U.S. spellings as standard.
1 parent 465883b commit 21f1e15

30 files changed

+82
-82
lines changed

doc/src/sgml/high-availability.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ if (!triggered)
15851585
<para>
15861586
There are also additional types of conflict that can occur with Hot Standby.
15871587
These conflicts are <emphasis>hard conflicts</> in the sense that queries
1588-
might need to be cancelled and, in some cases, sessions disconnected to resolve them.
1588+
might need to be canceled and, in some cases, sessions disconnected to resolve them.
15891589
The user is provided with several ways to handle these
15901590
conflicts. Conflict cases include:
15911591

@@ -1682,18 +1682,18 @@ if (!triggered)
16821682
<para>
16831683
Once the delay specified by <varname>max_standby_archive_delay</> or
16841684
<varname>max_standby_streaming_delay</> has been exceeded, conflicting
1685-
queries will be cancelled. This usually results just in a cancellation
1685+
queries will be canceled. This usually results just in a cancellation
16861686
error, although in the case of replaying a <command>DROP DATABASE</>
16871687
the entire conflicting session will be terminated. Also, if the conflict
16881688
is over a lock held by an idle transaction, the conflicting session is
16891689
terminated (this behavior might change in the future).
16901690
</para>
16911691

16921692
<para>
1693-
Cancelled queries may be retried immediately (after beginning a new
1693+
Canceled queries may be retried immediately (after beginning a new
16941694
transaction, of course). Since query cancellation depends on
16951695
the nature of the WAL records being replayed, a query that was
1696-
cancelled may well succeed if it is executed again.
1696+
canceled may well succeed if it is executed again.
16971697
</para>
16981698

16991699
<para>
@@ -1751,7 +1751,7 @@ if (!triggered)
17511751
Another option is to increase <xref linkend="guc-vacuum-defer-cleanup-age">
17521752
on the primary server, so that dead rows will not be cleaned up as quickly
17531753
as they normally would be. This will allow more time for queries to
1754-
execute before they are cancelled on the standby, without having to set
1754+
execute before they are canceled on the standby, without having to set
17551755
a high <varname>max_standby_streaming_delay</>. However it is
17561756
difficult to guarantee any specific execution-time window with this
17571757
approach, since <varname>vacuum_defer_cleanup_age</> is measured in
@@ -1981,7 +1981,7 @@ LOG: database system is ready to accept read only connections
19811981
<command>DROP TABLESPACE</> can only succeed if the tablespace is empty.
19821982
Some standby users may be actively using the tablespace via their
19831983
<varname>temp_tablespaces</> parameter. If there are temporary files in the
1984-
tablespace, all active queries are cancelled to ensure that temporary
1984+
tablespace, all active queries are canceled to ensure that temporary
19851985
files are removed, so the tablespace can be removed and WAL replay
19861986
can continue.
19871987
</para>

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ amrestrpos (IndexScanDesc scan);
712712
read-write conflict with the insert of any tuple into that index by a
713713
concurrent serializable transaction. If certain patterns of read-write
714714
conflicts are detected among a set of concurrent serializable
715-
transactions, one of those transactions may be cancelled to protect data
715+
transactions, one of those transactions may be canceled to protect data
716716
integrity. When the flag is set, it indicates that the index access
717717
method implements finer-grained predicate locking, which will tend to
718718
reduce the frequency of such transaction cancellations.

doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4088,7 +4088,7 @@ int PQflush(PGconn *conn);
40884088
</sect1>
40894089

40904090
<sect1 id="libpq-cancel">
4091-
<title>Cancelling Queries in Progress</title>
4091+
<title>Canceling Queries in Progress</title>
40924092

40934093
<indexterm zone="libpq-cancel">
40944094
<primary>canceling</primary>

doc/src/sgml/monitoring.sgml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,15 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
282282
total disk blocks read, total buffer hits (i.e., block
283283
read requests avoided by finding the block already in buffer cache),
284284
number of rows returned, fetched, inserted, updated and deleted, the
285-
total number of queries cancelled due to conflict with recovery (on
285+
total number of queries canceled due to conflict with recovery (on
286286
standby servers), and time of last statistics reset.
287287
</entry>
288288
</row>
289289

290290
<row>
291291
<entry><structname>pg_stat_database_conflicts</><indexterm><primary>pg_stat_database_conflicts</primary></indexterm></entry>
292292
<entry>One row per database, showing database OID, database name and
293-
the number of queries that have been cancelled in this database due to
293+
the number of queries that have been canceled in this database due to
294294
dropped tablespaces, lock timeouts, old snapshots, pinned buffers and
295295
deadlocks. Will only contain information on standby servers, since
296296
conflicts do not occur on master servers.
@@ -639,39 +639,39 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
639639
<entry><literal><function>pg_stat_get_db_conflict_tablespace</function>(<type>oid</type>)</literal></entry>
640640
<entry><type>bigint</type></entry>
641641
<entry>
642-
Number of queries cancelled because of recovery conflict with dropped tablespaces in database
642+
Number of queries canceled because of recovery conflict with dropped tablespaces in database
643643
</entry>
644644
</row>
645645

646646
<row>
647647
<entry><literal><function>pg_stat_get_db_conflict_lock</function>(<type>oid</type>)</literal></entry>
648648
<entry><type>bigint</type></entry>
649649
<entry>
650-
Number of queries cancelled because of recovery conflict with locks in database
650+
Number of queries canceled because of recovery conflict with locks in database
651651
</entry>
652652
</row>
653653

654654
<row>
655655
<entry><literal><function>pg_stat_get_db_conflict_snapshot</function>(<type>oid</type>)</literal></entry>
656656
<entry><type>bigint</type></entry>
657657
<entry>
658-
Number of queries cancelled because of recovery conflict with old snapshots in database
658+
Number of queries canceled because of recovery conflict with old snapshots in database
659659
</entry>
660660
</row>
661661

662662
<row>
663663
<entry><literal><function>pg_stat_get_db_conflict_bufferpin</function>(<type>oid</type>)</literal></entry>
664664
<entry><type>bigint</type></entry>
665665
<entry>
666-
Number of queries cancelled because of recovery conflict with pinned buffers in database
666+
Number of queries canceled because of recovery conflict with pinned buffers in database
667667
</entry>
668668
</row>
669669

670670
<row>
671671
<entry><literal><function>pg_stat_get_db_conflict_startup_deadlock</function>(<type>oid</type>)</literal></entry>
672672
<entry><type>bigint</type></entry>
673673
<entry>
674-
Number of queries cancelled because of recovery conflict with deadlocks in database
674+
Number of queries canceled because of recovery conflict with deadlocks in database
675675
</entry>
676676
</row>
677677

doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@
11421142
</sect2>
11431143

11441144
<sect2>
1145-
<title>Cancelling Requests in Progress</title>
1145+
<title>Canceling Requests in Progress</title>
11461146

11471147
<para>
11481148
During the processing of a query, the frontend might request

doc/src/sgml/ref/set_transaction.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ SET SESSION CHARACTERISTICS AS TRANSACTION <replaceable class="parameter">transa
143143
transaction, the transaction may block when first acquiring its snapshot,
144144
after which it is able to run without the normal overhead of a
145145
<literal>SERIALIZABLE</literal> transaction and without any risk of
146-
contributing to or being cancelled by a serialization failure. This mode
146+
contributing to or being canceled by a serialization failure. This mode
147147
is well suited for long-running reports or backups.
148148
</para>
149149
</refsect1>

doc/src/sgml/release-7.4.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
</para>
466466

467467
<para>
468-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
468+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
469469
after it's already committed its tuple movements, as well as transient
470470
errors if a plain <literal>VACUUM</> is interrupted after having
471471
truncated the table.

doc/src/sgml/release-8.0.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
</para>
610610

611611
<para>
612-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
612+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
613613
after it's already committed its tuple movements, as well as transient
614614
errors if a plain <literal>VACUUM</> is interrupted after having
615615
truncated the table.

doc/src/sgml/release-8.1.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@
849849
</para>
850850

851851
<para>
852-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
852+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
853853
after it's already committed its tuple movements, as well as transient
854854
errors if a plain <literal>VACUUM</> is interrupted after having
855855
truncated the table.
@@ -4203,7 +4203,7 @@ psql -t -f fixseq.sql db1 | psql -e db1
42034203
<para>
42044204
While the <varname>statement_timeout</> configuration
42054205
parameter allows a query taking more than a certain amount of
4206-
time to be cancelled, the <command>NOWAIT</> option allows a
4206+
time to be canceled, the <command>NOWAIT</> option allows a
42074207
query to be canceled as soon as a <command>SELECT ... FOR
42084208
UPDATE/SHARE</> command cannot immediately acquire a row lock.
42094209
</para>

doc/src/sgml/release-8.2.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@
13341334
</para>
13351335

13361336
<para>
1337-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
1337+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
13381338
after it's already committed its tuple movements, as well as transient
13391339
errors if a plain <literal>VACUUM</> is interrupted after having
13401340
truncated the table.

doc/src/sgml/release-8.3.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@
15661566
</para>
15671567

15681568
<para>
1569-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
1569+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
15701570
after it's already committed its tuple movements, as well as transient
15711571
errors if a plain <literal>VACUUM</> is interrupted after having
15721572
truncated the table.

doc/src/sgml/release-8.4.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,7 @@
20622062
</para>
20632063

20642064
<para>
2065-
This fix prevents a PANIC if a <literal>VACUUM FULL</> is cancelled
2065+
This fix prevents a PANIC if a <literal>VACUUM FULL</> is canceled
20662066
after it's already committed its tuple movements, as well as transient
20672067
errors if a plain <literal>VACUUM</> is interrupted after having
20682068
truncated the table.

doc/src/sgml/release-9.1.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@
779779
</para>
780780

781781
<para>
782-
This helps avoid cancelling long-running queries on the standby.
782+
This helps avoid canceling long-running queries on the standby.
783783
</para>
784784
</listitem>
785785

src/backend/access/transam/xlog.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8379,13 +8379,13 @@ xlog_redo(XLogRecPtr lsn, XLogRecord *record)
83798379

83808380
/*
83818381
* If we see a shutdown checkpoint while waiting for an end-of-backup
8382-
* record, the backup was cancelled and the end-of-backup record will
8382+
* record, the backup was canceled and the end-of-backup record will
83838383
* never arrive.
83848384
*/
83858385
if (InArchiveRecovery &&
83868386
!XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
83878387
ereport(ERROR,
8388-
(errmsg("online backup was cancelled, recovery cannot continue")));
8388+
(errmsg("online backup was canceled, recovery cannot continue")));
83898389

83908390
/*
83918391
* If we see a shutdown checkpoint, we know that nothing was running
@@ -9341,7 +9341,7 @@ do_pg_stop_backup(char *labelfile, bool waitforarchive)
93419341
(errmsg("pg_stop_backup still waiting for all required WAL segments to be archived (%d seconds elapsed)",
93429342
waits),
93439343
errhint("Check that your archive_command is executing properly. "
9344-
"pg_stop_backup can be cancelled safely, "
9344+
"pg_stop_backup can be canceled safely, "
93459345
"but the database backup will not be usable without all the WAL segments.")));
93469346
}
93479347
}
@@ -9823,21 +9823,21 @@ CancelBackup(void)
98239823
if (stat(BACKUP_LABEL_FILE, &stat_buf) < 0)
98249824
return;
98259825

9826-
/* remove leftover file from previously cancelled backup if it exists */
9826+
/* remove leftover file from previously canceled backup if it exists */
98279827
unlink(BACKUP_LABEL_OLD);
98289828

98299829
if (rename(BACKUP_LABEL_FILE, BACKUP_LABEL_OLD) == 0)
98309830
{
98319831
ereport(LOG,
9832-
(errmsg("online backup mode cancelled"),
9832+
(errmsg("online backup mode canceled"),
98339833
errdetail("\"%s\" was renamed to \"%s\".",
98349834
BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
98359835
}
98369836
else
98379837
{
98389838
ereport(WARNING,
98399839
(errcode_for_file_access(),
9840-
errmsg("online backup mode was not cancelled"),
9840+
errmsg("online backup mode was not canceled"),
98419841
errdetail("Could not rename \"%s\" to \"%s\": %m.",
98429842
BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
98439843
}

src/backend/commands/vacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static bool vacuum_rel(Oid relid, VacuumStmt *vacstmt, bool do_toast,
7878
* tables separately.
7979
*
8080
* for_wraparound is used by autovacuum to let us know when it's forcing
81-
* a vacuum for wraparound, which should not be auto-cancelled.
81+
* a vacuum for wraparound, which should not be auto-canceled.
8282
*
8383
* bstrategy is normally given as NULL, but in autovacuum it can be passed
8484
* in to use the same buffer strategy object across multiple vacuum() calls.
@@ -867,7 +867,7 @@ vacuum_rel(Oid relid, VacuumStmt *vacstmt, bool do_toast, bool for_wraparound)
867867
* here by violating transaction semantics.)
868868
*
869869
* We also set the VACUUM_FOR_WRAPAROUND flag, which is passed down by
870-
* autovacuum; it's used to avoid cancelling a vacuum that was invoked
870+
* autovacuum; it's used to avoid canceling a vacuum that was invoked
871871
* in an emergency.
872872
*
873873
* Note: these flags remain set until CommitTransaction or

src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ AutoVacLauncherMain(int argc, char *argv[])
714714
worker->wi_links.next = (SHM_QUEUE *) AutoVacuumShmem->av_freeWorkers;
715715
AutoVacuumShmem->av_freeWorkers = worker;
716716
AutoVacuumShmem->av_startingWorker = NULL;
717-
elog(WARNING, "worker took too long to start; cancelled");
717+
elog(WARNING, "worker took too long to start; canceled");
718718
}
719719
}
720720
else
@@ -1461,7 +1461,7 @@ AutoVacWorkerMain(int argc, char *argv[])
14611461
pqsignal(SIGHUP, SIG_IGN);
14621462

14631463
/*
1464-
* SIGINT is used to signal cancelling the current table's vacuum; SIGTERM
1464+
* SIGINT is used to signal canceling the current table's vacuum; SIGTERM
14651465
* means abort and exit cleanly, and SIGQUIT means abandon ship.
14661466
*/
14671467
pqsignal(SIGINT, StatementCancelHandler);

src/backend/postmaster/bgwriter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ CompactBgwriterRequestQueue()
11821182
* intervening FORGET_RELATION_FSYNC or FORGET_DATABASE_FSYNC request, so
11831183
* we do it this way. It would be possible to be even smarter if we made
11841184
* the code below understand the specific semantics of such requests (it
1185-
* could blow away preceding entries that would end up being cancelled
1185+
* could blow away preceding entries that would end up being canceled
11861186
* anyhow), but it's not clear that the extra complexity would buy us
11871187
* anything.
11881188
*/

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ LockBufferForCleanup(Buffer buffer)
24652465

24662466
/*
24672467
* Check called from RecoveryConflictInterrupt handler when Startup
2468-
* process requests cancelation of all pin holders that are blocking it.
2468+
* process requests cancellation of all pin holders that are blocking it.
24692469
*/
24702470
bool
24712471
HoldingBufferPinThatDelaysRecovery(void)

src/backend/storage/lmgr/README-SSI

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ serialization anomalies will fail with SQLSTATE 40001, which has a
239239
standard meaning of "serialization failure".
240240

241241
* This SSI implementation makes an effort to choose the
242-
transaction to be cancelled such that an immediate retry of the
242+
transaction to be canceled such that an immediate retry of the
243243
transaction will not fail due to conflicts with exactly the same
244-
transactions. Pursuant to this goal, no transaction is cancelled
244+
transactions. Pursuant to this goal, no transaction is canceled
245245
until one of the other transactions in the set of conflicts which
246246
could generate an anomaly has successfully committed. This is
247247
conceptually similar to how write conflicts are handled. To fully
@@ -567,7 +567,7 @@ on conflicts with the same transactions.
567567
information about older committed transactions to put an upper bound
568568
on RAM used. Beyond that limit, information spills to disk.
569569
Performance can degrade in a pessimal situation, but it should be
570-
tolerable, and transactions won't need to be cancelled or blocked
570+
tolerable, and transactions won't need to be canceled or blocked
571571
from starting.
572572

573573

src/backend/storage/lmgr/deadlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ FindLockCycleRecurse(PGPROC *checkProc,
535535
* Note we read vacuumFlags without any locking. This is
536536
* OK only for checking the PROC_IS_AUTOVACUUM flag,
537537
* because that flag is set at process start and never
538-
* reset; there is logic elsewhere to avoid cancelling an
538+
* reset; there is logic elsewhere to avoid canceling an
539539
* autovacuum that is working for preventing Xid
540540
* wraparound problems (which needs to read a different
541541
* vacuumFlag bit), but we don't do that here to avoid

0 commit comments

Comments
 (0)