Fix inconsistencies and typos in the tree, take 11
authorMichael Paquier <michael@paquier.xyz>
Mon, 19 Aug 2019 07:21:39 +0000 (16:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 19 Aug 2019 07:21:39 +0000 (16:21 +0900)
This fixes various typos in docs and comments, and removes some orphaned
definitions.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/5da8e325-c665-da95-21e0-c8a99ea61fbf@gmail.com

48 files changed:
contrib/hstore/hstore_op.c
doc/src/sgml/func.sgml
doc/src/sgml/gist.sgml
src/backend/access/heap/tuptoaster.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/access/transam/xlogutils.c
src/backend/commands/vacuum.c
src/backend/executor/execExpr.c
src/backend/executor/nodeTidscan.c
src/backend/port/win32/crashdump.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/syslogger.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/walsender.c
src/backend/statistics/extended_stats.c
src/backend/storage/file/fd.c
src/backend/storage/lmgr/lmgr.c
src/backend/tsearch/dict_synonym.c
src/backend/tsearch/ts_parse.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/network.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/mmgr/freepage.c
src/bin/pg_basebackup/walmethods.h
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_rewind/parsexlog.c
src/bin/pg_upgrade/pg_upgrade.h
src/include/access/brin_xlog.h
src/include/access/heapam_xlog.h
src/include/access/htup_details.h
src/include/access/xlog_internal.h
src/include/commands/explain.h
src/include/fe_utils/psqlscan_int.h
src/include/miscadmin.h
src/include/replication/walreceiver.h
src/include/storage/buf_internals.h
src/interfaces/libpq/fe-protocol3.c
src/pl/tcl/pltcl.c
src/test/isolation/specs/freeze-the-dead.spec
src/test/isolation/specs/read-only-anomaly-3.spec
src/test/modules/test_rls_hooks/README
src/test/thread/thread_test.c
src/timezone/localtime.c
src/tools/msvc/ecpg_regression.proj

index 87f1aef3a34f25752e0131309b2165e2c8381a7d..a3a8a918274eb71db8905d3ca1223cb63d4c43b9 100644 (file)
@@ -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);
index f1d1005ae2f884009538c28b17520147d47575c3..a7abf8c2eee0867c8a4a436888d4006211f0830a 100644 (file)
       </row>
 
       <row>
-       <entry><literal>tcvn_to_utf8</literal></entry>
+       <entry><literal>windows_1258_to_utf8</literal></entry>
        <entry><literal>WIN1258</literal></entry>
        <entry><literal>UTF8</literal></entry>
       </row>
       </row>
 
       <row>
-       <entry><literal>utf8_to_tcvn</literal></entry>
+       <entry><literal>utf8_to_windows_1258</literal></entry>
        <entry><literal>UTF8</literal></entry>
        <entry><literal>WIN1258</literal></entry>
       </row>
index f1b46fd113995aded1f23ee128b1f2c187d5e73e..10422254c847fb98478143af5afcc90961d9566b 100644 (file)
@@ -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-&gt;spl_left or
+         * v-&gt;spl_right, and care about the counters.
          */
 
         if (my_choice_is_left(unionL, curl, unionR, curr))
index 74233bb931159b551ca242187269f327001db1bd..970e78d84994c479892e6e19d356b13b497fbb12 100644 (file)
@@ -44,8 +44,6 @@
 #include "utils/typcache.h"
 
 
-#undef TOAST_DEBUG
-
 /*
  * The information at the start of the compressed toast data.
  */
index 5b759ec7f3f6011fc13df33ab8fd78817e4c3221..b18eee42d4855899e5a13666f70f5861496b1baa 100644 (file)
@@ -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;
index 52e9643305995bd32e5fee6638392a0d2e7d1309..f594d33e7a77e89b515b2881ad2d71ffbc15b949 100644 (file)
@@ -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.
  *
index f55352385732c6b0124eff5265462f3883fe7435..e651a841bbe4eb4b605c54268ed559681423f41b 100644 (file)
@@ -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)
index b35043bf718ac8d86e1a8e3da2a526f3c73bf3ab..4795c6fa947a8a379516e8fe8a4cc8aecd975dd3 100644 (file)
@@ -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;
 }
index 10a663bae6292c8cd7664b7ed5b7f67f1f46f2f8..1fc39333f1596c9c072f67d7afa9d91b427e7cc5 100644 (file)
@@ -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
index 7d6c50b49d9301bbacdbfd280d5633a23cc91c93..e154507ecd07ee8d3bdc4718b12d75fc8ccb7ad6 100644 (file)
@@ -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
index 58e2432aac71ab6b75a25c22a27370a84ded6434..20ee1d3fb4bca33561a561dddd96c56df0c6537c 100644 (file)
@@ -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)];
index 83ece6bf563e71b6e1911fedd921b08130fe5205..8cf22d5bf00a7fc4816f1fe57a04358871067354 100644 (file)
@@ -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.
  * ----------------------------------------------------------------
  */
index e0e94f7828c6035ee5b4b558894bec6154275919..b1fe5d3430e49852e04f6df489ba9a6202bb5ee8 100644 (file)
@@ -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
index 2bb14cdd026c9d78780ce4f34581f545aa339dd4..d362e7f7d7dfb74a1bfd3de1f11a3d448d81b3ba 100644 (file)
@@ -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;
index bafd31d22bb85b3a8de268fdcc87306858fa91a4..bb2baff763119908cea5e46ad16d7c94183e1069 100644 (file)
@@ -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.
  */
index 5fa3d7323e99c41c782991a6658e57520b5311f6..409f787ac36981d573fff91d84e351f9fcd79ff1 100644 (file)
@@ -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)
index e172dad07f4a163e29d1f0091d1df99f4bc11f35..23870a25a563df71f422b778554cb7df96cfce36 100644 (file)
@@ -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;
 
index 48f17ba8d564b8902139e2c6cd09aae70f8787c4..bde13e631ca32e33fba311b5d49e6a2e30810a9b 100644 (file)
@@ -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),
index a76112d6cde1631db9167a6c601f73207ace5a7a..2de2105105221dc666071097e927589c85b041ad 100644 (file)
@@ -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
index f838b0f758a33dc95d2b726e7bb10d56f529d009..4682438114655ae3104ad4ad96943a227bf5b870 100644 (file)
@@ -792,7 +792,7 @@ SpeculativeInsertionWait(TransactionId xid, uint32 token)
 }
 
 /*
- * XactLockTableWaitErrorContextCb
+ * XactLockTableWaitErrorCb
  *     Error context callback for transaction lock waits.
  */
 static void
index b6226df94013b2ce2497088e4892567b9660ffb9..ba1582c4515a2ecc430e9c4c5388c862dc903a1c 100644 (file)
@@ -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 *
index 171ade273bf960fac3f62f9c6e4b934bce6009ac..fb86ea2e08eff68577420c626b8e73552875356d 100644 (file)
@@ -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;
index ec8fbb9a7da6bccf2fcaa074c8290f00c9414f11..8079b13ba50fdd861b5b65ec15e672b48161300e 100644 (file)
@@ -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.
  *
index 3d536a16629a1d3717c617c553a6c7efa5e0d07c..a6dd8b75aa279520f8af446349c028af1b098266 100644 (file)
@@ -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:
  *
index 15fda7f122561dc7a5559c4edc7ce792130fdd8c..b2f08ead45492e855030f96ac413d8a13c95b207 100644 (file)
@@ -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 */
index 9a1ae13ab1daa92745470298e55331075cdd9920..ba3bc20ef1784d3e0efbedab8075a843a3531a08 100644 (file)
@@ -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)
index 94d0f6bc9114b39e81a36f5135fc566ae4e6c214..eb5bef8c3ccb11a39f5621b7259b2227f4bab2b9 100644 (file)
@@ -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)
  */
index 0e547e83be8000a0a30ded3e375fc2c334facce2..dead8fc580345315c2586e2fa93ccfc4f555293e 100644 (file)
@@ -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;
index be25e94cb2007bdefe5ebf700ed6b3870002c891..34981401bfc6b4c9ba0ffde5f82bc578143101f5 100644 (file)
@@ -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.
     *
index f0439edce3886af6ffe526656dedc8610d1d3aef..63c3879ead81fb47489419331ee2b26053972c82 100644 (file)
@@ -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,
index b3bbb903fc69c06fba8e7c2ba838cb2adc88e016..f724ecf9caddb28e08982a29636d7b8fa13332c8 100644 (file)
@@ -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
 
index f0ed33659b1ab66e7bda4e4ea68778dc1d3066f6..5583ea7154394668327ad41cfcd043f6cd0c747a 100644 (file)
@@ -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
  *
index 9629db9df4e9577af57628386174e70c2f937913..d72d4e1b8e1e8bc642fe68ce35a2dd83774da3b0 100644 (file)
@@ -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
 {
index 27f963e9e8dea4105a2c8acab93f5924dc37443a..66d61fd570008a819b5df3ff47ed8728c6335d4b 100644 (file)
@@ -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
index b986a385756fd10a2eccb0bfe6193eccd34a9566..3f0de6625d784bdd744556a774eb7c622f3dd74d 100644 (file)
@@ -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.
     */
index f8b79ec120eb44b2466873b28aa0794864db9308..8639891c1643fff047584b5bda5251c81b40dd9c 100644 (file)
@@ -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);
 
index 2acb380078df42430a2701753814af5edfc8cb97..c538ece19757645ed4add8a30774e2145e28d75a 100644 (file)
@@ -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
index 61a24c2e3c67722a6eea5eca570b6c9ad6e40a08..bc6e03fbc7e89e4f8606fd728751c34b47c6f734 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <signal.h>
 
-#include "datatype/timestamp.h" /* for TimestampTZ */
+#include "datatype/timestamp.h" /* for TimestampTz */
 #include "pgtime.h"                /* for pg_time_t */
 
 
index bc9468b519e70a2e89b9a67c583b839f89cf9b49..e12a9349660c3e7598e7d4261f729d85fda8dab6 100644 (file)
@@ -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
index df2dda7e7e73e3454f9fad89ed6087348fb5f5a1..6ffe184476d8ac58e79658e62e85055d0db8d78b 100644 (file)
@@ -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 */
index bbba48bc8b6269473f5f198d851828159b519731..b04f7ec123b3aade8d893cbe1a4488faea6c3fea 100644 (file)
@@ -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)
                    {
index b318854d6c266b63441b72cfabf628156d37f31b..8277d1ea8576a69efcb3f9561ec3dc7978735d1f 100644 (file)
@@ -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)
    {
index e24d7d5d116b2e96672dd44962ff8d665912a345..8c3649902af388f845ebaeb59f2555f87e287daf 100644 (file)
@@ -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
index 58a159a9495226cdc1dcbceb46c55893117e07c4..d43fc2e03f2efe6a3983c82e3ad45687729eb674 100644 (file)
@@ -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
index b61dace572fdfe86c6e4da3555c2f5ea2cd6c80d..c22e0d3fb430638a60510ef85f7a5a1d8d929d3e 100644 (file)
@@ -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
index 5392439146f89ad1215c92da6024f039231b1edc..4fbba78ef6f77ef22c97fa8c79ec1f2e09709522 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
  *
- * test_thread_funcs.c
+ * thread_test.c
  *     libc thread test program
  *
  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
index 1d9244bc0a5da30414979d5323233c25affc5eb5..333f27300aa4f1b7b65f4ff285850a2272e8b62d 100644 (file)
@@ -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
index 9fa4a6902162a1dbc154a7e6775fc463e659f424..ec2760b1f6d16510dca2a6ac9b5677e7d13a613c 100644 (file)
@@ -54,7 +54,7 @@
 
   <!-- Run ECPG and the Visual C++ compiler on the files. Don't bother with dependency check between the steps -->
   <Exec WorkingDirectory="%(Pgc.RelativeDir)" Command="$(OUTDIR)ecpg\ecpg -I ../../include --regression $(ECPGPARAM) -o %(Pgc.Filename).c %(Pgc.Filename).pgc" />
-  <Exec WorkingDirectorY="%(Pgc.RelativeDir)" Command="cl /nologo %(Pgc.FileName).c /TC /MD$(DEBUGLIB) /DENABLE_THREAD_SAFETY /DWIN32 /I. /I..\..\include /I..\..\..\libpq /I..\..\..\..\include /link /defaultlib:$(OUTDIR)libecpg\libecpg.lib /defaultlib:$(OUTDIR)libecpg_compat\libecpg_compat.lib /defaultlib:$(OUTDIR)libpgtypes\libpgtypes.lib" />
+  <Exec WorkingDirectory="%(Pgc.RelativeDir)" Command="cl /nologo %(Pgc.FileName).c /TC /MD$(DEBUGLIB) /DENABLE_THREAD_SAFETY /DWIN32 /I. /I..\..\include /I..\..\..\libpq /I..\..\..\..\include /link /defaultlib:$(OUTDIR)libecpg\libecpg.lib /defaultlib:$(OUTDIR)libecpg_compat\libecpg_compat.lib /defaultlib:$(OUTDIR)libpgtypes\libpgtypes.lib" />
  </Target>
 
  <!-- Clean up all output files -->