Skip to content

Commit 78ed8f1

Browse files
committed
Fixed compilation error with Postgres 18 - fixes pgvector#779
1 parent f11e4d7 commit 78ed8f1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/hnswvacuum.c

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include "storage/lmgr.h"
1010
#include "utils/memutils.h"
1111

12+
#if PG_VERSION_NUM >= 180000
13+
#define vacuum_delay_point() vacuum_delay_point(false)
14+
#endif
15+
1216
/*
1317
* Check if deleted list contains an index TID
1418
*/

src/ivfvacuum.c

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include "ivfflat.h"
66
#include "storage/bufmgr.h"
77

8+
#if PG_VERSION_NUM >= 180000
9+
#define vacuum_delay_point() vacuum_delay_point(false)
10+
#endif
11+
812
/*
913
* Bulk delete tuples from the index
1014
*/

0 commit comments

Comments
 (0)