Skip to content

Commit 847bbb2

Browse files
Fix recently introduced typos
This fixes typos in docs and comments introduced during the v18 development cycle, to keep them from ending up in backbranches. Author: Jacob Brazeal <jacob.brazeal@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CA+COZaCgGua25f2hSrjrDLJcJJAHkwoKgTTqUy-wyL1=64JNjw@mail.gmail.com
1 parent 5822bf2 commit 847bbb2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ amtranslatestrategy (StrategyNumber strategy, Oid opfamily, Oid opcintype);
895895
StrategyNumber
896896
amtranslatecmptype (CompareType cmptype, Oid opfamily, Oid opcintype);
897897
</programlisting>
898-
These functions, if implemented, will be called by the planer and executor
898+
These functions, if implemented, will be called by the planner and executor
899899
to convert between fixed <type>CompareType</type> values and the specific
900900
strategy numbers used by the access method. These functions can be
901901
implemented by access methods that implement functionality similar to the

src/backend/statistics/attribute_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ get_attr_expr(Relation rel, int attnum)
547547
return NULL;
548548

549549
/*
550-
* The index attnum points directly to a relation attnum, then it's no an
550+
* The index attnum points directly to a relation attnum, then it's not an
551551
* expression attribute.
552552
*/
553553
if (rel->rd_index->indkey.values[attnum - 1] != 0)

src/backend/storage/lmgr/lwlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ LWLockDisownInternal(LWLock *lock)
18321832

18331833
/*
18341834
* Helper function to release lock, shared between LWLockRelease() and
1835-
* LWLockeleaseDisowned().
1835+
* LWLockReleaseDisowned().
18361836
*/
18371837
static void
18381838
LWLockReleaseInternal(LWLock *lock, LWLockMode mode)

src/backend/utils/activity/pgstat_backend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pgstat_fetch_stat_backend(ProcNumber procNumber)
100100
/*
101101
* Returns statistics of a backend by pid.
102102
*
103-
* This routine includes sanity checks to ensire that the backend exists and
103+
* This routine includes sanity checks to ensure that the backend exists and
104104
* is running. "bktype" can be optionally defined to return the BackendType
105105
* of the backend whose statistics are returned.
106106
*/

src/backend/utils/cache/inval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ CacheInvalidateSmgr(RelFileLocatorBackend rlocator)
17441744

17451745
/* verify optimization stated above stays valid */
17461746
StaticAssertStmt(MAX_BACKENDS_BITS <= 23,
1747-
"MAX_BACKEND_BITS is too big for inval.c");
1747+
"MAX_BACKENDS_BITS is too big for inval.c");
17481748

17491749
msg.sm.id = SHAREDINVALSMGR_ID;
17501750
msg.sm.backend_hi = rlocator.backend >> 16;

src/tools/testwrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ env_dict = {**os.environ,
4343
'TESTLOGDIR': os.path.join(testdir, 'log')}
4444

4545

46-
# The configuration time value of PG_TEST_EXTRA is supplied via arguement
46+
# The configuration time value of PG_TEST_EXTRA is supplied via argument
4747
# --pg-test-extra. But it can be overridden by environment variable
4848
# PG_TEST_EXTRA at the time of running a test. Hence use value from arguments
4949
# only if PG_TEST_EXTRA is not set in the test environment, which already

0 commit comments

Comments
 (0)