@@ -386,7 +386,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
386386
387387 /*
388388 * If this is the first attribute, slot->tts_nvalid was 0. Therefore
389- * reset offset to 0 to , it be from a previous execution.
389+ * also reset offset to 0, it may be from a previous execution.
390390 */
391391 if (attnum == 0 )
392392 {
@@ -416,7 +416,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
416416
417417 /*
418418 * Check for nulls if necessary. No need to take missing attributes
419- * into account, because in case they're present the heaptuple's natts
419+ * into account, because if they're present the heaptuple's natts
420420 * would have indicated that a slot_getmissingattrs() is needed.
421421 */
422422 if (!att -> attnotnull )
@@ -503,13 +503,13 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
503503 (known_alignment < 0 || known_alignment != TYPEALIGN (alignto , known_alignment )))
504504 {
505505 /*
506- * When accessing a varlena field we have to "peek" to see if we
506+ * When accessing a varlena field, we have to "peek" to see if we
507507 * are looking at a pad byte or the first byte of a 1-byte-header
508508 * datum. A zero byte must be either a pad byte, or the first
509- * byte of a correctly aligned 4-byte length word; in either case
509+ * byte of a correctly aligned 4-byte length word; in either case,
510510 * we can align safely. A non-zero byte must be either a 1-byte
511511 * length word, or the first byte of a correctly aligned 4-byte
512- * length word; in either case we need not align.
512+ * length word; in either case, we need not align.
513513 */
514514 if (att -> attlen == -1 )
515515 {
@@ -603,8 +603,8 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
603603 else if (att -> attnotnull && attguaranteedalign && known_alignment >= 0 )
604604 {
605605 /*
606- * If the offset to the column was previously known a NOT NULL &
607- * fixed width column guarantees that alignment is just the
606+ * If the offset to the column was previously known, a NOT NULL &
607+ * fixed- width column guarantees that alignment is just the
608608 * previous alignment plus column width.
609609 */
610610 Assert (att -> attlen > 0 );
@@ -645,8 +645,8 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
645645 LLVMBuildGEP (b , v_tts_nulls , & l_attno , 1 , "" ));
646646
647647 /*
648- * Store datum. For byval datums copy the value, extend to Datum's
649- * width, and store. For byref types, store pointer to data.
648+ * Store datum. For byval: datums copy the value, extend to Datum's
649+ * width, and store. For byref types: store pointer to data.
650650 */
651651 if (att -> attbyval )
652652 {
0 commit comments