@@ -258,7 +258,7 @@ timestamp_recv(PG_FUNCTION_ARGS)
258258 errmsg ("timestamp cannot be NaN" )));
259259#endif
260260
261- /* rangecheck : see if timestamp_out would like it */
261+ /* range check : see if timestamp_out would like it */
262262 if (TIMESTAMP_NOT_FINITE (timestamp ))
263263 /* ok */ ;
264264 else if (timestamp2tm (timestamp , NULL , tm , & fsec , NULL , NULL ) != 0 ||
@@ -792,7 +792,7 @@ timestamptz_recv(PG_FUNCTION_ARGS)
792792 timestamp = (TimestampTz ) pq_getmsgfloat8 (buf );
793793#endif
794794
795- /* rangecheck : see if timestamptz_out would like it */
795+ /* range check : see if timestamptz_out would like it */
796796 if (TIMESTAMP_NOT_FINITE (timestamp ))
797797 /* ok */ ;
798798 else if (timestamp2tm (timestamp , & tz , tm , & fsec , NULL , NULL ) != 0 ||
@@ -1435,7 +1435,7 @@ AdjustIntervalForTypmod(Interval *interval, int32 typmod)
14351435 else
14361436 elog (ERROR , "unrecognized interval typmod: %d" , typmod );
14371437
1438- /* Need to adjust subsecond precision? */
1438+ /* Need to adjust sub-second precision? */
14391439 if (precision != INTERVAL_FULL_PRECISION )
14401440 {
14411441 if (precision < 0 || precision > MAX_INTERVAL_PRECISION )
@@ -1635,7 +1635,7 @@ IntegerTimestampToTimestampTz(int64 timestamp)
16351635 * Both inputs must be ordinary finite timestamps (in current usage,
16361636 * they'll be results from GetCurrentTimestamp()).
16371637 *
1638- * We expect start_time <= stop_time. If not, we return zeroes ; for current
1638+ * We expect start_time <= stop_time. If not, we return zeros ; for current
16391639 * callers there is no need to be tense about which way division rounds on
16401640 * negative inputs.
16411641 */
@@ -2276,7 +2276,7 @@ timestamp_hash(PG_FUNCTION_ARGS)
22762276
22772277
22782278/*
2279- * Crosstype comparison functions for timestamp vs timestamptz
2279+ * Cross-type comparison functions for timestamp vs timestamptz
22802280 */
22812281
22822282Datum
@@ -2678,7 +2678,7 @@ overlaps_timestamp(PG_FUNCTION_ARGS)
26782678 {
26792679 /*
26802680 * For ts1 = ts2 the spec says te1 <> te2 OR te1 = te2, which is a
2681- * rather silly way of saying "true if both are nonnull , else null".
2681+ * rather silly way of saying "true if both are non-null , else null".
26822682 */
26832683 if (te1IsNull || te2IsNull )
26842684 PG_RETURN_NULL ();
@@ -2996,7 +2996,7 @@ timestamp_pl_interval(PG_FUNCTION_ARGS)
29962996 (errcode (ERRCODE_DATETIME_VALUE_OUT_OF_RANGE ),
29972997 errmsg ("timestamp out of range" )));
29982998
2999- /* Add days by converting to and from julian */
2999+ /* Add days by converting to and from Julian */
30003000 julian = date2j (tm -> tm_year , tm -> tm_mon , tm -> tm_mday ) + span -> day ;
30013001 j2date (julian , & tm -> tm_year , & tm -> tm_mon , & tm -> tm_mday );
30023002
@@ -3104,7 +3104,7 @@ timestamptz_pl_interval(PG_FUNCTION_ARGS)
31043104 (errcode (ERRCODE_DATETIME_VALUE_OUT_OF_RANGE ),
31053105 errmsg ("timestamp out of range" )));
31063106
3107- /* Add days by converting to and from julian */
3107+ /* Add days by converting to and from Julian */
31083108 julian = date2j (tm -> tm_year , tm -> tm_mon , tm -> tm_mday ) + span -> day ;
31093109 j2date (julian , & tm -> tm_year , & tm -> tm_mon , & tm -> tm_mday );
31103110
@@ -3309,7 +3309,7 @@ interval_mul(PG_FUNCTION_ARGS)
33093309 /*
33103310 * The above correctly handles the whole-number part of the month and day
33113311 * products, but we have to do something with any fractional part
3312- * resulting when the factor is nonintegral . We cascade the fractions
3312+ * resulting when the factor is non-integral . We cascade the fractions
33133313 * down to lower units using the conversion factors DAYS_PER_MONTH and
33143314 * SECS_PER_DAY. Note we do NOT cascade up, since we are not forced to do
33153315 * so by the representation. The user can choose to cascade up later,
@@ -3319,7 +3319,7 @@ interval_mul(PG_FUNCTION_ARGS)
33193319 /*
33203320 * Fractional months full days into days.
33213321 *
3322- * Floating point calculation are inherently inprecise , so these
3322+ * Floating point calculation are inherently imprecise , so these
33233323 * calculations are crafted to produce the most reliable result possible.
33243324 * TSROUND() is needed to more accurately produce whole numbers where
33253325 * appropriate.
0 commit comments