Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 23bccc8

Browse files
committed
Fix inconsistencies and typos in the tree
This is numbered take 7, and addresses a set of issues with code comments, variable names and unreferenced variables. Author: Alexander Lakhin Discussion: https://postgr.es/m/dff75442-2468-f74f-568c-6006e141062f@gmail.com
1 parent e1a0f6a commit 23bccc8

File tree

44 files changed

+49
-65
lines changed

Some content is hidden

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

44 files changed

+49
-65
lines changed

contrib/jsonb_plperl/jsonb_plperlu--1.0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* contrib/json_plperl/jsonb_plperl--1.0.sql */
1+
/* contrib/jsonb_plperl/jsonb_plperlu--1.0.sql */
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
44
\echo Use "CREATE EXTENSION jsonb_plperlu" to load this file. \quit

contrib/pgcrypto/pgp-compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pgp_decompress_filter(PullFilter **res, PGP_Context *ctx, PullFilter *src)
311311
{
312312
return pullf_create(res, &decompress_filter, ctx, src);
313313
}
314-
#else /* !HAVE_ZLIB */
314+
#else /* !HAVE_LIBZ */
315315

316316
int
317317
pgp_compress_filter(PushFilter **res, PGP_Context *ctx, PushFilter *dst)

doc/src/sgml/problems.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
C library, processor, memory information, and so on. In most
253253
cases it is sufficient to report the vendor and version, but do
254254
not assume everyone knows what exactly <quote>Debian</quote>
255-
contains or that everyone runs on i386s. If you have
255+
contains or that everyone runs on x86_64. If you have
256256
installation problems then information about the toolchain on
257257
your machine (compiler, <application>make</application>, and so
258258
on) is also necessary.

src/backend/access/common/reloptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* currently executing.
7070
*
7171
* Fillfactor can be set because it applies only to subsequent changes made to
72-
* data blocks, as documented in heapio.c
72+
* data blocks, as documented in hio.c
7373
*
7474
* n_distinct options can be set at ShareUpdateExclusiveLock because they
7575
* are only used during ANALYZE, which uses a ShareUpdateExclusiveLock,

src/backend/access/gin/gindatapage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ typedef struct
9292

9393
/*
9494
* The following fields represent the items in this segment. If 'items' is
95-
* not NULL, it contains a palloc'd array of the itemsin this segment. If
95+
* not NULL, it contains a palloc'd array of the items in this segment. If
9696
* 'seg' is not NULL, it contains the items in an already-compressed
9797
* format. It can point to an on-disk page (!modified), or a palloc'd
9898
* segment in memory. If both are set, they must represent the same items.

src/backend/access/gist/gistget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ gistgettuple(IndexScanDesc scan, ScanDirection dir)
663663
}
664664

665665
/*
666-
* Check the last returned tuple and add it to killitems if
666+
* Check the last returned tuple and add it to killedItems if
667667
* necessary
668668
*/
669669
if (scan->kill_prior_tuple

src/backend/access/gist/gistutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gistjoinvector(IndexTuple *itvec, int *len, IndexTuple *additvec, int addlen)
120120
}
121121

122122
/*
123-
* make plain IndexTupleVector
123+
* make plain IndexTuple vector
124124
*/
125125

126126
IndexTupleData *

src/backend/access/hash/hashovfl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ _hash_initbitmapbuffer(Buffer buf, uint16 bmsize, bool initpage)
793793
* be confused into returning the same tuple more than once or some tuples
794794
* not at all by the rearrangement we are performing here. To prevent
795795
* any concurrent scan to cross the squeeze scan we use lock chaining
796-
* similar to hasbucketcleanup. Refer comments atop hashbucketcleanup.
796+
* similar to hashbucketcleanup. Refer comments atop hashbucketcleanup.
797797
*
798798
* We need to retain a pin on the primary bucket to ensure that no concurrent
799799
* split can start.

src/backend/access/hash/hashpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ _hash_init_metabuffer(Buffer buf, double num_tuples, RegProcedure procid,
509509
* Choose the number of initial bucket pages to match the fill factor
510510
* given the estimated number of tuples. We round up the result to the
511511
* total number of buckets which has to be allocated before using its
512-
* _hashm_spare element. However always force at least 2 bucket pages. The
512+
* hashm_spares element. However always force at least 2 bucket pages. The
513513
* upper limit is determined by considerations explained in
514514
* _hash_expandtable().
515515
*/

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void MultiXactIdWait(MultiXactId multi, MultiXactStatus status, uint16 in
102102
static bool ConditionalMultiXactIdWait(MultiXactId multi, MultiXactStatus status,
103103
uint16 infomask, Relation rel, int *remaining);
104104
static XLogRecPtr log_heap_new_cid(Relation relation, HeapTuple tup);
105-
static HeapTuple ExtractReplicaIdentity(Relation rel, HeapTuple tup, bool key_modified,
105+
static HeapTuple ExtractReplicaIdentity(Relation rel, HeapTuple tup, bool key_changed,
106106
bool *copy);
107107

108108

src/backend/access/heap/pruneheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ heap_page_prune(Relation relation, Buffer buffer, TransactionId OldestXmin,
256256
MarkBufferDirty(buffer);
257257

258258
/*
259-
* Emit a WAL HEAP_CLEAN record showing what we did
259+
* Emit a WAL XLOG_HEAP2_CLEAN record showing what we did
260260
*/
261261
if (RelationNeedsWAL(relation))
262262
{

src/backend/access/index/genam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ systable_endscan(SysScanDesc sysscan)
557557
* we could do a heapscan and sort, but the uses are in places that
558558
* probably don't need to still work with corrupted catalog indexes.)
559559
* For the moment, therefore, these functions are merely the thinnest of
560-
* wrappers around index_beginscan/index_getnext. The main reason for their
561-
* existence is to centralize possible future support of lossy operators
560+
* wrappers around index_beginscan/index_getnext_slot. The main reason for
561+
* their existence is to centralize possible future support of lossy operators
562562
* in catalog scans.
563563
*/
564564
SysScanDesc

src/backend/access/spgist/spgscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ spgInnerTest(SpGistScanOpaque so, SpGistSearchItem *item,
643643
continue;
644644

645645
/*
646-
* Use infinity distances if innerConsistent() failed to return
646+
* Use infinity distances if innerConsistentFn() failed to return
647647
* them or if is a NULL item (their distances are really unused).
648648
*/
649649
distances = out.distances ? out.distances[i] : so->infDistances;

src/backend/access/transam/clog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ ExtendCLOG(TransactionId newestXact)
891891
* Remove all CLOG segments before the one holding the passed transaction ID
892892
*
893893
* Before removing any CLOG data, we must flush XLOG to disk, to ensure
894-
* that any recently-emitted HEAP_FREEZE records have reached disk; otherwise
894+
* that any recently-emitted FREEZE_PAGE records have reached disk; otherwise
895895
* a crash and restart might leave us with some unfrozen tuples referencing
896896
* removed CLOG data. We choose to emit a special TRUNCATE XLOG record too.
897897
* Replaying the deletion from XLOG is not critical, since the files could

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9158,7 +9158,7 @@ CreateRestartPoint(int flags)
91589158

91599159
/*
91609160
* Update pg_control, using current time. Check that it still shows
9161-
* IN_ARCHIVE_RECOVERY state and an older checkpoint, else do nothing;
9161+
* DB_IN_ARCHIVE_RECOVERY state and an older checkpoint, else do nothing;
91629162
* this is a quick hack to make sure nothing really bad happens if somehow
91639163
* we get here after the end-of-recovery checkpoint.
91649164
*/

src/backend/commands/trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
775775
NULL,
776776
true, /* islocal */
777777
0, /* inhcount */
778-
true, /* isnoinherit */
778+
true, /* noinherit */
779779
isInternal); /* is_internal */
780780
}
781781

src/backend/executor/nodeAgg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,8 +2988,8 @@ build_pertrans_for_aggref(AggStatePerTrans pertrans,
29882988
numTransArgs = pertrans->numTransInputs + 1;
29892989

29902990
/*
2991-
* Set up infrastructure for calling the transfn. Note that invtrans
2992-
* is not needed here.
2991+
* Set up infrastructure for calling the transfn. Note that
2992+
* invtransfn is not needed here.
29932993
*/
29942994
build_aggregate_transfn_expr(inputTypes,
29952995
numArguments,

src/backend/executor/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ _SPI_execute_plan(SPIPlanPtr plan, ParamListInfo paramLI,
23692369
/*
23702370
* The last canSetTag query sets the status values returned to the
23712371
* caller. Be careful to free any tuptables not returned, to
2372-
* avoid intratransaction memory leak.
2372+
* avoid intra-transaction memory leak.
23732373
*/
23742374
if (canSetTag)
23752375
{

src/backend/partitioning/partbounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
28352835
PartitionKey key;
28362836
int j;
28372837

2838-
/* Open parent relation and fetch partition keyinfo */
2838+
/* Open parent relation and fetch partition key info */
28392839
parent = try_relation_open(parentId, AccessShareLock);
28402840
if (parent == NULL)
28412841
PG_RETURN_NULL();

src/backend/port/win32_sema.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ PGSemaphoreReset(PGSemaphore sema)
127127
* PGSemaphoreLock
128128
*
129129
* Lock a semaphore (decrement count), blocking if count would be < 0.
130-
* Serve the interrupt if interruptOK is true.
131130
*/
132131
void
133132
PGSemaphoreLock(PGSemaphore sema)

src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3130,7 +3130,7 @@ DisplayXidCache(void)
31303130

31313131

31323132
/* ----------------------------------------------
3133-
* KnownAssignedTransactions sub-module
3133+
* KnownAssignedTransactionIds sub-module
31343134
* ----------------------------------------------
31353135
*/
31363136

src/backend/utils/adt/datetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
18551855

18561856
/*
18571857
* Was this an "ISO time" with embedded field labels? An
1858-
* example is "h04m05s06" - thomas 2001-02-04
1858+
* example is "h04mm05s06" - thomas 2001-02-04
18591859
*/
18601860
if (ptype != 0)
18611861
{

src/backend/utils/adt/jsonb_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ fillJsonbValue(JsonbContainer *container, int index,
510510
* "raw scalar" pseudo array to append it - the actual scalar should be passed
511511
* next and it will be added as the only member of the array.
512512
*
513-
* Values of type jvbBinary, which are rolled up arrays and objects,
513+
* Values of type jbvBinary, which are rolled up arrays and objects,
514514
* are unpacked before being added to the result.
515515
*/
516516
JsonbValue *

src/backend/utils/adt/oid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ oidvectorsend(PG_FUNCTION_ARGS)
308308
}
309309

310310
/*
311-
* oidparse - get OID from IConst/FConst node
311+
* oidparse - get OID from ICONST/FCONST node
312312
*/
313313
Oid
314314
oidparse(Node *node)

src/backend/utils/adt/tsvector_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ tsvector_concat(PG_FUNCTION_ARGS)
11521152
/*
11531153
* Compare two strings by tsvector rules.
11541154
*
1155-
* if isPrefix = true then it returns zero value iff b has prefix a
1155+
* if prefix = true then it returns zero value iff b has prefix a
11561156
*/
11571157
int32
11581158
tsCompareString(char *a, int lena, char *b, int lenb, bool prefix)

src/backend/utils/fmgr/fmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ fmgr_info_cxt_security(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt,
217217

218218
/*
219219
* For an ordinary builtin function, we should never get here
220-
* because the isbuiltin() search above will have succeeded.
220+
* because the fmgr_isbuiltin() search above will have succeeded.
221221
* However, if the user has done a CREATE FUNCTION to create an
222222
* alias for a builtin function, we can end up here. In that case
223223
* we have to look up the function by name. The name of the

src/backend/utils/time/snapmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ AtEOXact_Snapshot(bool isCommit, bool resetXmin)
10931093
* prevent a warning below.
10941094
*
10951095
* As with the FirstXactSnapshot, we don't need to free resources of
1096-
* the snapshot iself as it will go away with the memory context.
1096+
* the snapshot itself as it will go away with the memory context.
10971097
*/
10981098
foreach(lc, exportedSnapshots)
10991099
{

src/common/md5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ bytesToHex(uint8 b[16], char *s)
277277
*
278278
* OUTPUT hexsum the MD5 sum as a '\0'-terminated string of
279279
* hexadecimal digits. an MD5 sum is 16 bytes long.
280-
* each byte is represented by two heaxadecimal
280+
* each byte is represented by two hexadecimal
281281
* characters. you thus need to provide an array
282282
* of 33 characters, including the trailing '\0'.
283283
*

src/include/access/ginblock.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,6 @@ typedef struct GinMetaPageData
171171
GinItemPointerGetBlockNumber(p) == (BlockNumber)0)
172172
#define ItemPointerSetMax(p) \
173173
ItemPointerSet((p), InvalidBlockNumber, (OffsetNumber)0xffff)
174-
#define ItemPointerIsMax(p) \
175-
(GinItemPointerGetOffsetNumber(p) == (OffsetNumber)0xffff && \
176-
GinItemPointerGetBlockNumber(p) == InvalidBlockNumber)
177174
#define ItemPointerSetLossyPage(p, b) \
178175
ItemPointerSet((p), (b), (OffsetNumber)0xffff)
179176
#define ItemPointerIsLossyPage(p) \

src/include/access/ginxlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ typedef struct ginxlogSplit
127127

128128
/*
129129
* Vacuum simply WAL-logs the whole page, when anything is modified. This
130-
* is functionally identical to heap_newpage records, but is kept separate for
130+
* is functionally identical to XLOG_FPI records, but is kept separate for
131131
* debugging purposes. (When inspecting the WAL stream, it's easier to see
132132
* what's going on when GIN vacuum records are marked as such, not as heap
133133
* records.) This is currently only used for entry tree leaf pages.

src/include/access/heapam_xlog.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ typedef struct xl_multi_insert_tuple
195195
*
196196
* Backup blk 0: new page
197197
*
198-
* If XLOG_HEAP_PREFIX_FROM_OLD or XLOG_HEAP_SUFFIX_FROM_OLD flags are set,
198+
* If XLH_UPDATE_PREFIX_FROM_OLD or XLH_UPDATE_SUFFIX_FROM_OLD flags are set,
199199
* the prefix and/or suffix come first, as one or two uint16s.
200200
*
201201
* After that, xl_heap_header and new tuple data follow. The new tuple
202202
* data doesn't include the prefix and suffix, which are copied from the
203203
* old tuple on replay.
204204
*
205-
* If HEAP_CONTAINS_NEW_TUPLE_DATA flag is given, the tuple data is
205+
* If XLH_UPDATE_CONTAINS_NEW_TUPLE flag is given, the tuple data is
206206
* included even if a full-page image was taken.
207207
*
208208
* Backup blk 1: old page, if different. (no data, just a reference to the blk)
@@ -217,8 +217,8 @@ typedef struct xl_heap_update
217217
OffsetNumber new_offnum; /* new tuple's offset */
218218

219219
/*
220-
* If XLOG_HEAP_CONTAINS_OLD_TUPLE or XLOG_HEAP_CONTAINS_OLD_KEY flags are
221-
* set, a xl_heap_header struct and tuple data for the old tuple follows.
220+
* If XLH_UPDATE_CONTAINS_OLD_TUPLE or XLH_UPDATE_CONTAINS_OLD_KEY flags
221+
* are set, xl_heap_header and tuple data for the old tuple follow.
222222
*/
223223
} xl_heap_update;
224224

src/include/access/spgist_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ typedef struct SpGistLeafTupleData
328328
{
329329
unsigned int tupstate:2, /* LIVE/REDIRECT/DEAD/PLACEHOLDER */
330330
size:30; /* large enough for any palloc'able value */
331-
OffsetNumber nextOffset; /* next tuple in chain, or InvalidOffset */
331+
OffsetNumber nextOffset; /* next tuple in chain, or InvalidOffsetNumber */
332332
ItemPointerData heapPtr; /* TID of represented heap tuple */
333333
/* leaf datum follows */
334334
} SpGistLeafTupleData;

src/include/access/xact.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ typedef struct xl_xact_abort
283283

284284
/* xl_xact_xinfo follows if XLOG_XACT_HAS_INFO */
285285
/* xl_xact_dbinfo follows if XINFO_HAS_DBINFO */
286-
/* xl_xact_subxacts follows if HAS_SUBXACT */
287-
/* xl_xact_relfilenodes follows if HAS_RELFILENODES */
286+
/* xl_xact_subxacts follows if XINFO_HAS_SUBXACT */
287+
/* xl_xact_relfilenodes follows if XINFO_HAS_RELFILENODES */
288288
/* No invalidation messages needed. */
289289
/* xl_xact_twophase follows if XINFO_HAS_TWOPHASE */
290290
/* twophase_gid follows if XINFO_HAS_GID. As a null-terminated string. */

src/include/executor/nodeAgg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ typedef struct AggStatePerHashData
300300
int numhashGrpCols; /* number of columns in hash table */
301301
int largestGrpColIdx; /* largest col required for hashing */
302302
AttrNumber *hashGrpColIdxInput; /* hash col indices in input slot */
303-
AttrNumber *hashGrpColIdxHash; /* indices in hashtbl tuples */
303+
AttrNumber *hashGrpColIdxHash; /* indices in hash table tuples */
304304
Agg *aggnode; /* original Agg node, for numGroups etc. */
305305
} AggStatePerHashData;
306306

src/include/mb/pg_wchar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ extern int pg_mbstrlen_with_len(const char *mbstr, int len);
544544
extern int pg_mbcliplen(const char *mbstr, int len, int limit);
545545
extern int pg_encoding_mbcliplen(int encoding, const char *mbstr,
546546
int len, int limit);
547-
extern int pg_mbcharcliplen(const char *mbstr, int len, int imit);
547+
extern int pg_mbcharcliplen(const char *mbstr, int len, int limit);
548548
extern int pg_encoding_max_length(int encoding);
549549
extern int pg_database_encoding_max_length(void);
550550
extern mbcharacter_incrementer pg_database_encoding_character_incrementer(void);

src/include/pg_config.h.win32

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,9 @@
159159
/* Define to 1 if you have the <editline/readline.h> header file. */
160160
/* #undef HAVE_EDITLINE_READLINE_H */
161161

162-
/* Define to 1 if you have the `fcvt' function. */
163-
#define HAVE_FCVT 1
164-
165162
/* Define to 1 if you have the `fdatasync' function. */
166163
/* #undef HAVE_FDATASYNC */
167164

168-
/* Define to 1 if you have finite(). */
169-
#define HAVE_FINITE 1
170-
171165
/* Define to 1 if you have the `fpclass' function. */
172166
/* #undef HAVE_FPCLASS */
173167

@@ -469,9 +463,6 @@
469463
/* Define to 1 if `__ss_len' is member of `struct sockaddr_storage'. */
470464
/* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN */
471465

472-
/* Define to 1 if the system has the type `struct sockaddr_un'. */
473-
/* #undef HAVE_STRUCT_SOCKADDR_UN */
474-
475466
/* Define to 1 if `tm_zone' is member of `struct tm'. */
476467
/* #undef HAVE_STRUCT_TM_TM_ZONE */
477468

@@ -481,9 +472,6 @@
481472
/* Define to 1 if you have the `sync_file_range' function. */
482473
/* #undef HAVE_SYNC_FILE_RANGE */
483474

484-
/* Define to 1 if you have the `sysconf' function. */
485-
/* #undef HAVE_SYSCONF */
486-
487475
/* Define to 1 if you have the syslog interface. */
488476
/* #undef HAVE_SYSLOG */
489477

src/include/utils/formatting.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1999-2019, PostgreSQL Global Development Group
88
*
99
* The PostgreSQL routines for a DateTime/int/float/numeric formatting,
10-
* inspire with Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines.
10+
* inspired by the Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines.
1111
*
1212
* Karel Zak
1313
*

src/include/utils/jsonb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ extern JsonbValue *findJsonbValueFromContainer(JsonbContainer *sheader,
367367
extern JsonbValue *getIthJsonbValueFromContainer(JsonbContainer *sheader,
368368
uint32 i);
369369
extern JsonbValue *pushJsonbValue(JsonbParseState **pstate,
370-
JsonbIteratorToken seq, JsonbValue *jbVal);
370+
JsonbIteratorToken seq, JsonbValue *jbval);
371371
extern JsonbIterator *JsonbIteratorInit(JsonbContainer *container);
372372
extern JsonbIteratorToken JsonbIteratorNext(JsonbIterator **it, JsonbValue *val,
373373
bool skipNested);

src/include/utils/relcache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef enum IndexAttrBitmapKind
5959
} IndexAttrBitmapKind;
6060

6161
extern Bitmapset *RelationGetIndexAttrBitmap(Relation relation,
62-
IndexAttrBitmapKind keyAttrs);
62+
IndexAttrBitmapKind attrKind);
6363

6464
extern void RelationGetExclusionInfo(Relation indexRelation,
6565
Oid **operators,

0 commit comments

Comments
 (0)