@@ -258,7 +258,7 @@ timestamp_recv(PG_FUNCTION_ARGS)
258
258
errmsg ("timestamp cannot be NaN" )));
259
259
#endif
260
260
261
- /* rangecheck : see if timestamp_out would like it */
261
+ /* range check : see if timestamp_out would like it */
262
262
if (TIMESTAMP_NOT_FINITE (timestamp ))
263
263
/* ok */ ;
264
264
else if (timestamp2tm (timestamp , NULL , tm , & fsec , NULL , NULL ) != 0 ||
@@ -792,7 +792,7 @@ timestamptz_recv(PG_FUNCTION_ARGS)
792
792
timestamp = (TimestampTz ) pq_getmsgfloat8 (buf );
793
793
#endif
794
794
795
- /* rangecheck : see if timestamptz_out would like it */
795
+ /* range check : see if timestamptz_out would like it */
796
796
if (TIMESTAMP_NOT_FINITE (timestamp ))
797
797
/* ok */ ;
798
798
else if (timestamp2tm (timestamp , & tz , tm , & fsec , NULL , NULL ) != 0 ||
@@ -1435,7 +1435,7 @@ AdjustIntervalForTypmod(Interval *interval, int32 typmod)
1435
1435
else
1436
1436
elog (ERROR , "unrecognized interval typmod: %d" , typmod );
1437
1437
1438
- /* Need to adjust subsecond precision? */
1438
+ /* Need to adjust sub-second precision? */
1439
1439
if (precision != INTERVAL_FULL_PRECISION )
1440
1440
{
1441
1441
if (precision < 0 || precision > MAX_INTERVAL_PRECISION )
@@ -1635,7 +1635,7 @@ IntegerTimestampToTimestampTz(int64 timestamp)
1635
1635
* Both inputs must be ordinary finite timestamps (in current usage,
1636
1636
* they'll be results from GetCurrentTimestamp()).
1637
1637
*
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
1639
1639
* callers there is no need to be tense about which way division rounds on
1640
1640
* negative inputs.
1641
1641
*/
@@ -2276,7 +2276,7 @@ timestamp_hash(PG_FUNCTION_ARGS)
2276
2276
2277
2277
2278
2278
/*
2279
- * Crosstype comparison functions for timestamp vs timestamptz
2279
+ * Cross-type comparison functions for timestamp vs timestamptz
2280
2280
*/
2281
2281
2282
2282
Datum
@@ -2678,7 +2678,7 @@ overlaps_timestamp(PG_FUNCTION_ARGS)
2678
2678
{
2679
2679
/*
2680
2680
* 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".
2682
2682
*/
2683
2683
if (te1IsNull || te2IsNull )
2684
2684
PG_RETURN_NULL ();
@@ -2996,7 +2996,7 @@ timestamp_pl_interval(PG_FUNCTION_ARGS)
2996
2996
(errcode (ERRCODE_DATETIME_VALUE_OUT_OF_RANGE ),
2997
2997
errmsg ("timestamp out of range" )));
2998
2998
2999
- /* Add days by converting to and from julian */
2999
+ /* Add days by converting to and from Julian */
3000
3000
julian = date2j (tm -> tm_year , tm -> tm_mon , tm -> tm_mday ) + span -> day ;
3001
3001
j2date (julian , & tm -> tm_year , & tm -> tm_mon , & tm -> tm_mday );
3002
3002
@@ -3104,7 +3104,7 @@ timestamptz_pl_interval(PG_FUNCTION_ARGS)
3104
3104
(errcode (ERRCODE_DATETIME_VALUE_OUT_OF_RANGE ),
3105
3105
errmsg ("timestamp out of range" )));
3106
3106
3107
- /* Add days by converting to and from julian */
3107
+ /* Add days by converting to and from Julian */
3108
3108
julian = date2j (tm -> tm_year , tm -> tm_mon , tm -> tm_mday ) + span -> day ;
3109
3109
j2date (julian , & tm -> tm_year , & tm -> tm_mon , & tm -> tm_mday );
3110
3110
@@ -3309,7 +3309,7 @@ interval_mul(PG_FUNCTION_ARGS)
3309
3309
/*
3310
3310
* The above correctly handles the whole-number part of the month and day
3311
3311
* 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
3313
3313
* down to lower units using the conversion factors DAYS_PER_MONTH and
3314
3314
* SECS_PER_DAY. Note we do NOT cascade up, since we are not forced to do
3315
3315
* so by the representation. The user can choose to cascade up later,
@@ -3319,7 +3319,7 @@ interval_mul(PG_FUNCTION_ARGS)
3319
3319
/*
3320
3320
* Fractional months full days into days.
3321
3321
*
3322
- * Floating point calculation are inherently inprecise , so these
3322
+ * Floating point calculation are inherently imprecise , so these
3323
3323
* calculations are crafted to produce the most reliable result possible.
3324
3324
* TSROUND() is needed to more accurately produce whole numbers where
3325
3325
* appropriate.
0 commit comments