mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Fixed Index Searches in EXPLAIN output for Postgres 18
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.8.2 (unreleased)
|
||||||
|
|
||||||
|
- Fixed `Index Searches` in `EXPLAIN` output for Postgres 18
|
||||||
|
|
||||||
## 0.8.1 (2025-09-04)
|
## 0.8.1 (2025-09-04)
|
||||||
|
|
||||||
- Added support for Postgres 18 rc1
|
- Added support for Postgres 18 rc1
|
||||||
|
|||||||
@@ -193,6 +193,10 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
|
|
||||||
/* Count index scan for stats */
|
/* Count index scan for stats */
|
||||||
pgstat_count_index_scan(scan->indexRelation);
|
pgstat_count_index_scan(scan->indexRelation);
|
||||||
|
#if PG_VERSION_NUM >= 180000
|
||||||
|
if (scan->instrument)
|
||||||
|
scan->instrument->nsearches++;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Safety check */
|
/* Safety check */
|
||||||
if (scan->orderByData == NULL)
|
if (scan->orderByData == NULL)
|
||||||
|
|||||||
@@ -355,6 +355,10 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
|
|||||||
|
|
||||||
/* Count index scan for stats */
|
/* Count index scan for stats */
|
||||||
pgstat_count_index_scan(scan->indexRelation);
|
pgstat_count_index_scan(scan->indexRelation);
|
||||||
|
#if PG_VERSION_NUM >= 180000
|
||||||
|
if (scan->instrument)
|
||||||
|
scan->instrument->nsearches++;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Safety check */
|
/* Safety check */
|
||||||
if (scan->orderByData == NULL)
|
if (scan->orderByData == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user