Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2adff4b

Browse files
committed
Remove bogus Assert from AbsoluteTimeIsBefore(). (If you don't think
it's bogus, try building a btree index on the regress tests' abstime_tbl.)
1 parenta43f20c commit2adff4b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/backend/utils/adt/nabstime.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.83 2001/03/22 03:59:52 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.84 2001/04/26 21:52:17 tgl Exp $
1313
*
1414
* NOTES
1515
*
@@ -432,14 +432,11 @@ nabstimeout(PG_FUNCTION_ARGS)
432432

433433
/*
434434
*AbsoluteTimeIsBefore -- true iff time1 is before time2.
435-
*AbsoluteTimeIsBefore -- true iff time1 is after time2.
435+
*AbsoluteTimeIsAfter -- true iff time1 is after time2.
436436
*/
437437
bool
438438
AbsoluteTimeIsBefore(AbsoluteTimetime1,AbsoluteTimetime2)
439439
{
440-
Assert(AbsoluteTimeIsValid(time1));
441-
Assert(AbsoluteTimeIsValid(time2));
442-
443440
if (time1==CURRENT_ABSTIME)
444441
time1=GetCurrentTransactionStartTime();
445442

@@ -453,9 +450,6 @@ AbsoluteTimeIsBefore(AbsoluteTime time1, AbsoluteTime time2)
453450
bool
454451
AbsoluteTimeIsAfter(AbsoluteTimetime1,AbsoluteTimetime2)
455452
{
456-
Assert(AbsoluteTimeIsValid(time1));
457-
Assert(AbsoluteTimeIsValid(time2));
458-
459453
if (time1==CURRENT_ABSTIME)
460454
time1=GetCurrentTransactionStartTime();
461455

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp