Skip to content

Commit 6ca86bb

Browse files
committed
Fix typos in the code
Author: Vignesh C Reviewed-by: Dilip Kumar, Michael Paquier Discussion: https://postgr.es/m/CALDaNm0ni+GAOe4+fbXiOxNrVudajMYmhJFtXGX-zBPoN8ixhw@mail.gmail.com
1 parent 517bf2d commit 6ca86bb

File tree

17 files changed

+23
-23
lines changed

17 files changed

+23
-23
lines changed

contrib/pg_trgm/trgm_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ comp_ptrgm(const void *v1, const void *v2)
467467
* ulen1: count of unique trigrams of array "trg1".
468468
* len2: length of array "trg2" and array "trg2indexes".
469469
* len: length of the array "found".
470-
* lags: set of boolean flags parametrizing similarity calculation.
470+
* lags: set of boolean flags parameterizing similarity calculation.
471471
* bounds: whether each trigram is left/right bound of word.
472472
*
473473
* Returns word similarity.
@@ -632,7 +632,7 @@ iterate_word_similarity(int *trg2indexes,
632632
*
633633
* str1: search pattern string, of length slen1 bytes.
634634
* str2: text in which we are looking for a word, of length slen2 bytes.
635-
* flags: set of boolean flags parametrizing similarity calculation.
635+
* flags: set of boolean flags parameterizing similarity calculation.
636636
*
637637
* Returns word similarity.
638638
*/

contrib/pgcrypto/pgp-info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pgp_get_keyid(MBuf *pgp_data, char *dst)
169169
break;
170170
case PGP_PKT_SYMENCRYPTED_SESSKEY:
171171
got_symenc_key++;
172-
/* fallthru */
172+
/* fall through */
173173
case PGP_PKT_SIGNATURE:
174174
case PGP_PKT_MARKER:
175175
case PGP_PKT_TRUST:

contrib/sepgsql/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sepgsql_database_post_create(Oid databaseId, const char *dtemplate)
7474
* Compute a default security label of the newly created database based on
7575
* a pair of security label of client and source database.
7676
*
77-
* XXX - uncoming version of libselinux supports to take object name to
77+
* XXX - upcoming version of libselinux supports to take object name to
7878
* handle special treatment on default security label.
7979
*/
8080
rel = table_open(DatabaseRelationId, AccessShareLock);

contrib/sepgsql/dml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fixup_whole_row_references(Oid relOid, Bitmapset *columns)
8585
* When user is querying on a table with children, it implicitly accesses
8686
* child tables also. So, we also need to check security label of child
8787
* tables and columns, but here is no guarantee attribute numbers are
88-
* same between the parent ans children.
88+
* same between the parent and children.
8989
* It returns a bitmapset which contains attribute number of the child
9090
* table based on the given bitmapset of the parent.
9191
*/

contrib/sepgsql/schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sepgsql_schema_post_create(Oid namespaceId)
5151
* Compute a default security label when we create a new schema object
5252
* under the working database.
5353
*
54-
* XXX - uncoming version of libselinux supports to take object name to
54+
* XXX - upcoming version of libselinux supports to take object name to
5555
* handle special treatment on default security label; such as special
5656
* label on "pg_temp" schema.
5757
*/

src/backend/access/common/detoast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ toast_fetch_datum(struct varlena *attr)
501501
* in the toast relation
502502
*
503503
* Note that this function supports non-compressed external datums
504-
* and compressed external datums (in which case the requrested slice
505-
* has to be a prefix, i.e. sliceoffset has to be 0).
504+
* and compressed external datums (in which case the requested slice
505+
* has to be a prefix, i.e. sliceoffset has to be 0).
506506
* ----------
507507
*/
508508
static struct varlena *

src/backend/access/nbtree/nbtsplitloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
814814
final->firstoldonright < state->newitemoff + MAX_LEAF_INTERVAL)
815815
{
816816
/*
817-
* Avoid the problem by peforming a 50:50 split when the new item is
817+
* Avoid the problem by performing a 50:50 split when the new item is
818818
* just to the right of the would-be "many duplicates" split point.
819819
*/
820820
final = &state->splits[0];

src/backend/replication/walreceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ XLogWalRcvFlush(bool dying)
10521052
* false, this is a no-op.
10531053
*
10541054
* If 'requestReply' is true, requests the server to reply immediately upon
1055-
* receiving this message. This is used for heartbearts, when approaching
1055+
* receiving this message. This is used for heartbeats, when approaching
10561056
* wal_receiver_timeout.
10571057
*/
10581058
static void

src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ sort_item_compare(const void *a, const void *b, void *arg)
476476
* build_column_frequencies
477477
* compute frequencies of values in each column
478478
*
479-
* This returns an array of SortItems for each attibute the MCV is built
479+
* This returns an array of SortItems for each attribute the MCV is built
480480
* on, with a frequency (number of occurrences) for each value. This is
481481
* then used to compute "base" frequency of MCV items.
482482
*

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ BufferAlloc(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
12081208
LWLockAcquire(newPartitionLock, LW_EXCLUSIVE);
12091209
/* remember we have no old-partition lock or tag */
12101210
oldPartitionLock = NULL;
1211-
/* this just keeps the compiler quiet about uninit variables */
1211+
/* keep the compiler quiet about uninitialized variables */
12121212
oldHash = 0;
12131213
}
12141214

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