8000 Added Postgres 18 to CI [skip ci] · postgrespro/pgvector@1291b12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1291b12

Browse files
committed
Added Postgres 18 to CI [skip ci]
1 parent 2452270 commit 1291b12

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
fail-fast: false
99
matrix:
1010
include:
11-
# - postgres: 18
12-
# os: ubuntu-24.04
11+
- postgres: 18
12+
os: ubuntu-24.04
1313
- postgres: 17
1414
os: ubuntu-24.04
1515
- postgres: 16

src/hnsw.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
131131
*indexSelectivity = 0;
132132
*indexCorrelation = 0;
133133
*indexPages = 0;
134+
#if PG_VERSION_NUM >= 180000
135+
/* See "On disable_cost" thread on pgsql-hackers */
136+
path->path.disabled_nodes = 2;
137+
#endif
134138
return;
135139
}
136140

src/ivfflat.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count,
9999
*indexSelectivity = 0;
100100
*indexCorrelation = 0;
101101
*indexPages = 0;
102+
#if PG_VERSION_NUM >= 180000
103+
/* See "On disable_cost" thread on pgsql-hackers */
104+
path->path.disabled_nodes = 2;
105+
#endif
102106
return;
103107
}
104108

0 commit comments

Comments
 (0)
0