diff --git a/contrib/hstore/hstore_op.c b/contrib/hstore/hstore_op.c index 87f1aef3a34..a3a8a918274 100644 --- a/contrib/hstore/hstore_op.c +++ b/contrib/hstore/hstore_op.c @@ -682,8 +682,8 @@ hstore_slice_to_hstore(PG_FUNCTION_ARGS) } /* - * we don't use uniquePairs here because we know that the pairs list is - * already sorted and uniq'ed. + * we don't use hstoreUniquePairs here because we know that the pairs list + * is already sorted and uniq'ed. */ out = hstorePairs(out_pairs, out_count, bufsiz); diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f1d1005ae2f..a7abf8c2eee 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -2875,7 +2875,7 @@ - tcvn_to_utf8 + windows_1258_to_utf8 WIN1258 UTF8 @@ -3037,7 +3037,7 @@ - utf8_to_tcvn + utf8_to_windows_1258 UTF8 WIN1258 diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml index f1b46fd1139..10422254c84 100644 --- a/doc/src/sgml/gist.sgml +++ b/doc/src/sgml/gist.sgml @@ -697,8 +697,8 @@ my_picksplit(PG_FUNCTION_ARGS) /* * Choose where to put the index entries and update unionL and unionR - * accordingly. Append the entries to either v_spl_left or - * v_spl_right, and care about the counters. + * accordingly. Append the entries to either v->spl_left or + * v->spl_right, and care about the counters. */ if (my_choice_is_left(unionL, curl, unionR, curr)) diff --git a/src/backend/access/heap/tuptoaster.c b/src/backend/access/heap/tuptoaster.c index 74233bb9311..970e78d8499 100644 --- a/src/backend/access/heap/tuptoaster.c +++ b/src/backend/access/heap/tuptoaster.c @@ -44,8 +44,6 @@ #include "utils/typcache.h" -#undef TOAST_DEBUG - /* * The information at the start of the compressed toast data. */ diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index 5b759ec7f3f..b18eee42d48 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -488,7 +488,7 @@ ForceTransactionIdLimitUpdate(void) if (!TransactionIdIsValid(xidVacLimit)) return true; /* this shouldn't happen anymore either */ if (TransactionIdFollowsOrEquals(nextXid, xidVacLimit)) - return true; /* past VacLimit, don't delay updating */ + return true; /* past xidVacLimit, don't delay updating */ if (!SearchSysCacheExists1(DATABASEOID, ObjectIdGetDatum(oldestXidDB))) return true; /* could happen, per comments above */ return false; diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 52e96433059..f594d33e7a7 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -92,8 +92,8 @@ int synchronous_commit = SYNCHRONOUS_COMMIT_ON; * in the user backend, so we need some additional bookkeeping. * * XactTopFullTransactionId stores the XID of our toplevel transaction, which - * will be the same as TopTransactionState.fullTransactionId in an ordinary - * backend; but in a parallel backend, which does not have the entire + * will be the same as TopTransactionStateData.fullTransactionId in an + * ordinary backend; but in a parallel backend, which does not have the entire * transaction state, it will instead be copied from the backend that started * the parallel operation. * diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f5535238573..e651a841bbe 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -626,7 +626,7 @@ typedef struct XLogCtlData /* * These values do not change after startup, although the pointed-to pages - * and xlblocks values certainly do. xlblock values are protected by + * and xlblocks values certainly do. xlblocks values are protected by * WALBufMappingLock. */ char *pages; /* buffers for unwritten XLOG pages */ @@ -743,7 +743,7 @@ static ControlFileData *ControlFile = NULL; */ #define UsableBytesInPage (XLOG_BLCKSZ - SizeOfXLogShortPHD) -/* Convert min_wal_size_mb and max wal_size_mb to equivalent segment count */ +/* Convert min_wal_size_mb and max_wal_size_mb to equivalent segment count */ #define ConvertToXSegs(x, segsize) \ (x / ((segsize) / (1024 * 1024))) @@ -903,7 +903,7 @@ static XLogRecord *ReadRecord(XLogReaderState *xlogreader, XLogRecPtr RecPtr, int emode, bool fetching_ckpt); static void CheckRecoveryConsistency(void); static XLogRecord *ReadCheckpointRecord(XLogReaderState *xlogreader, - XLogRecPtr RecPtr, int whichChkpti, bool report); + XLogRecPtr RecPtr, int whichChkpt, bool report); static bool rescanLatestTimeLine(void); static void WriteControlFile(void); static void ReadControlFile(void); @@ -3049,9 +3049,9 @@ XLogBackgroundFlush(void) else if (TimestampDifferenceExceeds(lastflush, now, WalWriterDelay)) { /* - * Flush the writes at least every WalWriteDelay ms. This is important - * to bound the amount of time it takes for an asynchronous commit to - * hit disk. + * Flush the writes at least every WalWriterDelay ms. This is + * important to bound the amount of time it takes for an asynchronous + * commit to hit disk. */ WriteRqst.Flush = WriteRqst.Write; lastflush = now; @@ -8442,7 +8442,7 @@ LogCheckpointEnd(bool restartpoint) * Update the estimate of distance between checkpoints. * * The estimate is used to calculate the number of WAL segments to keep - * preallocated, see XLOGFileSlop(). + * preallocated, see XLOGfileslop(). */ static void UpdateCheckPointDistanceEstimate(uint64 nbytes) diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index b35043bf718..4795c6fa947 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -267,7 +267,7 @@ pg_stop_backup_v2(PG_FUNCTION_ARGS) values[0] = LSNGetDatum(stoppoint); tuplestore_putvalues(tupstore, tupdesc, values, nulls); - tuplestore_donestoring(typstore); + tuplestore_donestoring(tupstore); return (Datum) 0; } diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index 10a663bae62..1fc39333f15 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -523,7 +523,7 @@ XLogReadBufferExtended(RelFileNode rnode, ForkNumber forknum, } /* - * Struct actually returned by XLogFakeRelcacheEntry, though the declared + * Struct actually returned by CreateFakeRelcacheEntry, though the declared * return type is Relation. */ typedef struct diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index 7d6c50b49d9..e154507ecd0 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -863,7 +863,7 @@ get_all_vacuum_rels(int options) * DEAD or RECENTLY_DEAD (see HeapTupleSatisfiesVacuum). * - freezeLimit is the Xid below which all Xids are replaced by * FrozenTransactionId during vacuum. - * - xidFullScanLimit (computed from table_freeze_age parameter) + * - xidFullScanLimit (computed from freeze_table_age parameter) * represents a minimum Xid value; a table whose relfrozenxid is older than * this will have a full-table vacuum applied to it, to freeze tuples across * the whole table. Vacuuming a table younger than this value can use a diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c index 58e2432aac7..20ee1d3fb4b 100644 --- a/src/backend/executor/execExpr.c +++ b/src/backend/executor/execExpr.c @@ -1776,7 +1776,7 @@ ExecInitExprRec(Expr *node, ExprState *state, scratch.d.rowcompare_final.rctype = rcexpr->rctype; ExprEvalPushStep(state, &scratch); - /* adjust jump targetss */ + /* adjust jump targets */ foreach(lc, adjust_jumps) { ExprEvalStep *as = &state->steps[lfirst_int(lc)]; diff --git a/src/backend/executor/nodeTidscan.c b/src/backend/executor/nodeTidscan.c index 83ece6bf563..8cf22d5bf00 100644 --- a/src/backend/executor/nodeTidscan.c +++ b/src/backend/executor/nodeTidscan.c @@ -432,7 +432,7 @@ TidRecheck(TidScanState *node, TupleTableSlot *slot) * Initial States: * -- the relation indicated is opened for scanning so that the * "cursor" is positioned before the first qualifying tuple. - * -- tidPtr is -1. + * -- tss_TidPtr is -1. * ---------------------------------------------------------------- */ static TupleTableSlot * @@ -498,7 +498,7 @@ ExecEndTidScan(TidScanState *node) * scan keys, and opens the base and tid relations. * * Parameters: - * node: TidNode node produced by the planner. + * node: TidScan node produced by the planner. * estate: the execution state initialized in InitPlan. * ---------------------------------------------------------------- */ diff --git a/src/backend/port/win32/crashdump.c b/src/backend/port/win32/crashdump.c index e0e94f7828c..b1fe5d3430e 100644 --- a/src/backend/port/win32/crashdump.c +++ b/src/backend/port/win32/crashdump.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- * - * win32_crashdump.c + * crashdump.c * Automatic crash dump creation for PostgreSQL on Windows * * The crashdump feature traps unhandled win32 exceptions produced by the diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 2bb14cdd026..d362e7f7d7d 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -893,7 +893,7 @@ pgstat_report_stat(bool force) this_msg->m_nentries = 0; } } - /* zero out TableStatus structs after use */ + /* zero out PgStat_TableStatus structs after use */ MemSet(tsa->tsa_entries, 0, tsa->tsa_used * sizeof(PgStat_TableStatus)); tsa->tsa_used = 0; diff --git a/src/backend/postmaster/syslogger.c b/src/backend/postmaster/syslogger.c index bafd31d22bb..bb2baff7631 100644 --- a/src/backend/postmaster/syslogger.c +++ b/src/backend/postmaster/syslogger.c @@ -1114,7 +1114,7 @@ write_syslogger_file(const char *buffer, int count, int destination) /* * Worker thread to transfer data from the pipe to the current logfile. * - * We need this because on Windows, WaitforMultipleObjects does not work on + * We need this because on Windows, WaitForMultipleObjects does not work on * unnamed pipes: it always reports "signaled", so the blocking ReadFile won't * allow for SIGHUP; and select is for sockets only. */ diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c index 5fa3d7323e9..409f787ac36 100644 --- a/src/backend/replication/logical/reorderbuffer.c +++ b/src/backend/replication/logical/reorderbuffer.c @@ -3368,7 +3368,7 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname) /* - * Check whether the TransactionOid 'xid' is in the pre-sorted array 'xip'. + * Check whether the TransactionId 'xid' is in the pre-sorted array 'xip'. */ static bool TransactionIdInArray(TransactionId xid, TransactionId *xip, Size num) diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index e172dad07f4..23870a25a56 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -866,7 +866,7 @@ CreateReplicationSlot(CreateReplicationSlotCmd *cmd) parseCreateReplSlotOptions(cmd, &reserve_wal, &snapshot_action); - /* setup state for XLogReadPage */ + /* setup state for XLogRead */ sendTimeLineIsHistoric = false; sendTimeLine = ThisTimeLineID; diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c index 48f17ba8d56..bde13e631ca 100644 --- a/src/backend/statistics/extended_stats.c +++ b/src/backend/statistics/extended_stats.c @@ -1189,7 +1189,7 @@ statext_clauselist_selectivity(PlannerInfo *root, List *clauses, int varRelid, } /* - * examine_operator_expression + * examine_opclause_expression * Split expression into Var and Const parts. * * Attempts to match the arguments to either (Var op Const) or (Const op Var), diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index a76112d6cde..2de21051052 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -269,7 +269,7 @@ static int nextTempTableSpace = 0; * LruInsert - put a file at the front of the Lru ring and open it * ReleaseLruFile - Release an fd by closing the last entry in the Lru ring * ReleaseLruFiles - Release fd(s) until we're under the max_safe_fds limit - * AllocateVfd - grab a free (or new) file record (from VfdArray) + * AllocateVfd - grab a free (or new) file record (from VfdCache) * FreeVfd - free a file record * * The Least Recently Used ring is a doubly linked list that begins and diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index f838b0f758a..46824381146 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -792,7 +792,7 @@ SpeculativeInsertionWait(TransactionId xid, uint32 token) } /* - * XactLockTableWaitErrorContextCb + * XactLockTableWaitErrorCb * Error context callback for transaction lock waits. */ static void diff --git a/src/backend/tsearch/dict_synonym.c b/src/backend/tsearch/dict_synonym.c index b6226df9401..ba1582c4515 100644 --- a/src/backend/tsearch/dict_synonym.c +++ b/src/backend/tsearch/dict_synonym.c @@ -37,7 +37,7 @@ typedef struct * Finds the next whitespace-delimited word within the 'in' string. * Returns a pointer to the first character of the word, and a pointer * to the next byte after the last character in the word (in *end). - * Character '*' at the end of word will not be threated as word + * Character '*' at the end of word will not be treated as word * character if flags is not null. */ static char * diff --git a/src/backend/tsearch/ts_parse.c b/src/backend/tsearch/ts_parse.c index 171ade273bf..fb86ea2e08e 100644 --- a/src/backend/tsearch/ts_parse.c +++ b/src/backend/tsearch/ts_parse.c @@ -282,7 +282,7 @@ LexizeExec(LexizeData *ld, ParsedLex **correspondLexem) if (!dictExists) { /* - * Dictionary can't work with current tpe of lexeme, + * Dictionary can't work with current type of lexeme, * return to basic mode and redo all stored lexemes */ ld->curDictId = InvalidOid; diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index ec8fbb9a7da..8079b13ba50 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -1997,7 +1997,7 @@ array_get_element_expanded(Datum arraydatum, /* * array_get_slice : - * This routine takes an array and a range of indices (upperIndex and + * This routine takes an array and a range of indices (upperIndx and * lowerIndx), creates a new array structure for the referred elements * and returns a pointer to it. * diff --git a/src/backend/utils/adt/network.c b/src/backend/utils/adt/network.c index 3d536a16629..a6dd8b75aa2 100644 --- a/src/backend/utils/adt/network.c +++ b/src/backend/utils/adt/network.c @@ -579,7 +579,7 @@ network_abbrev_abort(int memtupcount, SortSupport ssup) * IPv4 addresses have a maximum of 32 bits compared to IPv6's 64 bits, so in * IPv6 each part may be larger. * - * inet/cdir types compare using these sorting rules. If inequality is detected + * inet/cidr types compare using these sorting rules. If inequality is detected * at any step, comparison is finished. If any rule is a tie, the algorithm * drops through to the next to break it: * diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 15fda7f1225..b2f08ead454 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -1916,7 +1916,7 @@ char2wchar(wchar_t *to, size_t tolen, const char *from, size_t fromlen, * error message by letting pg_verifymbstr check the string. But it's * possible that the string is OK to us, and not OK to mbstowcs --- * this suggests that the LC_CTYPE locale is different from the - * database encoding. Give a generic error message if verifymbstr + * database encoding. Give a generic error message if pg_verifymbstr * can't find anything wrong. */ pg_verifymbstr(from, fromlen, false); /* might not return */ diff --git a/src/backend/utils/mmgr/freepage.c b/src/backend/utils/mmgr/freepage.c index 9a1ae13ab1d..ba3bc20ef17 100644 --- a/src/backend/utils/mmgr/freepage.c +++ b/src/backend/utils/mmgr/freepage.c @@ -742,8 +742,8 @@ FreePageBtreeConsolidate(FreePageManager *fpm, FreePageBtree *btp) /* * If we can fit our keys onto our left sibling's page, consolidate. In - * this case, we move our keys onto the other page rather than visca - * versa, to avoid having to adjust ancestor keys. + * this case, we move our keys onto the other page rather than vice versa, + * to avoid having to adjust ancestor keys. */ np = FreePageBtreeFindLeftSibling(base, btp); if (np != NULL && btp->hdr.nused + np->hdr.nused <= max) diff --git a/src/bin/pg_basebackup/walmethods.h b/src/bin/pg_basebackup/walmethods.h index 94d0f6bc911..eb5bef8c3cc 100644 --- a/src/bin/pg_basebackup/walmethods.h +++ b/src/bin/pg_basebackup/walmethods.h @@ -81,7 +81,7 @@ struct WalWriteMethod /* * Available WAL methods: * - WalDirectoryMethod - write WAL to regular files in a standard pg_wal - * - TarDirectoryMethod - write WAL to a tarfile corresponding to pg_wal + * - WalTarMethod - write WAL to a tarfile corresponding to pg_wal * (only implements the methods required for pg_basebackup, * not all those required for pg_receivewal) */ diff --git a/src/bin/pg_dump/pg_backup_tar.c b/src/bin/pg_dump/pg_backup_tar.c index 0e547e83be8..dead8fc5803 100644 --- a/src/bin/pg_dump/pg_backup_tar.c +++ b/src/bin/pg_dump/pg_backup_tar.c @@ -568,7 +568,7 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh) } } else - fatal("internal error -- neither th nor fh specified in tarReadRaw()"); + fatal("internal error -- neither th nor fh specified in _tarReadRaw()"); } ctx->tarFHpos += res + used; diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index be25e94cb20..34981401bfc 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -17834,7 +17834,7 @@ processExtensionTables(Archive *fout, ExtensionInfo extinfo[], } /* - * Now that all the TableInfoData objects have been created for all the + * Now that all the TableDataInfo objects have been created for all the * extensions, check their FK dependencies and register them to try and * dump the data out in an order that they can be restored in. * diff --git a/src/bin/pg_rewind/parsexlog.c b/src/bin/pg_rewind/parsexlog.c index f0439edce38..63c3879ead8 100644 --- a/src/bin/pg_rewind/parsexlog.c +++ b/src/bin/pg_rewind/parsexlog.c @@ -234,7 +234,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, int tliIndex, } } -/* XLogreader callback function, to read a WAL page */ +/* XLogReader callback function, to read a WAL page */ static int SimpleXLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr, int reqLen, XLogRecPtr targetRecPtr, char *readBuf, diff --git a/src/bin/pg_upgrade/pg_upgrade.h b/src/bin/pg_upgrade/pg_upgrade.h index b3bbb903fc6..f724ecf9cad 100644 --- a/src/bin/pg_upgrade/pg_upgrade.h +++ b/src/bin/pg_upgrade/pg_upgrade.h @@ -15,9 +15,6 @@ /* Use port in the private/dynamic port number range */ #define DEF_PGUPORT 50432 -/* Allocate for null byte */ -#define USER_NAME_SIZE 128 - #define MAX_STRING 1024 #define QUERY_ALLOC 8192 diff --git a/src/include/access/brin_xlog.h b/src/include/access/brin_xlog.h index f0ed33659b1..5583ea71543 100644 --- a/src/include/access/brin_xlog.h +++ b/src/include/access/brin_xlog.h @@ -77,7 +77,7 @@ typedef struct xl_brin_insert * A cross-page update is the same as an insert, but also stores information * about the old tuple. * - * Like in xlog_brin_update: + * Like in xl_brin_insert: * Backup block 0: new page, block data includes the new BrinTuple. * Backup block 1: revmap page * diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index 9629db9df4e..d72d4e1b8e1 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -168,7 +168,7 @@ typedef struct xl_heap_insert * * In block 0's data portion, there is an xl_multi_insert_tuple struct, * followed by the tuple data for each tuple. There is padding to align - * each xl_multi_insert struct. + * each xl_multi_insert_tuple struct. */ typedef struct xl_heap_multi_insert { diff --git a/src/include/access/htup_details.h b/src/include/access/htup_details.h index 27f963e9e8d..66d61fd5700 100644 --- a/src/include/access/htup_details.h +++ b/src/include/access/htup_details.h @@ -233,7 +233,7 @@ struct HeapTupleHeaderData /* * A tuple that has HEAP_XMAX_IS_MULTI and HEAP_XMAX_LOCK_ONLY but neither of - * XMAX_EXCL_LOCK and XMAX_KEYSHR_LOCK must come from a tuple that was + * HEAP_XMAX_EXCL_LOCK and HEAP_XMAX_KEYSHR_LOCK must come from a tuple that was * share-locked in 9.2 or earlier and then pg_upgrade'd. * * In 9.2 and prior, HEAP_XMAX_IS_MULTI was only set when there were multiple diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index b986a385756..3f0de6625d7 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -45,7 +45,7 @@ typedef struct XLogPageHeaderData * continue on the next page. xlp_rem_len is the number of bytes * remaining from a previous page. * - * Note that xl_rem_len includes backup-block data; that is, it tracks + * Note that xlp_rem_len includes backup-block data; that is, it tracks * xl_tot_len not xl_len in the initial header. Also note that the * continuation data isn't necessarily aligned. */ diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h index f8b79ec120e..8639891c164 100644 --- a/src/include/commands/explain.h +++ b/src/include/commands/explain.h @@ -84,7 +84,7 @@ extern void ExplainPrintTriggers(ExplainState *es, QueryDesc *queryDesc); extern void ExplainPrintJITSummary(ExplainState *es, QueryDesc *queryDesc); extern void ExplainPrintJIT(ExplainState *es, int jit_flags, - struct JitInstrumentation *jit_instr, int worker_i); + struct JitInstrumentation *jit_instr, int worker_num); extern void ExplainQueryText(ExplainState *es, QueryDesc *queryDesc); diff --git a/src/include/fe_utils/psqlscan_int.h b/src/include/fe_utils/psqlscan_int.h index 2acb380078d..c538ece1975 100644 --- a/src/include/fe_utils/psqlscan_int.h +++ b/src/include/fe_utils/psqlscan_int.h @@ -27,7 +27,7 @@ * is the start state number, which is easy enough to manage --- usually, * in fact, we just need to set it to INITIAL when changing lexers. But to * make that work at all, we must use re-entrant lexers, so that all the - * relevant state is in the yyscanner_t attached to the PsqlScanState; + * relevant state is in the yyscan_t attached to the PsqlScanState; * if we were using lexers with separate static state we would soon end up * with dangling buffer pointers in one or the other. Also note that this * is unlikely to work very nicely if the lexers aren't all built with the diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 61a24c2e3c6..bc6e03fbc7e 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -25,7 +25,7 @@ #include -#include "datatype/timestamp.h" /* for TimestampTZ */ +#include "datatype/timestamp.h" /* for TimestampTz */ #include "pgtime.h" /* for pg_time_t */ diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index bc9468b519e..e12a9349660 100644 --- a/src/include/replication/walreceiver.h +++ b/src/include/replication/walreceiver.h @@ -187,7 +187,7 @@ typedef enum } WalRcvExecStatus; /* - * Return value for walrcv_query, returns the status of the execution and + * Return value for walrcv_exec, returns the status of the execution and * tuples if any. */ typedef struct WalRcvExecResult diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index df2dda7e7e7..6ffe184476d 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -52,7 +52,7 @@ /* * Flags for buffer descriptors * - * Note: TAG_VALID essentially means that there is a buffer hashtable + * Note: BM_TAG_VALID essentially means that there is a buffer hashtable * entry associated with the buffer's tag. */ #define BM_LOCKED (1U << 22) /* buffer header is locked */ diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index bbba48bc8b6..b04f7ec123b 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -317,8 +317,8 @@ pqParseInput3(PGconn *conn) * * If we're doing a Describe, we have to pass something * back to the client, so set up a COMMAND_OK result, - * instead of TUPLES_OK. Otherwise we can just ignore - * this message. + * instead of PGRES_TUPLES_OK. Otherwise we can just + * ignore this message. */ if (conn->queryclass == PGQUERY_DESCRIBE) { diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c index b318854d6c2..8277d1ea857 100644 --- a/src/pl/tcl/pltcl.c +++ b/src/pl/tcl/pltcl.c @@ -3027,7 +3027,7 @@ pltcl_set_tuple_values(Tcl_Interp *interp, const char *arrayname, const char *nullname = NULL; /************************************************************ - * Prepare pointers for Tcl_SetVar2() below + * Prepare pointers for Tcl_SetVar2Ex() below ************************************************************/ if (arrayname == NULL) { diff --git a/src/test/isolation/specs/freeze-the-dead.spec b/src/test/isolation/specs/freeze-the-dead.spec index e24d7d5d116..8c3649902af 100644 --- a/src/test/isolation/specs/freeze-the-dead.spec +++ b/src/test/isolation/specs/freeze-the-dead.spec @@ -42,7 +42,7 @@ step "s3_key_share" { SELECT id FROM tab_freeze WHERE id = 3 FOR KEY SHARE; } step "s3_commit" { COMMIT; } step "s3_vacuum" { VACUUM FREEZE tab_freeze; } -# This permutation verfies that a previous bug +# This permutation verifies that a previous bug # https://postgr.es/m/E5711E62-8FDF-4DCA-A888-C200BF6B5742@amazon.com # https://postgr.es/m/20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de # is not reintroduced. We used to make wrong pruning / freezing diff --git a/src/test/isolation/specs/read-only-anomaly-3.spec b/src/test/isolation/specs/read-only-anomaly-3.spec index 58a159a9495..d43fc2e03f2 100644 --- a/src/test/isolation/specs/read-only-anomaly-3.spec +++ b/src/test/isolation/specs/read-only-anomaly-3.spec @@ -2,7 +2,7 @@ # isolation"[1]. # # Here we test that serializable snapshot isolation can avoid the anomaly -# without aborting any tranasctions, by instead causing s3 to be deferred +# without aborting any transactions, by instead causing s3 to be deferred # until a safe snapshot can be taken. # # [1] http://www.cs.umb.edu/~poneil/ROAnom.pdf diff --git a/src/test/modules/test_rls_hooks/README b/src/test/modules/test_rls_hooks/README index b61dace572f..c22e0d3fb43 100644 --- a/src/test/modules/test_rls_hooks/README +++ b/src/test/modules/test_rls_hooks/README @@ -3,13 +3,13 @@ define additional policies to be used. Functions ========= -test_rls_hook_permissive(CmdType cmdtype, Relation relation) +test_rls_hooks_permissive(CmdType cmdtype, Relation relation) RETURNS List* Returns a list of policies which should be added to any existing policies on the relation, combined with OR. -test_rls_hook_restrictive(CmdType cmdtype, Relation relation) +test_rls_hooks_restrictive(CmdType cmdtype, Relation relation) RETURNS List* Returns a list of policies which should be added to any existing diff --git a/src/test/thread/thread_test.c b/src/test/thread/thread_test.c index 5392439146f..4fbba78ef6f 100644 --- a/src/test/thread/thread_test.c +++ b/src/test/thread/thread_test.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- * - * test_thread_funcs.c + * thread_test.c * libc thread test program * * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c index 1d9244bc0a5..333f27300aa 100644 --- a/src/timezone/localtime.c +++ b/src/timezone/localtime.c @@ -36,7 +36,7 @@ * in which Daylight Saving Time is never observed. * 4. They might reference tzname[0] after setting to a time zone * in which Standard Time is never observed. - * 5. They might reference tm.TM_ZONE after calling offtime. + * 5. They might reference tm.tm_zone after calling offtime. * What's best to do in the above cases is open to debate; * for now, we just set things up so that in any of the five cases * WILDABBR is used. Another possibility: initialize tzname[0] to the diff --git a/src/tools/msvc/ecpg_regression.proj b/src/tools/msvc/ecpg_regression.proj index 9fa4a690216..ec2760b1f6d 100644 --- a/src/tools/msvc/ecpg_regression.proj +++ b/src/tools/msvc/ecpg_regression.proj @@ -54,7 +54,7 @@ - +