8000 Fix misc typos. · dingqipeng/postgres@658ec62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 658ec62

Browse files
committed
Fix misc typos.
Oskari Saarenmaa. Backpatch to stable branches where applicable.
1 parent 9e9b310 commit 658ec62

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

contrib/btree_gist/btree_ts.c

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

376376
/*
377-
* We are allways using "double" timestamps here. Precision should be good
377+
* We are always using "double" timestamps here. Precision should be good
378378
* enough.
379379
*/
380380
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
@@ -52,7 +52,7 @@ gbt_var_decompress(PG_FUNCTION_ARGS)
5252
PG_RETURN_POINTER(entry);
5353
}
5454

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

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
@@ -5115,7 +5115,7 @@ heap_lock_updated_tuple_rec(Relation rel, ItemPointer tid, TransactionId xid,
51155115
*
51165116
* The initial tuple is assumed to be already locked.
51175117
*
5118-
* This function doesn't check visibility, it just inconditionally marks the
5118+
* This function doesn't check visibility, it just unconditionally marks the
51195119
* tuple(s) as locked. If any tuple in the updated chain is being deleted
51205120
* concurrently (or updated with the key being modified), sleep until the
51215121
* transaction doing it is finished.
@@ -5608,7 +5608,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
56085608
/*
56095609
* NB -- some of these transformations are only valid because
56105610
* we know the return Xid is a tuple updater (i.e. not merely a
5611-
* locker.) Also note that the only reason we don't explicitely
5611+
* locker.) Also note that the only reason we don't explicitly
56125612
* worry about HEAP_KEYS_UPDATED is because it lives in t_infomask2
56135613
* rather than t_infomask.
56145614
*/

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
@@ -698,7 +698,7 @@ format_operator_internal(Oid operator_oid, bool force_qualify)
698698

699699
/*
700700
* Would this oper be found (given the right args) by regoperatorin?
701-
* If not, or if caller explicitely requests it, we need to qualify
701+
* If not, or if caller explicitly requests it, we need to qualify
702702
* it.
703703
*/
704704
if (force_qualify || !OperatorIsVisible(operator_oid))

0 commit comments

Comments
 (0)
0