Skip to content

Commit 2960229

Browse files
committed
Fix misc typos.
Oskari Saarenmaa. Backpatch to stable branches where applicable.
1 parent 37d10c5 commit 2960229

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

contrib/btree_gist/btree_ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ gbt_ts_penalty(PG_FUNCTION_ARGS)
362362
newdbl[2];
363363

364364
/*
365-
* We are allways using "double" timestamps here. Precision should be good
365+
* We are always using "double" timestamps here. Precision should be good
366366
* enough.
367367
*/
368368
orgdbl[0] = ((double) origentry->lower);

contrib/btree_gist/btree_utils_var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ gbt_var_decompress(PG_FUNCTION_ARGS)
5151
PG_RETURN_POINTER(entry);
5252
}
5353

54-
/* Returns a better readable representaion of variable key ( sets pointer ) */
54+
/* Returns a better readable representation of variable key ( sets pointer ) */
5555
GBT_VARKEY_R
5656
gbt_var_key_readable(const GBT_VARKEY *k)
5757
{

contrib/cube/cube.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ cube_inter(PG_FUNCTION_ARGS)
819819
Max(LL_COORD(b, i), UR_COORD(b, i))
820820
);
821821
}
822-
/* continue on the higher dimemsions only present in 'a' */
822+
/* continue on the higher dimensions only present in 'a' */
823823
for (; i < DIM(a); i++)
824824
{
825825
result->x[i] = Max(0,

doc/src/sgml/sources.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ereport(ERROR,
251251
</listitem>
252252
<listitem>
253253
<para>
254-
<function>errdetail_log_plural(const char *fmt_singuar, const char
254+
<function>errdetail_log_plural(const char *fmt_singular, const char
255255
*fmt_plural, unsigned long n, ...)</function> is like
256256
<function>errdetail_log</>, but with support for various plural forms of
257257
the message.

src/backend/access/common/heaptuple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ heap_modify_tuple(HeapTuple tuple,
807807
* repl information, as appropriate.
808808
*
809809
* NOTE: it's debatable whether to use heap_deform_tuple() here or just
810-
* heap_getattr() only the non-replaced colums. The latter could win if
810+
* heap_getattr() only the non-replaced columns. The latter could win if
811811
* there are many replaced columns and few non-replaced ones. However,
812812
* heap_deform_tuple costs only O(N) while the heap_getattr way would cost
813813
* O(N^2) if there are many non-replaced columns, so it seems better to

src/backend/access/gin/ginfast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ ginInsertCleanup(GinState *ginstate,
881881
* locking */
882882

883883
/*
884-
* remove readed pages from pending list, at this point all
885-
* content of readed pages is in regular structure
884+
* remove read pages from pending list, at this point all
885+
* content of read pages is in regular structure
886886
*/
887887
if (shiftList(index, metabuffer, blkno, stats))
888888
{

src/backend/access/gist/gistproc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
578578
* We first consider splits where b is the lower bound of an entry.
579579
* We iterate through all entries, and for each b, calculate the
580580
* smallest possible a. Then we consider splits where a is the
581-
* uppper bound of an entry, and for each a, calculate the greatest
581+
* upper bound of an entry, and for each a, calculate the greatest
582582
* possible b.
583583
*
584584
* In the above example, the first loop would consider splits:
@@ -628,7 +628,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
628628
}
629629

630630
/*
631-
* Iterate over upper bound of left group finding greates possible
631+
* Iterate over upper bound of left group finding greatest possible
632632
* lower bound of right group.
633633
*/
634634
i1 = nentries - 1;

src/backend/access/heap/heapam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5311,7 +5311,7 @@ heap_lock_updated_tuple_rec(Relation rel, ItemPointer tid, TransactionId xid,
53115311
*
53125312
* The initial tuple is assumed to be already locked.
53135313
*
5314-
* This function doesn't check visibility, it just inconditionally marks the
5314+
* This function doesn't check visibility, it just unconditionally marks the
53155315
* tuple(s) as locked. If any tuple in the updated chain is being deleted
53165316
* concurrently (or updated with the key being modified), sleep until the
53175317
* transaction doing it is finished.
@@ -5798,7 +5798,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
57985798
/*
57995799
* NB -- some of these transformations are only valid because we
58005800
* know the return Xid is a tuple updater (i.e. not merely a
5801-
* locker.) Also note that the only reason we don't explicitely
5801+
* locker.) Also note that the only reason we don't explicitly
58025802
* worry about HEAP_KEYS_UPDATED is because it lives in
58035803
* t_infomask2 rather than t_infomask.
58045804
*/

src/backend/access/heap/rewriteheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
763763
*
764764
* Crash-Safety: This module diverts from the usual patterns of doing WAL
765765
* since it cannot rely on checkpoint flushing out all buffers and thus
766-
* waiting for exlusive locks on buffers. Usually the XLogInsert() covering
766+
* waiting for exclusive locks on buffers. Usually the XLogInsert() covering
767767
* buffer modifications is performed while the buffer(s) that are being
768-
* modified are exlusively locked guaranteeing that both the WAL record and
768+
* modified are exclusively locked guaranteeing that both the WAL record and
769769
* the modified heap are on either side of the checkpoint. But since the
770770
* mapping files we log aren't in shared_buffers that interlock doesn't work.
771771
*

src/backend/optimizer/path/costsize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ cost_tidscan(Path *path, PlannerInfo *root,
931931

932932
/*
933933
* The TID qual expressions will be computed once, any other baserestrict
934-
* quals once per retrived tuple.
934+
* quals once per retrieved tuple.
935935
*/
936936
cost_qual_eval(&tid_qual_cost, tidquals, root);
937937

src/backend/utils/adt/regproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ format_operator_internal(Oid operator_oid, bool force_qualify)
819819

820820
/*
821821
* Would this oper be found (given the right args) by regoperatorin?
822-
* If not, or if caller explicitely requests it, we need to qualify
822+
* If not, or if caller explicitly requests it, we need to qualify
823823
* it.
824824
*/
825825
if (force_qualify || !OperatorIsVisible(operator_oid))

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