提交 63a54605 编写于 作者: D Daniel Gustafsson

Fix typos in comments and elogs

The error messages are developer or debug facing, no reason to
believe this will break anyones regexing of logfiles in prod.
上级 09874788
......@@ -1845,7 +1845,7 @@ bool RecordCrashTransactionAbortRecord(
bool validStatus;
/* Fix for MPP-12614. The call to TransactionIdGetStatus() has been removed since */
/* The clog many not have the the referenced transation as of crash recovery */
/* The clog many not have the the referenced transaction as of crash recovery */
/* pass 2. The clog will be fully built in pass 3 of crash recovery. */
/* The new call "InRecoveryTansactionIdGetStatus will return TRUE or FALSE in the */
/* validStatus parameter, which indicates whether or not the returned value is good. */
......
......@@ -7463,7 +7463,7 @@ StartupXLOG_Pass2(void)
if (Debug_persistent_recovery_print)
elog(PersistentRecovery_DebugPrintLevel(),
"Read the checkpoint record location saved from pass1, "
"and setup the prepared transation hash list.");
"and setup the prepared transaction hash list.");
record = XLogReadRecord(&XLogCtl->pass1LastCheckpointLoc, false, PANIC);
SetupCheckpointPreparedTransactionList(record);
}
......
......@@ -3238,7 +3238,7 @@ void
DropTempTableNamespaceForResetSession(Oid namespaceOid)
{
if (IsTransactionOrTransactionBlock())
elog(ERROR, "Called within a transation");
elog(ERROR, "Called within a transaction");
StartTransactionCommand();
......
......@@ -1521,10 +1521,10 @@ analyzeEstimateReltuplesRelpages(Oid relationOid, float4 *relTuples, float4 *rel
List *allRelOids = NIL;
/* if GUC optimizer_analyze_root_partition is off, we do not analyze root partitions, unless
* using the 'ANALYZE ROOTPARITION tablename' command.
* using the 'ANALYZE ROOTPARTITION tablename' command.
* This is done by estimating the reltuples to be 0 and thus bypass the actual analyze.
* See MPP-21427.
* For mid-level parititions, we aggregate the reltuples and relpages from all leaf children beneath.
* For mid-level partitions, we aggregate the reltuples and relpages from all leaf children beneath.
*/
if (rel_part_status(relationOid) == PART_STATUS_INTERIOR ||
(rel_is_partitioned(relationOid) && (optimizer_analyze_root_partition || rootonly)))
......
......@@ -1509,7 +1509,7 @@ set_window_keys(WindowContext *context, int wind_index)
}
}
/* Careful. Within sort key, parition key may overlap order keys. */
/* Careful. Within sort key, partition key may overlap order keys. */
nextsk = skoffset = winfo->orderkeys_offset;
/* Make a WindowKey per SpecInfo. */
......
......@@ -4209,7 +4209,7 @@ struct config_int ConfigureNamesInt_gp[] =
{
{"gp_motion_slice_noop", PGC_USERSET, GP_ARRAY_TUNING,
gettext_noop("Make motion nodes in certain slices noop"),
gettext_noop("Make motion nodes noop, to help analyze performace"),
gettext_noop("Make motion nodes noop, to help analyze performance"),
GUC_NOT_IN_SAMPLE | GUC_NO_SHOW_ALL | GUC_GPDB_ADDOPT
},
&gp_motion_slice_noop,
......
......@@ -52,7 +52,7 @@ typedef struct DistributedSnapshotHeader
DistributedTransactionId xmin; /* XID < xmin are visible to me */
DistributedTransactionId xmax; /* XID >= xmax are invisible to me */
int32 count; /*
* Count of distributed transations
* Count of distributed transactions
* in inProgress*Array.
*/
int32 maxCount;
......
......@@ -285,7 +285,7 @@ namespace gpdb {
// parts of a partitioned table
bool FLeafPartition(Oid oid);
// partition table has an external parition
// partition table has an external partition
bool FHasExternalPartition(Oid oid);
// find the oid of the root partition given partition oid belongs to
......
set optimizer_disable_missing_stats_collection = on;
-- MPP-23647 Create a paritioned appendonly table, let its age
-- MPP-23647 Create a partitioned appendonly table, let its age
-- increase during the test. We will vacuum it at the end of the
-- test.
create table ao_age_test (i int, b bool, c char, d date)
......@@ -130,7 +130,7 @@ insert into vactst select i, (i%123 > 50), (i/11) || '', '2008/10/12'::date + (i
from generate_series(0, 99) i;
vacuum analyze vactst;
drop table vactst;
-- MPP-23647 Vacuum appendonly paritioned table ao_age_test, check
-- MPP-23647 Vacuum appendonly partitioned table ao_age_test, check
-- that its age is correctly updated along with its partitions.
set vacuum_freeze_min_age=20;
show vacuum_freeze_min_age;
......
......@@ -41,7 +41,7 @@ m/^NOTICE:.*resource queue required -- using default resource queue ".*"/
# The following NOTICE is generated when a user creates an index on the parent
# partition table. For each child partition, it informs the user that the
# database will create an index for that parition. The messages might appear in
# database will create an index for that partition. The messages might appear in
# different order for the child partitions.
m/^NOTICE:.*building index for child partition ".*"/
......
set optimizer_disable_missing_stats_collection = on;
-- MPP-23647 Create a paritioned appendonly table, let its age
-- MPP-23647 Create a partitioned appendonly table, let its age
-- increase during the test. We will vacuum it at the end of the
-- test.
create table ao_age_test (i int, b bool, c char, d date)
......@@ -107,7 +107,7 @@ from generate_series(0, 99) i;
vacuum analyze vactst;
drop table vactst;
-- MPP-23647 Vacuum appendonly paritioned table ao_age_test, check
-- MPP-23647 Vacuum appendonly partitioned table ao_age_test, check
-- that its age is correctly updated along with its partitions.
set vacuum_freeze_min_age=20;
show vacuum_freeze_min_age;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册