Skip to content

Commit 5883337

Browse files
author
Antonin Houska
committed
Updated comments.
1 parent e0477db commit 5883337

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

concurrent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,14 @@ apply_insert(Relation rel, HeapTuple tup, TupleTableSlot *slot,
342342
Relation rel_ins;
343343
ResultRelInfo *rri = NULL;
344344

345-
/* Which partition does the tuple belong to? */
346345
if (conv_map)
347346
tup = convert_tuple_for_dest_table(tup, conv_map);
348347
ExecStoreHeapTuple(tup, slot, false);
349348
if (proute)
350349
{
351350
PartitionEntry *entry;
352351

352+
/* Which partition does the tuple belong to? */
353353
rri = ExecFindPartition(mtstate, mtstate->rootResultRelInfo,
354354
proute, slot, estate);
355355
rel_ins = rri->ri_RelationDesc;

pg_rewrite.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,8 @@ rewrite_table_impl(char *relschema_src, char *relname_src,
10771077
* Build scan key that we'll use to look for rows to be updated /
10781078
* deleted during logical decoding.
10791079
*
1080-
* As all the partitions have the same identity index, there
1081-
* should only be a single identity key.
1080+
* As all the partitions have the same definition of the identity
1081+
* index, there should only be a single identity key.
10821082
*/
10831083
if (ident_key == NULL)
10841084
ident_key = build_identity_key(entry->ident_index,
@@ -1372,9 +1372,9 @@ get_identity_index(Relation rel_dst, Relation rel_src)
13721372
tupdesc_src = RelationGetDescr(index_src);
13731373

13741374
/*
1375-
* The tuple descriptors might not be equal, since some attributes of
1376-
* rel_dst can have different types. What should match though is attribute
1377-
* names and their order.
1375+
* The tuple descriptors might not be equal, since some attributes can
1376+
* have different types. What should match though is attribute names and
1377+
* their order.
13781378
*/
13791379
if (tupdesc_src->natts != tupdesc_dst->natts)
13801380
match = false;

0 commit comments

Comments
 (0)