]> granicus.if.org Git - postgresql/commitdiff
Fix more typos and inconsistencies in the tree
authorMichael Paquier <michael@paquier.xyz>
Mon, 17 Jun 2019 07:13:16 +0000 (16:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 17 Jun 2019 07:13:16 +0000 (16:13 +0900)
Author: Alexander Lakhin
Discussion: https://postgr.es/m/0a5419ea-1452-a4e6-72ff-545b1a5a8076@gmail.com

41 files changed:
contrib/jsonb_plpython/jsonb_plpython.c
contrib/pg_prewarm/autoprewarm.c
contrib/pg_trgm/trgm_op.c
src/backend/access/common/session.c
src/backend/access/hash/hash.c
src/backend/access/transam/xact.c
src/backend/catalog/index.c
src/backend/catalog/partition.c
src/backend/commands/copy.c
src/backend/commands/functioncmds.c
src/backend/executor/execMain.c
src/backend/executor/execUtils.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeProjectSet.c
src/backend/jit/llvm/Makefile
src/backend/lib/integerset.c
src/backend/libpq/pqformat.c
src/backend/replication/walsender.c
src/backend/statistics/mcv.c
src/backend/storage/file/fd.c
src/backend/storage/file/sharedfileset.c
src/backend/storage/ipc/barrier.c
src/backend/storage/ipc/shm_mq.c
src/backend/utils/Gen_fmgrtab.pl
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/sort/sharedtuplestore.c
src/bin/pg_dump/common.c
src/include/access/xlogdefs.h
src/include/catalog/partition.h
src/include/catalog/pg_foreign_data_wrapper.h
src/include/executor/tuptable.h
src/include/optimizer/placeholder.h
src/include/partitioning/partprune.h
src/include/port/pg_bitutils.h
src/include/utils/jsonapi.h
src/include/utils/sharedtuplestore.h
src/pl/plperl/plperl.h
src/port/pwrite.c
src/test/isolation/specs/partition-key-update-4.spec
src/test/modules/test_integerset/README
src/tools/msvc/config_default.pl

index ea8fd5b3e68d3a9dcbda92352b6ef2525ca62fe0..776cf7c8b9bb180544c3a3c1498488f44f690cd0 100644 (file)
@@ -133,7 +133,7 @@ PLyObject_FromJsonbValue(JsonbValue *jsonbValue)
 }
 
 /*
- * PLyObject_FromJsonb
+ * PLyObject_FromJsonbContainer
  *
  * Transform JsonbContainer to PyObject.
  */
index 5378ff0141d08045fe09ffee1fa0b5dc4a666734..38ae240c551b6a218018bfb85c105671049dbc9a 100644 (file)
@@ -356,7 +356,7 @@ apw_load_buffers(void)
                Oid                     current_db = blkinfo[j].database;
 
                /*
-                * Advance the prewarm_stop_idx to the first BlockRecordInfo that does
+                * Advance the prewarm_stop_idx to the first BlockInfoRecord that does
                 * not belong to this database.
                 */
                j++;
@@ -365,7 +365,7 @@ apw_load_buffers(void)
                        if (current_db != blkinfo[j].database)
                        {
                                /*
-                                * Combine BlockRecordInfos for global objects with those of
+                                * Combine BlockInfoRecords for global objects with those of
                                 * the database.
                                 */
                                if (current_db != InvalidOid)
@@ -378,7 +378,7 @@ apw_load_buffers(void)
 
                /*
                 * If we reach this point with current_db == InvalidOid, then only
-                * BlockRecordInfos belonging to global objects exist.  We can't
+                * BlockInfoRecords belonging to global objects exist.  We can't
                 * prewarm without a database connection, so just bail out.
                 */
                if (current_db == InvalidOid)
index 589dbb87ad5f152918792dca93f4615242aafafe..0d4614e9c8a72d16eeeb271888a933dbf5da1670 100644 (file)
@@ -500,7 +500,7 @@ iterate_word_similarity(int *trg2indexes,
                word_similarity_threshold;
 
        /*
-        * Consider first trigram as initial lower bount for strict word
+        * Consider first trigram as initial lower bound for strict word
         * similarity, or initialize it later with first trigram present for plain
         * word similarity.
         */
index d3e73d223b11445577bd7e8348b499eeaf9e989e..8bcb90b9c6db5471f5abe0139127610b199e784b 100644 (file)
@@ -133,7 +133,7 @@ GetSessionDsmHandle(void)
         * If we got this far, we can pin the shared memory so it stays mapped for
         * the rest of this backend's life.  If we don't make it this far, cleanup
         * callbacks for anything we installed above (ie currently
-        * SharedRecordTypemodRegistry) will run when the DSM segment is detached
+        * SharedRecordTypmodRegistry) will run when the DSM segment is detached
         * by CurrentResourceOwner so we aren't left with a broken CurrentSession.
         */
        dsm_pin_mapping(seg);
index e9f2c84af1af59f27266f7aaefe254e79e5a1b93..5cc30dac429ed2f10f6fc10cc09860ee0bacf558 100644 (file)
@@ -340,7 +340,7 @@ hashgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
 
                /*
                 * _hash_first and _hash_next handle eliminate dead index entries
-                * whenever scan->ignored_killed_tuples is true.  Therefore, there's
+                * whenever scan->ignore_killed_tuples is true.  Therefore, there's
                 * nothing to do here except add the results to the TIDBitmap.
                 */
                tbm_add_tuples(tbm, &(currItem->heapTid), 1, true);
index 821652b25b0ceca7cf969bfb2389c8564193b6b4..d7930c077de028a76f94ec18e0786457e921f4f0 100644 (file)
@@ -3364,7 +3364,7 @@ PreventInTransactionBlock(bool isTopLevel, const char *stmtType)
 }
 
 /*
- *     WarnNoTranactionBlock
+ *     WarnNoTransactionBlock
  *     RequireTransactionBlock
  *
  *     These two functions allow for warnings or errors if a command is executed
index d2e4f53a80131286f4a20df99c47da29da2c6dac..587b71724297b471bda553e9ddaa98904d8ff5dd 100644 (file)
@@ -528,7 +528,7 @@ AppendAttributeTuples(Relation indexRelation, int numatts)
 static void
 UpdateIndexRelation(Oid indexoid,
                                        Oid heapoid,
-                                       Oid parentIndexOid,
+                                       Oid parentIndexId,
                                        IndexInfo *indexInfo,
                                        Oid *collationOids,
                                        Oid *classOids,
index 8134098fc1754b7bca95643586a41c0a9e9920b7..e96620e4018f801348ef19efb70997dde96d8033 100644 (file)
@@ -319,7 +319,7 @@ get_default_partition_oid(Oid parentId)
 /*
  * update_default_partition_oid
  *
- * Update pg_partition_table.partdefid with a new default partition OID.
+ * Update pg_partitioned_table.partdefid with a new default partition OID.
  */
 void
 update_default_partition_oid(Oid parentId, Oid defaultPartId)
index ac86f3d5beaf5b9ef4968cea329a4cada401f02a..f1161f0fee16d26142fd1abb323756722d00fc39 100644 (file)
@@ -829,8 +829,8 @@ CopyLoadRawBuf(CopyState cstate)
  * input/output stream. The latter could be either stdin/stdout or a
  * socket, depending on whether we're running under Postmaster control.
  *
- * Do not allow a Postgres user without the 'pg_access_server_files' role to
- * read from or write to a file.
+ * Do not allow a Postgres user without the 'pg_read_server_files' or
+ * 'pg_write_server_files' role to read from or write to a file.
  *
  * Do not allow the copy if user doesn't have proper permission to access
  * the table or the specifically requested columns.
index 4f62e48d98f3176366ecc1ed23744f115091f67b..40f1f9a1b6fb7e9059de79d80ef1a595c9563145 100644 (file)
@@ -170,7 +170,7 @@ compute_return_type(TypeName *returnType, Oid languageOid,
  * Input parameters:
  * parameters: list of FunctionParameter structs
  * languageOid: OID of function language (InvalidOid if it's CREATE AGGREGATE)
- * is_aggregate: needed only to determine error handling
+ * objtype: needed only to determine error handling and required result type
  *
  * Results are stored into output parameters.  parameterTypes must always
  * be created, but the other arrays are set to NULL if not needed.
index a2bd9a7859b4d020ae5b3a25eb7cdf2042b059ad..27f03455152d60157349ccfb7d56b9882ef1c419 100644 (file)
@@ -2876,8 +2876,9 @@ EvalPlanQualStart(EPQState *epqstate, EState *parentestate, Plan *planTree)
 
        /*
         * Each EState must have its own es_epqScanDone state, but if we have
-        * nested EPQ checks they should share es_epqTuple arrays.  This allows
-        * sub-rechecks to inherit the values being examined by an outer recheck.
+        * nested EPQ checks they should share es_epqTupleSlot arrays.  This
+        * allows sub-rechecks to inherit the values being examined by an outer
+        * recheck.
         */
        estate->es_epqScanDone = (bool *) palloc0(rtsize * sizeof(bool));
        if (parentestate->es_epqTupleSlot != NULL)
index 2835a01e15a948f1ce573c7098709eee787535bc..9b866a5dd6634a2d4d0fb589f5b498c662004b0c 100644 (file)
@@ -642,7 +642,7 @@ ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc)
 }
 
 /* ----------------
- *             ExecCreateSlotFromOuterPlan
+ *             ExecCreateScanSlotFromOuterPlan
  * ----------------
  */
 void
index 3c33ce74e04a7bea28ad84d19efafb6d21a5edc6..d16120b9c4806f92ec7be58eeb344fbc0296e237 100644 (file)
@@ -1049,8 +1049,8 @@ ExecHashIncreaseNumBatches(HashJoinTable hashtable)
 
 /*
  * ExecParallelHashIncreaseNumBatches
- *             Every participant attached to grow_barrier must run this function
- *             when it observes growth == PHJ_GROWTH_NEED_MORE_BATCHES.
+ *             Every participant attached to grow_batches_barrier must run this
+ *             function when it observes growth == PHJ_GROWTH_NEED_MORE_BATCHES.
  */
 static void
 ExecParallelHashIncreaseNumBatches(HashJoinTable hashtable)
@@ -1106,7 +1106,7 @@ ExecParallelHashIncreaseNumBatches(HashJoinTable hashtable)
                                         * The combined work_mem of all participants wasn't
                                         * enough. Therefore one batch per participant would be
                                         * approximately equivalent and would probably also be
-                                        * insufficient.  So try two batches per particiant,
+                                        * insufficient.  So try two batches per participant,
                                         * rounded up to a power of two.
                                         */
                                        new_nbatch = 1 << my_log2(pstate->nparticipants * 2);
@@ -1674,7 +1674,7 @@ ExecHashTableInsert(HashJoinTable hashtable,
 }
 
 /*
- * ExecHashTableParallelInsert
+ * ExecParallelHashTableInsert
  *             insert a tuple into a shared hash table or shared batch tuplestore
  */
 void
index 515dd61f0798635662c8cbeeb5ece569b64773a6..277d2783711164236f0c6cb71dcab16cc0285123 100644 (file)
@@ -297,11 +297,12 @@ ExecInitProjectSet(ProjectSet *node, EState *estate, int eflags)
        Assert(node->plan.qual == NIL);
 
        /*
-        * Create a memory context that ExecMakeFunctionResult can use to evaluate
-        * function arguments in.  We can't use the per-tuple context for this
-        * because it gets reset too often; but we don't want to leak evaluation
-        * results into the query-lifespan context either.  We use one context for
-        * the arguments of all tSRFs, as they have roughly equivalent lifetimes.
+        * Create a memory context that ExecMakeFunctionResultSet can use to
+        * evaluate function arguments in.  We can't use the per-tuple context for
+        * this because it gets reset too often; but we don't want to leak
+        * evaluation results into the query-lifespan context either.  We use one
+        * context for the arguments of all tSRFs, as they have roughly equivalent
+        * lifetimes.
         */
        state->argcontext = AllocSetContextCreate(CurrentMemoryContext,
                                                                                          "tSRF function arguments",
index e2db4cea65cdf877e2822a5445560b67c8479f7d..17ff0691f376dedb19a4a9e3c9152d86077b80a8 100644 (file)
@@ -22,7 +22,7 @@ endif
 PGFILEDESC = "llvmjit - JIT using LLVM"
 NAME = llvmjit
 
-# All files in this directy use LLVM.
+# All files in this directory use LLVM.
 CFLAGS += $(LLVM_CFLAGS)
 CXXFLAGS += $(LLVM_CXXFLAGS)
 override CPPFLAGS := $(LLVM_CPPFLAGS) $(CPPFLAGS)
index 6d51c7903e175eeb6d9d8c9127ebe2ab5b006cbb..58b0be1f32f5fef0bfae2d470eba7b807911e341 100644 (file)
@@ -261,7 +261,7 @@ struct IntegerSet
  * Prototypes for internal functions.
  */
 static void intset_update_upper(IntegerSet *intset, int level,
-                                                               intset_node *new_node, uint64 new_node_item);
+                                                               intset_node *child, uint64 child_key);
 static void intset_flush_buffered_values(IntegerSet *intset);
 
 static int     intset_binsrch_uint64(uint64 value, uint64 *arr, int arr_elems,
index 805b996d6d8d1774785af43f9066d301911f2d18..aca44a0aece36e92ee1b6e777ac4b05f316e1c20 100644 (file)
@@ -308,7 +308,7 @@ pq_endmessage(StringInfo buf)
  *             pq_endmessage_reuse     - send the completed message to the frontend
  *
  * The data buffer is *not* freed, allowing to reuse the buffer with
- * pg_beginmessage_reuse.
+ * pq_beginmessage_reuse.
  --------------------------------
  */
 
index 3f3136802235d4e68e36fa610d550bdb7756571c..92fa86fc9d51a556a12089dfd7ab6654b26c12aa 100644 (file)
@@ -1087,7 +1087,8 @@ StartLogicalReplication(StartReplicationCmd *cmd)
         * Create our decoding context, making it start at the previously ack'ed
         * position.
         *
-        * Do this before sending CopyBoth, so that any errors are reported early.
+        * Do this before sending a CopyBothResponse message, so that any errors
+        * are reported early.
         */
        logical_decoding_ctx =
                CreateDecodingContext(cmd->startpoint, cmd->options, false,
index 2feb17ed4478a09ac48a8df55d3de593963113d3..5fe61ea0a438c43ff24134b4e8254ff69faa7b8e 100644 (file)
@@ -1315,7 +1315,7 @@ pg_mcv_list_in(PG_FUNCTION_ARGS)
 
 
 /*
- * pg_mcv_list_out             - output routine for type PG_MCV_LIST.
+ * pg_mcv_list_out             - output routine for type pg_mcv_list.
  *
  * MCV lists are serialized into a bytea value, so we simply call byteaout()
  * to serialize the value into text. But it'd be nice to serialize that into
index 73c455e66fac9d82a18c62027d5eb34a010d4d72..6bfd4fa13ef75455ad50a645d9a11fa1de0f1d94 100644 (file)
@@ -1592,7 +1592,7 @@ OpenTemporaryFileInTablespace(Oid tblspcOid, bool rejectError)
  * If the file is inside the top-level temporary directory, its name should
  * begin with PG_TEMP_FILE_PREFIX so that it can be identified as temporary
  * and deleted at startup by RemovePgTempFiles().  Alternatively, it can be
- * inside a directory created with PathnameCreateTemporaryDir(), in which case
+ * inside a directory created with PathNameCreateTemporaryDir(), in which case
  * the prefix isn't needed.
  */
 File
index 3cfc0c385c8f35383d3311b70902b7f456a79837..26e5091172d77c479da73399052084f76cc31c67 100644 (file)
@@ -143,7 +143,7 @@ SharedFileSetOpen(SharedFileSet *fileset, const char *name)
 }
 
 /*
- * Delete a file that was created with PathNameCreateShared().
+ * Delete a file that was created with SharedFileSetCreate().
  * Return true if the file existed, false if didn't.
  */
 bool
index ff376b574c7e3419804507a3126f6225cd333e46..69ed034e528dbd314aaef40b1426a1172088cdad 100644 (file)
@@ -113,7 +113,7 @@ BarrierInit(Barrier *barrier, int participants)
  * too and then return.  Increments the current phase.  The caller must be
  * attached.
  *
- * While waiting, pg_stat_activity shows a wait_event_class and wait_event
+ * While waiting, pg_stat_activity shows a wait_event_type and wait_event
  * controlled by the wait_event_info passed in, which should be a value from
  * one of the WaitEventXXX enums defined in pgstat.h.
  *
index 91f7714650bc8cd3102e277b074e4f13d7f6dd93..4c245d1f85ef19b3e92ce01aeeec3df85139f0e7 100644 (file)
@@ -1238,7 +1238,7 @@ shm_mq_inc_bytes_written(shm_mq *mq, Size n)
        /*
         * Separate prior reads of mq_ring from the write of mq_bytes_written
         * which we're about to do.  Pairs with the read barrier found in
-        * shm_mq_get_receive_bytes.
+        * shm_mq_receive_bytes.
         */
        pg_write_barrier();
 
index 0f57fd352a29616d6d73c2348ec8975b091b7343..80e99189e4fd38dbd39942cf10187e217f0023a7 100644 (file)
@@ -230,7 +230,7 @@ const Oid fmgr_last_builtin_oid = %u;
 |, $last_builtin_oid;
 
 
-# Create fmgr_builtins_oid_index table.
+# Create fmgr_builtin_oid_index table.
 printf $tfh qq|
 const uint16 fmgr_builtin_oid_index[%u] = {
 |, $last_builtin_oid + 1;
index 9e7035c71a1fbbfab30fd3eb0cc110d1d24f5e65..fe351edb2b2c2c8e67a542eb3f210ce5b614b27c 100644 (file)
@@ -53,7 +53,7 @@ typedef struct OkeysState
        int                     sent_count;
 } OkeysState;
 
-/* state for iterate_json_string_values function */
+/* state for iterate_json_values function */
 typedef struct IterateJsonStringValuesState
 {
        JsonLexContext *lex;
index 8df18eb2ee7c27f1389f23817f42d34bd0194cbd..8f74e8d40f81b1db65b71fb11877e630565c3089 100644 (file)
@@ -173,7 +173,7 @@ sts_initialize(SharedTuplestore *sts, int participants,
 }
 
 /*
- * Attach to a SharedTupleStore that has been initialized by another backend,
+ * Attach to a SharedTuplestore that has been initialized by another backend,
  * so that this backend can read and write tuples.
  */
 SharedTuplestoreAccessor *
index 8fbaeccf49ddef361e8d52c2a6acdfcb6bff078c..02a865f456fbf7cc212f7199d6b0ae86e2eebfdb 100644 (file)
@@ -327,7 +327,7 @@ flagInhTables(Archive *fout, TableInfo *tblinfo, int numTables,
 
 /*
  * flagInhIndexes -
- *      Create AttachIndexInfo objects for partitioned indexes, and add
+ *      Create IndexAttachInfo objects for partitioned indexes, and add
  *      appropriate dependency links.
  */
 static void
index cadecab721cf367b3c88d981a0f93d7d4f31727b..daded3dca055fcfe7355dc0a442f929c3cac1f66 100644 (file)
@@ -22,7 +22,7 @@ typedef uint64 XLogRecPtr;
 
 /*
  * Zero is used indicate an invalid pointer. Bootstrap skips the first possible
- * WAL segment, initializing the first WAL page at XLOG_SEG_SIZE, so no XLOG
+ * WAL segment, initializing the first WAL page at WAL segment size, so no XLOG
  * record can begin at zero.
  */
 #define InvalidXLogRecPtr      0
index e234b3c0ef88de80f981cf0bee93105aacb13e3e..5c3565ce3660517a92ae7b740968028e86be7434 100644 (file)
@@ -30,6 +30,6 @@ extern bool has_partition_attrs(Relation rel, Bitmapset *attnums,
 
 extern Oid     get_default_partition_oid(Oid parentId);
 extern void update_default_partition_oid(Oid parentId, Oid defaultPartId);
-extern List *get_proposed_default_constraint(List *new_part_constaints);
+extern List *get_proposed_default_constraint(List *new_part_constraints);
 
 #endif                                                 /* PARTITION_H */
index 9ee9afd97cef7746f8e34039491ff30f2174e201..3f0cef33b447eeaca6191d9da1adf3661013a644 100644 (file)
@@ -41,8 +41,8 @@ CATALOG(pg_foreign_data_wrapper,2328,ForeignDataWrapperRelationId)
 } FormData_pg_foreign_data_wrapper;
 
 /* ----------------
- *             Form_pg_fdw corresponds to a pointer to a tuple with
- *             the format of pg_fdw relation.
+ *             Form_pg_foreign_data_wrapper corresponds to a pointer to a tuple with
+ *             the format of pg_foreign_data_wrapper relation.
  * ----------------
  */
 typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
index 0710a7dd3880305fbbebe56296740cf9d58680ef..203b1ab7dca99c685d70248f1f910704ec0c6076 100644 (file)
@@ -68,8 +68,8 @@
  * A TupleTableSlot can also be "empty", indicated by flag TTS_FLAG_EMPTY set
  * in tts_flags, holding no valid data.  This is the only valid state for a
  * freshly-created slot that has not yet had a tuple descriptor assigned to
- * it.  In this state, TTS_SHOULDFREE should not be set in tts_flag, tts_tuple
- * must be NULL, tts_buffer InvalidBuffer, and tts_nvalid zero.
+ * it.  In this state, TTS_SHOULDFREE should not be set in tts_flags, tts_tuple
+ * must be NULL and tts_nvalid zero.
  *
  * The tupleDescriptor is simply referenced, not copied, by the TupleTableSlot
  * code.  The caller of ExecSetSlotDescriptor() is responsible for providing
@@ -87,7 +87,7 @@
  * the descriptor is provided), or when a descriptor is assigned to the slot;
  * they are of length equal to the descriptor's natts.
  *
- * The TTS_FLAG_SLOW flag and tts_off are saved state for
+ * The TTS_FLAG_SLOW flag is saved state for
  * slot_deform_heap_tuple, and should not be touched by any other code.
  *----------
  */
index be27751974f84a3a162cdc982d70757ee9cbe21e..08f718792352a4292d90a2aaf095163732513900 100644 (file)
@@ -28,7 +28,5 @@ extern void fix_placeholder_input_needed_levels(PlannerInfo *root);
 extern void add_placeholders_to_base_rels(PlannerInfo *root);
 extern void add_placeholders_to_joinrel(PlannerInfo *root, RelOptInfo *joinrel,
                                                                                RelOptInfo *outer_rel, RelOptInfo *inner_rel);
-extern void add_placeholders_to_child_joinrel(PlannerInfo *root,
-                                                                                         RelOptInfo *childrel, RelOptInfo *parentrel);
 
 #endif                                                 /* PLACEHOLDER_H */
index 06080b19cce13cd53bfde45f17db7be86f6e0d3a..81318c785a003cef9a0d7df1f6ecca922e8c62b4 100644 (file)
@@ -41,7 +41,7 @@ struct RelOptInfo;
  *                                     subsidiary data, such as the FmgrInfos.
  * planstate           Points to the parent plan node's PlanState when called
  *                                     during execution; NULL when called from the planner.
- * exprstates          Array of ExprStates, indexed as per PruneCtxStateIdx; one
+ * exprstates          Array of ExprStates, indexed as per PruneCxtStateIdx; one
  *                                     for each partition key in each pruning step.  Allocated if
  *                                     planstate is non-NULL, otherwise NULL.
  */
index fe7c3d0ffc04e7a2fba96556e203926a4ac1b65d..5197926696f76c40a8a890680a6f835541ac9c09 100644 (file)
@@ -67,7 +67,7 @@ pg_leftmost_one_pos64(uint64 word)
                shift -= 8;
 
        return shift + pg_leftmost_one_pos[(word >> shift) & 255];
-#endif                                                 /* HAVE__BUIILTIN_CLZ */
+#endif                                                 /* HAVE__BUILTIN_CLZ */
 }
 
 /*
index 35830df8c3185c6eb56c4d699dfeef9b2ce54047..5f4d479a7b258c16754da328fdeee92e8ffb5426 100644 (file)
@@ -145,7 +145,7 @@ typedef enum JsonToIndex
        jtiAll = jtiKey | jtiString | jtiNumeric | jtiBool
 } JsonToIndex;
 
-/* an action that will be applied to each value in iterate_json(b)_vaues functions */
+/* an action that will be applied to each value in iterate_json(b)_values functions */
 typedef void (*JsonIterateStringValuesAction) (void *state, char *elem_value, int elem_len);
 
 /* an action that will be applied to each value in transform_json(b)_values functions */
index 863c6e4f90667e955d0d3cdc88dbb86123b3794f..9dea626e84fc0466b917c8d13f101b24430e76b3 100644 (file)
@@ -1,7 +1,7 @@
 /*-------------------------------------------------------------------------
  *
  * sharedtuplestore.h
- *       Simple mechinism for sharing tuples between backends.
+ *       Simple mechanism for sharing tuples between backends.
  *
  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
index e94a4c345bd8069569dbc060f27e48a22ae8b9cd..3748158a86d857e4eb4425dc5cf5f47f5c3cd506 100644 (file)
@@ -84,7 +84,7 @@
  */
 #ifdef PG_NEED_PERL_XSUB_H
 /*
- * On Windows, port_win32.h defines macros for a lot of these same functions.
+ * On Windows, win32_port.h defines macros for a lot of these same functions.
  * To avoid compiler warnings when XSUB.h redefines them, #undef our versions.
  */
 #ifdef WIN32
index 164b4f619770c8f0f91cf12b094ea9a1ffea81ae..a44e99127727e25e7de44f15d484d645faacf735 100644 (file)
@@ -9,7 +9,7 @@
  *       src/port/pwrite.c
  *
  * Note that this implementation changes the current file position, unlike
- * the POSIX function, so we use the name pg_write().
+ * the POSIX function, so we use the name pg_pwrite().
  *
  *-------------------------------------------------------------------------
  */
index 1d53a7d0c631a63cdea36ecf8e020901823474d9..3d1579b244ea5c725bb2ef727b4eebc48bbdd2d2 100644 (file)
@@ -67,7 +67,7 @@ step "s2c"     { COMMIT; }
 # in the new partition should contain the changes made by session s2.
 permutation "s1b" "s2b" "s2u1" "s1u" "s2c" "s1c" "s1s"
 
-# Same as above, except, session s1 is waiting in GetTupleTrigger().
+# Same as above, except, session s1 is waiting in GetTupleForTrigger().
 permutation "s1b" "s2b" "s2ut1" "s1ut" "s2c" "s1c" "s1st" "s1stl"
 
 # Below two cases are similar to the above two; except that the session s1
index 6fd7e3c0cafea8fbbbc3b81433076af53ab87d57..a8b271869a98909e018a7d0fd24efacd5c00a78b 100644 (file)
@@ -2,6 +2,6 @@ test_integerset contains unit tests for testing the integer set implementation
 in src/backend/lib/integerset.c.
 
 The tests verify the correctness of the implementation, but they can also be
-used as a micro-benchmark.  If you set the 'intset_tests_stats' flag in
+used as a micro-benchmark.  If you set the 'intset_test_stats' flag in
 test_integerset.c, the tests will print extra information about execution time
 and memory usage.
index d7a9fc50390b030d07248c00f645755e625328f1..2553636dc1402f3df4e1dd7e9c9da69bf442c4fc 100644 (file)
@@ -11,7 +11,6 @@ our $config = {
 
        # blocksize => 8,         # --with-blocksize, 8kB by default
        # wal_blocksize => 8,     # --with-wal-blocksize, 8kB by default
-       # wal_segsize => 16,      # --with-wal-segsize, 16MB by default
        ldap      => 1,        # --with-ldap
        extraver  => undef,    # --with-extra-version=<string>
        gss       => undef,    # --with-gssapi=<path>