Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb43f3d

Browse files
committed
Fix inconsistencies and typos in the tree
This is numbered take 8, and addresses again a set of issues with codecomments, variable names and unreferenced variables.Author: Alexander LakhinDiscussion:https://postgr.es/m/b137b5eb-9c95-9c2f-586e-38aba7d59788@gmail.com
1 parent7cce159 commiteb43f3d

File tree

42 files changed

+58
-75
lines changed

Some content is hidden

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

42 files changed

+58
-75
lines changed

‎contrib/pgcrypto/pgp-decrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ mdc_finish(PGP_Context *ctx, PullFilter *src, int len)
355355
if (len!=20)
356356
returnPXE_PGP_CORRUPT_DATA;
357357

358-
/* mdc_read should not callmd_update */
358+
/* mdc_read should not callpx_md_update */
359359
ctx->in_mdc_pkt=1;
360360

361361
/* read data */

‎doc/src/sgml/custom-scan.sgml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ typedef struct CustomPath
8383
by <literal>nodeToString</literal>, so that debugging routines that attempt to
8484
print the custom path will work as designed. <structfield>methods</structfield> must
8585
point to a (usually statically allocated) object implementing the required
86-
custom path methods, of which there is currently only one. The
87-
<structfield>LibraryName</structfield> and <structfield>SymbolName</structfield> fields must also
88-
be initialized so that the dynamic loader can resolve them to locate the
89-
method table.
86+
custom path methods, of which there is currently only one.
9087
</para>
9188

9289
<para>

‎doc/src/sgml/ref/create_aggregate.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ CREATE [ OR REPLACE ] AGGREGATE <replaceable class="parameter">name</replaceable
211211
as described in <xref linkend="xaggr-moving-aggregates"/>. This requires
212212
specifying the <literal>MSFUNC</literal>, <literal>MINVFUNC</literal>,
213213
and <literal>MSTYPE</literal> parameters, and optionally
214-
the <literal>MSPACE</literal>, <literal>MFINALFUNC</literal>,
214+
the <literal>MSSPACE</literal>, <literal>MFINALFUNC</literal>,
215215
<literal>MFINALFUNC_EXTRA</literal>, <literal>MFINALFUNC_MODIFY</literal>,
216216
and <literal>MINITCOND</literal> parameters. Except for <literal>MINVFUNC</literal>,
217217
these parameters work like the corresponding simple-aggregate parameters

‎doc/src/sgml/xplang.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ CREATE FUNCTION <replaceable>validator_function_name</replaceable>(oid)
137137
<para>
138138
Finally, the PL must be declared with the command
139139
<synopsis>
140-
CREATE <optional>TRUSTED</optional> LANGUAGE <replaceable>language-name</replaceable>
140+
CREATE <optional>TRUSTED</optional> LANGUAGE <replaceable>language_name</replaceable>
141141
HANDLER <replaceable>handler_function_name</replaceable>
142142
<optional>INLINE <replaceable>inline_function_name</replaceable></optional>
143143
<optional>VALIDATOR <replaceable>validator_function_name</replaceable></optional> ;

‎src/Makefile.global.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ standard_targets = all install installdirs uninstall distprep clean distclean ma
2323
# these targets should recurse even into subdirectories not being built:
2424
standard_always_targets = distprep clean distclean maintainer-clean
2525

26-
.PHONY:$(standard_targets) install-strip html man installcheck-parallel maintainer-check
26+
.PHONY:$(standard_targets) install-strip html man installcheck-parallel
2727

2828
# make `all' the default target
2929
all:

‎src/backend/access/common/bufmask.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include"access/bufmask.h"
2121

2222
/*
23-
*mask_page_lsn
23+
*mask_page_lsn_and_checksum
2424
*
2525
* In consistency checks, the LSN of the two pages compared will likely be
2626
* different because of concurrent operations when the WAL is generated and

‎src/backend/access/gin/gindatapage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ disassembleLeaf(Page page)
13711371
if (GinPageIsCompressed(page))
13721372
{
13731373
/*
1374-
* Create aleafSegment entry for each segment.
1374+
* Create aleafSegmentInfo entry for each segment.
13751375
*/
13761376
seg=GinDataLeafPageGetPostingList(page);
13771377
segbegin= (Pointer)seg;

‎src/backend/access/heap/rewriteheap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static void logical_end_heap_rewrite(RewriteState state);
237237
* new_heapnew, locked heap relation to insert tuples to
238238
* oldest_xminxid used by the caller to determine which tuples are dead
239239
* freeze_xidxid before which tuples will be frozen
240-
*min_multimultixact before which multis will be removed
240+
*cutoff_multimultixact before which multis will be removed
241241
* use_walshould the inserts to the new heap be WAL-logged?
242242
*
243243
* Returns an opaque RewriteState, allocated in current memory context,
@@ -787,7 +787,7 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
787787
* Instead we simply write the mapping files out to disk, *before* the
788788
* XLogInsert() is performed. That guarantees that either the XLogInsert() is
789789
* inserted after the checkpoint's redo pointer or that the checkpoint (via
790-
*LogicalRewriteHeapCheckpoint()) has flushed the (partial) mapping file to
790+
*CheckPointLogicalRewriteHeap()) has flushed the (partial) mapping file to
791791
* disk. That leaves the tail end that has not yet been flushed open to
792792
* corruption, which is solved by including the current offset in the
793793
* xl_heap_rewrite_mapping records and truncating the mapping file to it

‎src/backend/access/spgist/spgvacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ spgvacuumscan(spgBulkDeleteState *bds)
842842
}
843843
}
844844

845-
/* Propagate locallastUsedPage cache to metablock */
845+
/* Propagate locallastUsedPages cache to metablock */
846846
SpGistUpdateMetaPage(index);
847847

848848
/*

‎src/backend/access/transam/xact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ StartTransaction(void)
19881988

19891989
/*
19901990
* Advertise it in the proc array. We assume assignment of
1991-
*LocalTransactionID is atomic, and the backendId should be set already.
1991+
*localTransactionId is atomic, and the backendId should be set already.
19921992
*/
19931993
Assert(MyProc->backendId==vxid.backendId);
19941994
MyProc->lxid=vxid.localTransactionId;

‎src/backend/access/transam/xlog.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,11 +1796,11 @@ WaitXLogInsertionsToFinish(XLogRecPtr upto)
17961796
do
17971797
{
17981798
/*
1799-
* See if this insertion is in progress.LWLockWait will wait for
1800-
* the lock to be released, or for the 'value' to be set by a
1801-
* LWLockUpdateVar call. When a lock is initially acquired, its
1802-
* value is 0 (InvalidXLogRecPtr), which means that we don't know
1803-
* where it's inserting yet. We will have to wait for it. If
1799+
* See if this insertion is in progress. LWLockWaitForVar will
1800+
*wait forthe lock to be released, or for the 'value' to be set
1801+
*by aLWLockUpdateVar call. When a lock is initially acquired,
1802+
*itsvalue is 0 (InvalidXLogRecPtr), which means that we don't
1803+
*knowwhere it's inserting yet. We will have to wait for it. If
18041804
* it's a small insertion, the record will most likely fit on the
18051805
* same page and the inserter will release the lock without ever
18061806
* calling LWLockUpdateVar. But if it has to sleep, it will
@@ -6024,7 +6024,10 @@ recoveryApplyDelay(XLogReaderState *record)
60246024
TimestampDifference(GetCurrentTimestamp(),recoveryDelayUntilTime,
60256025
&secs,&microsecs);
60266026

6027-
/* NB: We're ignoring waits below min_apply_delay's resolution. */
6027+
/*
6028+
* NB: We're ignoring waits below recovery_min_apply_delay's
6029+
* resolution.
6030+
*/
60286031
if (secs <=0&&microsecs /1000 <=0)
60296032
break;
60306033

‎src/backend/catalog/pg_aggregate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ AggregateCreate(const char *aggName,
733733
* Create dependencies for the aggregate (above and beyond those already
734734
* made by ProcedureCreate). Note: we don't need an explicit dependency
735735
* on aggTransType since we depend on it indirectly through transfn.
736-
* Likewise for aggmTransType using themtransfunc, if it exists.
736+
* Likewise for aggmTransType using themtransfn, if it exists.
737737
*
738738
* If we're replacing an existing definition, ProcedureCreate deleted all
739739
* our existing dependencies, so we have to do the same things here either

‎src/backend/commands/dbcommands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ get_db_info(const char *name, LOCKMODE lockmode,
18541854
/* limit of frozen XIDs */
18551855
if (dbFrozenXidP)
18561856
*dbFrozenXidP=dbform->datfrozenxid;
1857-
/* minimumMultixactId */
1857+
/* minimumMultiXactId */
18581858
if (dbMinMultiP)
18591859
*dbMinMultiP=dbform->datminmxid;
18601860
/* default tablespace for this database */

‎src/backend/commands/operatorcmds.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
*"create operator":
2828
*operators
2929
*
30-
*Most of the parse-tree manipulation routines are defined in
31-
*commands/manip.c.
32-
*
3330
*-------------------------------------------------------------------------
3431
*/
3532
#include"postgres.h"

‎src/backend/libpq/auth.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,14 +1796,9 @@ interpret_ident_response(const char *ident_response,
17961796

17971797

17981798
/*
1799-
*Talk to the ident server on host "remote_ip_addr" and find out who
1800-
*owns the tcp connection from his port "remote_port" to port
1801-
*"local_port_addr" on host "local_ip_addr". Return the user name the
1802-
*ident server gives as "*ident_user".
1803-
*
1804-
*IP addresses and port numbers are in network byte order.
1805-
*
1806-
*But iff we're unable to get the information from ident, return false.
1799+
*Talk to the ident server on "remote_addr" and find out who
1800+
*owns the tcp connection to "local_addr"
1801+
*It the username successfully retrieved, check the usermap.
18071802
*
18081803
*XXX: Using WaitLatchOrSocket() and doing a CHECK_FOR_INTERRUPTS() if the
18091804
*latch was set would improve the responsiveness to timeouts/cancellations.

‎src/backend/postmaster/bgwriter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ BackgroundWriterMain(void)
291291
* significantly bigger than BgWriterDelay, so we don't complicate the
292292
* overall timeout handling but just assume we're going to get called
293293
* often enough even if hibernation mode is active. It's not that
294-
* important thatlog_snap_interval_ms is met strictly. To make sure
295-
* we're not waking the disk up unnecessarily on an idle system we
296-
* check whether there has been any WAL inserted since the last time
297-
* we've logged a running xacts.
294+
* important thatLOG_SNAPSHOT_INTERVAL_MS is met strictly. To make
295+
*surewe're not waking the disk up unnecessarily on an idle system
296+
*wecheck whether there has been any WAL inserted since the last
297+
*timewe've logged a running xacts.
298298
*
299299
* We do this logging in the bgwriter as it is the only process that
300300
* is run regularly and returns to its mainloop all the time. E.g.

‎src/backend/replication/walsender.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,7 +2259,7 @@ WalSndLoop(WalSndSendDataCallback send_data)
22592259
WL_SOCKET_READABLE;
22602260

22612261
/*
2262-
* Use fresh timestamp, notlast_processed, to reduce the chance
2262+
* Use fresh timestamp, notlast_processing, to reduce the chance
22632263
* of reaching wal_sender_timeout before sending a keepalive.
22642264
*/
22652265
sleeptime=WalSndComputeSleeptime(GetCurrentTimestamp());
@@ -2666,7 +2666,7 @@ XLogSendPhysical(void)
26662666
* very close to together here so that we'll get a later position if it is
26672667
* still moving.
26682668
*
2669-
* BecauseLagTrackerWriter ignores samples when the LSN hasn't advanced,
2669+
* BecauseLagTrackerWrite ignores samples when the LSN hasn't advanced,
26702670
* this gives us a cheap approximation for the WAL flush time for this
26712671
* LSN.
26722672
*

‎src/backend/storage/ipc/procarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ DisplayXidCache(void)
31693169
*
31703170
* When we throw away subXIDs from KnownAssignedXids, we need to keep track of
31713171
* that, similarly to tracking overflow of a PGPROC's subxids array. We do
3172-
* that by remembering thelastOverflowedXID, ie the last thrown-away subXID.
3172+
* that by remembering thelastOverflowedXid, ie the last thrown-away subXID.
31733173
* As long as that is within the range of interesting XIDs, we have to assume
31743174
* that subXIDs are missing from snapshots. (Note that subXID overflow occurs
31753175
* on primary when 65th subXID arrives, whereas on standby it occurs when 64th

‎src/backend/storage/ipc/standby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ InitRecoveryTransactionEnvironment(void)
9999
* Lock a virtual transaction id for Startup process.
100100
*
101101
* We need to do GetNextLocalTransactionId() because
102-
* SharedInvalBackendInit() leaveslocalTransactionid invalid and the lock
102+
* SharedInvalBackendInit() leaveslocalTransactionId invalid and the lock
103103
* manager doesn't like that at all.
104104
*
105105
* Note that we don't need to run XactLockTableInsert() because nobody

‎src/backend/storage/lmgr/lwlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
232232

233233
staticvoidinit_lwlock_stats(void);
234234
staticvoidprint_lwlock_stats(intcode,Datumarg);
235-
staticlwlock_stats*get_lwlock_stats_entry(LWLock*lockid);
235+
staticlwlock_stats*get_lwlock_stats_entry(LWLock*lock);
236236

237237
staticvoid
238238
init_lwlock_stats(void)

‎src/backend/storage/smgr/md.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ mdwrite(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
731731
*mdnblocks() -- Get the number of blocks stored in a relation.
732732
*
733733
*Important side effect: all active segments of the relation are opened
734-
*and added to themdfd_seg_fds array. If this routine has not been
734+
*and added to themd_seg_fds array. If this routine has not been
735735
*called, then only segments up to the last one actually touched
736736
*are present in the array.
737737
*/

‎src/backend/tcop/pquery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,8 @@ FillPortalStore(Portal portal, bool isTopLevel)
10231023

10241024
/*
10251025
* Run the portal to completion just as for the default
1026-
*MULTI_QUERY case, but send the primary query's output to the
1027-
* tuplestore. Auxiliary query outputs are discarded. Set the
1026+
*PORTAL_MULTI_QUERY case, but send the primary query's output to
1027+
*thetuplestore. Auxiliary query outputs are discarded. Set the
10281028
* portal's holdSnapshot to the snapshot used (or a copy of it).
10291029
*/
10301030
PortalRunMulti(portal,isTopLevel, true,

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void array_insert_slice(ArrayType *destArray, ArrayType *origArray,
139139
int*st,int*endp,
140140
inttyplen,booltypbyval,chartypalign);
141141
staticintarray_cmp(FunctionCallInfofcinfo);
142-
staticArrayType*create_array_envelope(intndims,int*dimv,int*lbv,intnbytes,
142+
staticArrayType*create_array_envelope(intndims,int*dimv,int*lbsv,intnbytes,
143143
Oidelmtype,intdataoffset);
144144
staticArrayType*array_fill_internal(ArrayType*dims,ArrayType*lbs,
145145
Datumvalue,boolisnull,Oidelmtype,

‎src/backend/utils/adt/like_match.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
/*
2828
*Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
2929
*Rich $alz is now <rsalz@bbn.com>.
30-
*Special thanks to Lars Mathiesen <thorinn@diku.dk> for the LABORT code.
30+
*Special thanks to Lars Mathiesen <thorinn@diku.dk> for the
31+
*LIKE_ABORT code.
3132
*
3233
*This code was shamelessly stolen from the "pql" code by myself and
3334
*slightly modified :)

‎src/backend/utils/mmgr/aset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ AllocSetAlloc(MemoryContext context, Size size)
915915

916916
/*
917917
* We could be asking for pretty big blocks here, so cope if malloc
918-
* fails. But give up if there's less thana meg or so available...
918+
* fails. But give up if there's less than1 MB or so available...
919919
*/
920920
while (block==NULL&&blksize>1024*1024)
921921
{

‎src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ make_template0(FILE *cmdfd)
20242024
"CREATE DATABASE template0 IS_TEMPLATE = true ALLOW_CONNECTIONS = false;\n\n",
20252025

20262026
/*
2027-
* We use the OID of template0 to determinelastsysoid
2027+
* We use the OID of template0 to determinedatlastsysoid
20282028
*/
20292029
"UPDATE pg_database SET datlastsysoid = "
20302030
" (SELECT oid FROM pg_database "

‎src/bin/pg_controldata/pg_controldata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* reads the data from $PGDATA/global/pg_control
55
*
66
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
7-
*licence: BSD
7+
*license: BSD
88
*
99
* src/bin/pg_controldata/pg_controldata.c
1010
*/

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ pgwin32_doRunAsService(void)
17251725
/*
17261726
* Mingw headers are incomplete, and so are the libraries. So we have to load
17271727
* a whole lot of API functions dynamically. Since we have to do this anyway,
1728-
* also load the couple of functions that *do* exist inminwg headers but not
1728+
* also load the couple of functions that *do* exist inmingw headers but not
17291729
* on NT4. That way, we don't break on NT4.
17301730
*/
17311731
typedefBOOL (WINAPI*__CreateRestrictedToken) (HANDLE,DWORD,DWORD,PSID_AND_ATTRIBUTES,DWORD,PLUID_AND_ATTRIBUTES,DWORD,PSID_AND_ATTRIBUTES,PHANDLE);

‎src/bin/pg_upgrade/pg_upgrade.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
#defineUSER_NAME_SIZE128
2020

2121
#defineMAX_STRING1024
22-
#defineLINE_ALLOC4096
2322
#defineQUERY_ALLOC8192
2423

25-
#defineMIGRATOR_API_VERSION1
26-
2724
#defineMESSAGE_WIDTH60
2825

2926
#defineGET_MAJOR_VERSION(v)((v) / 100)

‎src/bin/pgevent/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ src/bin/pgevent/README
33
pgevent
44
=======
55

6-
MSG000001.bin is a binary file, result of Microsoft MC compiler. MC compiler
6+
MSG00001.bin is a binary file, result of Microsoft MC compiler. MC compiler
77
can be downloaded for free with MS Core SDK but it is not included with MSYS
88
tools and I didn't find an alternative way to compile MC file.
99

‎src/common/unicode_norm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ recompose_code(uint32 start, uint32 code, uint32 *result)
178178
((start-SBASE) %TCOUNT)==0&&
179179
code >=TBASE&&code< (TBASE+TCOUNT))
180180
{
181-
/* make syllable offrom LVT */
181+
/* make syllable ofform LVT */
182182
uint32tindex=code-TBASE;
183183

184184
*result=start+tindex;

‎src/include/access/gist_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ extern bool gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
417417
OffsetNumberoldoffnum,BlockNumber*newblkno,
418418
Bufferleftchildbuf,
419419
List**splitinfo,
420-
boolmarkleftchild,
420+
boolmarkfollowright,
421421
RelationheapRel,
422422
boolis_build);
423423

‎src/include/commands/dbcommands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern OidAlterDatabase(ParseState *pstate, AlterDatabaseStmt *stmt, bool isTop
2626
externOidAlterDatabaseSet(AlterDatabaseSetStmt*stmt);
2727
externObjectAddressAlterDatabaseOwner(constchar*dbname,OidnewOwnerId);
2828

29-
externOidget_database_oid(constchar*dbname,boolmissingok);
29+
externOidget_database_oid(constchar*dbname,boolmissing_ok);
3030
externchar*get_database_name(Oiddbid);
3131

3232
externvoidcheck_encoding_locale_matches(intencoding,constchar*collate,constchar*ctype);

‎src/include/replication/logicalproto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
/*
2020
* Protocol capabilities
2121
*
22-
*LOGICAL_PROTO_VERSION_NUM is our native protocol and the greatest version
23-
* we can support.PGLOGICAL_PROTO_MIN_VERSION_NUM is the oldest version we
22+
*LOGICALREP_PROTO_VERSION_NUM is our native protocol and the greatest version
23+
* we can support.LOGICALREP_PROTO_MIN_VERSION_NUM is the oldest version we
2424
* have backwards compatibility for. The client requests protocol version at
2525
* connect time.
2626
*/
@@ -106,4 +106,4 @@ extern LogicalRepRelation *logicalrep_read_rel(StringInfo in);
106106
externvoidlogicalrep_write_typ(StringInfoout,Oidtypoid);
107107
externvoidlogicalrep_read_typ(StringInfoout,LogicalRepTyp*ltyp);
108108

109-
#endif/*LOGICALREP_PROTO_H */
109+
#endif/*LOGICAL_PROTO_H */

‎src/include/statistics/statistics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#defineSTATS_NDISTINCT_MAGIC0xA352BFA4/* struct identifier */
2323
#defineSTATS_NDISTINCT_TYPE_BASIC1/* struct version */
2424

25-
/*MVDistinctItem represents a single combination of columns */
25+
/*MVNDistinctItem represents a single combination of columns */
2626
typedefstructMVNDistinctItem
2727
{
2828
doublendistinct;/* ndistinct value for this combination */

‎src/include/storage/bufpage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ typedef PageHeaderData *PageHeader;
306306
* This is intended to catch use of the pointer before page initialization.
307307
* It is implemented as a function due to the limitations of the MSVC
308308
* compiler, which choked on doing all these tests within another macro. We
309-
* return true so thatMacroAssert() can be used while still getting the
309+
* return true so thatAssertMacro() can be used while still getting the
310310
* specifics from the macro failure within this function.
311311
*/
312312
staticinlinebool

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp