@@ -19099,7 +19099,7 @@ QueuePartitionConstraintValidation(List **wqueue, Relation scanrel,
19099
19099
}
19100
19100
19101
19101
/*
19102
- * attachPartitionTable: attach new partition to partitioned table
19102
+ * attachPartitionTable: attach a new partition to the partitioned table
19103
19103
*
19104
19104
* wqueue: the ALTER TABLE work queue; can be NULL when not running as part
19105
19105
* of an ALTER TABLE sequence.
@@ -20892,10 +20892,10 @@ GetAttributeStorage(Oid atttypid, const char *storagemode)
20892
20892
*/
20893
20893
typedef struct SplitPartitionContext
20894
20894
{
20895
- ExprState *partqualstate; /* expression for check slot for partition
20895
+ ExprState *partqualstate; /* expression for checking slot for partition
20896
20896
* (NULL for DEFAULT partition) */
20897
20897
BulkInsertState bistate; /* state of bulk inserts for partition */
20898
- TupleTableSlot *dstslot; /* slot for insert row into partition */
20898
+ TupleTableSlot *dstslot; /* slot for inserting row into partition */
20899
20899
Relation partRel; /* relation for partition */
20900
20900
} SplitPartitionContext;
20901
20901
@@ -21142,7 +21142,7 @@ moveSplitTableRows(Relation rel, Relation splitRel, List *partlist, List *newPar
21142
21142
}
21143
21143
21144
21144
/*
21145
- * createPartitionTable: create table for new partition with given name
21145
+ * createPartitionTable: create table for a new partition with given name
21146
21146
* (newPartName) like table (modelRelName)
21147
21147
*
21148
21148
* Emulates command: CREATE TABLE <newPartName> (LIKE <modelRelName>
@@ -21219,7 +21219,7 @@ ATExecSplitPartition(List **wqueue, AlteredTableInfo *tab, Relation rel,
21219
21219
21220
21220
/*
21221
21221
* We are going to detach and remove this partition: need to use exclusive
21222
- * lock for prevent DML-queries to the partition.
21222
+ * lock for preventing DML-queries to the partition.
21223
21223
*/
21224
21224
splitRel = table_openrv(cmd->name, AccessExclusiveLock);
21225
21225
@@ -21269,13 +21269,13 @@ ATExecSplitPartition(List **wqueue, AlteredTableInfo *tab, Relation rel,
21269
21269
21270
21270
/*
21271
21271
* If new partition has the same name as split partition then we should
21272
- * rename split partition for reuse name.
21272
+ * rename split partition for reusing name.
21273
21273
*/
21274
21274
if (isSameName)
21275
21275
{
21276
21276
/*
21277
21277
* We must bump the command counter to make the split partition tuple
21278
- * visible for rename .
21278
+ * visible for renaming .
21279
21279
*/
21280
21280
CommandCounterIncrement();
21281
21281
/* Rename partition. */
@@ -21284,7 +21284,7 @@ ATExecSplitPartition(List **wqueue, AlteredTableInfo *tab, Relation rel,
21284
21284
21285
21285
/*
21286
21286
* We must bump the command counter to make the split partition tuple
21287
- * visible after rename .
21287
+ * visible after renaming .
21288
21288
*/
21289
21289
CommandCounterIncrement();
21290
21290
}
@@ -21459,7 +21459,7 @@ ATExecMergePartitions(List **wqueue, AlteredTableInfo *tab, Relation rel,
21459
21459
21460
21460
/*
21461
21461
* We are going to detach and remove this partition: need to use
21462
- * exclusive lock for prevent DML-queries to the partition.
21462
+ * exclusive lock for preventing DML-queries to the partition.
21463
21463
*/
21464
21464
mergingPartition = table_openrv(name, AccessExclusiveLock);
21465
21465
0 commit comments