Fix misleading watermark threshold error message

This commit fixes a misleading error message when we get more than one
invalidation threshold message for a continuous aggregate.
This commit is contained in:
Jan Nidzwetzki 2024-02-14 22:56:07 +01:00 committed by Jan Nidzwetzki
parent 8d8f158302
commit 95bf4349d0

View File

@ -473,12 +473,11 @@ get_lowest_invalidated_time_for_hypertable(Oid hypertable_relid)
.result_mctx = NULL,
};
/* if we don't find any watermark, then we've never done any materialization
* we'll treat this as if the invalidation timestamp is at min value, since
* the first materialization needs to scan the entire table anyway; the
* invalidations are redundant.
/* If we don't find any invalidation threshold watermark, then we've never done any
* materialization we'll treat this as if the invalidation timestamp is at min value, since the
* first materialization needs to scan the entire table anyway; the invalidations are redundant.
*/
if (!ts_scanner_scan_one(&scanctx, false, "invalidation watermark"))
if (!ts_scanner_scan_one(&scanctx, false, "invalidation threshold watermark"))
return INVAL_NEG_INFINITY;
return min_val;