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

Commit2832e74

Browse files
ankanejkatz
andcommitted
Use get_float8_infinity instead of INFINITY
Co-authored-by: "Jonathan S. Katz" <jkatz@amazon.com>
1 parent961cb17 commit2832e74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/hnswscan.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#include"postgres.h"
22

3-
#include<math.h>
4-
53
#include"access/relscan.h"
64
#include"hnsw.h"
75
#include"pgstat.h"
86
#include"storage/bufmgr.h"
97
#include"storage/lmgr.h"
8+
#include"utils/float.h"
109
#include"utils/memutils.h"
1110

1211
/*
@@ -147,7 +146,7 @@ hnswrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int no
147146

148147
so->first= true;
149148
so->tuples=0;
150-
so->previousDistance=-INFINITY;
149+
so->previousDistance=-get_float8_infinity();
151150
MemoryContextReset(so->tmpCtx);
152151

153152
if (keys&&scan->numberOfKeys>0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp