Remove bogus Assert from AbsoluteTimeIsBefore(). (If you don't think
authorTom Lane
Thu, 26 Apr 2001 21:52:17 +0000 (21:52 +0000)
committerTom Lane
Thu, 26 Apr 2001 21:52:17 +0000 (21:52 +0000)
it's bogus, try building a btree index on the regress tests' abstime_tbl.)

src/backend/utils/adt/nabstime.c

index 972ca7a67fa88d4693e36da5ef5091737f86f3c0..69ae1f17027742bc3210d8d9f5afc66c9a077265 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.83 2001/03/22 03:59:52 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.84 2001/04/26 21:52:17 tgl Exp $
  *
  * NOTES
  *
@@ -432,14 +432,11 @@ nabstimeout(PG_FUNCTION_ARGS)
 
 /*
  * AbsoluteTimeIsBefore -- true iff time1 is before time2.
- * AbsoluteTimeIsBefore -- true iff time1 is after time2.
+ * AbsoluteTimeIsAfter -- true iff time1 is after time2.
  */
 bool
 AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
 {
-   Assert(AbsoluteTimeIsValid(time1));
-   Assert(AbsoluteTimeIsValid(time2));
-
    if (time1 == CURRENT_ABSTIME)
        time1 = GetCurrentTransactionStartTime();
 
@@ -453,9 +450,6 @@ AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
 bool
 AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2)
 {
-   Assert(AbsoluteTimeIsValid(time1));
-   Assert(AbsoluteTimeIsValid(time2));
-
    if (time1 == CURRENT_ABSTIME)
        time1 = GetCurrentTransactionStartTime();