Commit 2adff4b2 authored by Tom Lane's avatar Tom Lane

Remove bogus Assert from AbsoluteTimeIsBefore(). (If you don't think

it's bogus, try building a btree index on the regress tests' abstime_tbl.)
parent a43f20cb
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* *
...@@ -432,14 +432,11 @@ nabstimeout(PG_FUNCTION_ARGS) ...@@ -432,14 +432,11 @@ nabstimeout(PG_FUNCTION_ARGS)
/* /*
* AbsoluteTimeIsBefore -- true iff time1 is before time2. * AbsoluteTimeIsBefore -- true iff time1 is before time2.
* AbsoluteTimeIsBefore -- true iff time1 is after time2. * AbsoluteTimeIsAfter -- true iff time1 is after time2.
*/ */
bool bool
AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2) AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
{ {
Assert(AbsoluteTimeIsValid(time1));
Assert(AbsoluteTimeIsValid(time2));
if (time1 == CURRENT_ABSTIME) if (time1 == CURRENT_ABSTIME)
time1 = GetCurrentTransactionStartTime(); time1 = GetCurrentTransactionStartTime();
...@@ -453,9 +450,6 @@ AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2) ...@@ -453,9 +450,6 @@ AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
bool bool
AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2) AbsoluteTimeIsAfter(AbsoluteTime time1, AbsoluteTime time2)
{ {
Assert(AbsoluteTimeIsValid(time1));
Assert(AbsoluteTimeIsValid(time2));
if (time1 == CURRENT_ABSTIME) if (time1 == CURRENT_ABSTIME)
time1 = GetCurrentTransactionStartTime(); time1 = GetCurrentTransactionStartTime();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment