Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c74d49d

Browse files
committed
Fix many typos and inconsistencies
Author: Alexander Lakhin Discussion: https://postgr.es/m/[email protected]
1 parent 459c3cd commit c74d49d

File tree

50 files changed

+76
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+76
-89
lines changed

contrib/bloom/blutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ BloomPageAddItem(BloomState *state, Page page, BloomTuple *tuple)
341341
/*
342342
* Allocate a new page (either by recycling, or by extending the index file)
343343
* The returned buffer is already pinned and exclusive-locked
344-
* Caller is responsible for initializing the page by calling BloomInitBuffer
344+
* Caller is responsible for initializing the page by calling BloomInitPage
345345
*/
346346
Buffer
347347
BloomNewBuffer(Relation index)

contrib/intarray/_int_selfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int compare_val_int4(const void *a, const void *b);
4343
*
4444
* The default array selectivity operators for the @>, && and @< operators
4545
* work fine for integer arrays. However, if we tried to just use arraycontsel
46-
* and arracontjoinsel directly as the cost estimator functions for our
46+
* and arraycontjoinsel directly as the cost estimator functions for our
4747
* operators, they would not work as intended, because they look at the
4848
* operator's OID. Our operators behave exactly like the built-in anyarray
4949
* versions, but we must tell the cost estimator functions which built-in

contrib/pg_trgm/trgm_regexp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ typedef struct
441441
struct TrgmPackedGraph
442442
{
443443
/*
444-
* colorTrigramsCount and colorTrigramsGroups contain information about
445-
* how trigrams are grouped into color trigrams. "colorTrigramsCount" is
446-
* the count of color trigrams and "colorTrigramGroups" contains number of
444+
* colorTrigramsCount and colorTrigramGroups contain information about how
445+
* trigrams are grouped into color trigrams. "colorTrigramsCount" is the
446+
* count of color trigrams and "colorTrigramGroups" contains number of
447447
* simple trigrams for each color trigram. The array of simple trigrams
448448
* (stored separately from this struct) is ordered so that the simple
449449
* trigrams for each color trigram are consecutive, and they're in order

contrib/pgcrypto/crypt-des.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* binaries of libcrypt exportable from the USA
1212
*
1313
* Adapted for FreeBSD-4.0 by Mark R V Murray
14-
* this file should now *only* export crypt_des(), in order to make
14+
* this file should now *only* export px_crypt_des(), in order to make
1515
* a module that can be optionally included in libcrypt.
1616
*
1717
* Redistribution and use in source and binary forms, with or without

contrib/postgres_fdw/expected/postgres_fdw.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = ANY(ARRAY[c2, 1, c1
665665
Remote SQL: SELECT "C 1", c2, c3, c4, c5, c6, c7, c8 FROM "S 1"."T 1" WHERE (("C 1" = ANY (ARRAY[c2, 1, ("C 1" + 0)])))
666666
(3 rows)
667667

668-
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = (ARRAY[c1,c2,3])[1]; -- ArrayRef
668+
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = (ARRAY[c1,c2,3])[1]; -- SubscriptingRef
669669
QUERY PLAN
670670
----------------------------------------------------------------------------------------------------------------------
671671
Foreign Scan on public.ft1 t1

contrib/postgres_fdw/sql/postgres_fdw.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = -c1; -- Op
297297
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE 1 = c1!; -- OpExpr(r)
298298
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE (c1 IS NOT NULL) IS DISTINCT FROM (c1 IS NOT NULL); -- DistinctExpr
299299
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = ANY(ARRAY[c2, 1, c1 + 0]); -- ScalarArrayOpExpr
300-
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = (ARRAY[c1,c2,3])[1]; -- ArrayRef
300+
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c1 = (ARRAY[c1,c2,3])[1]; -- SubscriptingRef
301301
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c6 = E'foo''s\\bar'; -- check special chars
302302
EXPLAIN (VERBOSE, COSTS OFF) SELECT * FROM ft1 t1 WHERE c8 = 'foo'; -- can't be sent to remote
303303
-- parameterized remote path for foreign table

doc/src/sgml/diskusage.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ WHERE c.relname = 'customer' AND
8787
c2.oid = i.indexrelid
8888
ORDER BY c2.relname;
8989

90-
relname | relpages
91-
----------------------+----------
92-
customer_id_indexdex | 26
90+
relname | relpages
91+
-------------------+----------
92+
customer_id_index | 26
9393
</programlisting>
9494
</para>
9595

src/backend/access/brin/brin_tuple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* brin_tuples.c
2+
* brin_tuple.c
33
* Method implementations for tuples in BRIN indexes.
44
*
55
* Intended usage is that code outside this file only deals with
@@ -207,7 +207,7 @@ brin_form_tuple(BrinDesc *brdesc, BlockNumber blkno, BrinMemTuple *tuple,
207207
/*
208208
* Note that we reverse the sense of null bits in this module: we
209209
* store a 1 for a null attribute rather than a 0. So we must reverse
210-
* the sense of the att_isnull test in br_deconstruct_tuple as well.
210+
* the sense of the att_isnull test in brin_deconstruct_tuple as well.
211211
*/
212212
bitP = ((bits8 *) ((char *) rettuple + SizeOfBrinTuple)) - 1;
213213
bitmask = HIGHBIT;

src/backend/access/nbtree/nbtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,8 @@ btparallelrescan(IndexScanDesc scan)
621621

622622
/*
623623
* _bt_parallel_seize() -- Begin the process of advancing the scan to a new
624-
* page. Other scans must wait until we call bt_parallel_release() or
625-
* bt_parallel_done().
624+
* page. Other scans must wait until we call _bt_parallel_release()
625+
* or _bt_parallel_done().
626626
*
627627
* The return value is true if we successfully seized the scan and false
628628
* if we did not. The latter case occurs if no pages remain for the current

src/backend/access/nbtree/nbtxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ btree_xlog_insert(bool isleaf, bool ismeta, XLogReaderState *record)
181181

182182
if (PageAddItem(page, (Item) datapos, datalen, xlrec->offnum,
183183
false, false) == InvalidOffsetNumber)
184-
elog(PANIC, "btree_insert_redo: failed to add item");
184+
elog(PANIC, "btree_xlog_insert: failed to add item");
185185

186186
PageSetLSN(page, lsn);
187187
MarkBufferDirty(buffer);

0 commit comments

Comments
 (0)