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

Commita03dc5b

Browse files
committed
Added fields to IndexAmRoutine for Postgres 18 [skip ci]
1 parentd365aac commita03dc5b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

‎src/hnsw.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ hnswhandler(PG_FUNCTION_ARGS)
259259
amroutine->amoptsprocnum=0;
260260
amroutine->amcanorder= false;
261261
amroutine->amcanorderbyop= true;
262+
#ifPG_VERSION_NUM >=180000
263+
amroutine->amcanhash= false;
264+
amroutine->amconsistentequality= false;
265+
amroutine->amconsistentordering= false;
266+
#endif
262267
amroutine->amcanbackward= false;/* can change direction mid-scan */
263268
amroutine->amcanunique= false;
264269
amroutine->amcanmulticol= false;
@@ -291,6 +296,9 @@ hnswhandler(PG_FUNCTION_ARGS)
291296
amroutine->amvacuumcleanup=hnswvacuumcleanup;
292297
amroutine->amcanreturn=NULL;
293298
amroutine->amcostestimate=hnswcostestimate;
299+
#ifPG_VERSION_NUM >=180000
300+
amroutine->amgettreeheight=NULL;
301+
#endif
294302
amroutine->amoptions=hnswoptions;
295303
amroutine->amproperty=NULL;/* TODO AMPROP_DISTANCE_ORDERABLE */
296304
amroutine->ambuildphasename=hnswbuildphasename;
@@ -311,5 +319,10 @@ hnswhandler(PG_FUNCTION_ARGS)
311319
amroutine->aminitparallelscan=NULL;
312320
amroutine->amparallelrescan=NULL;
313321

322+
#ifPG_VERSION_NUM >=180000
323+
amroutine->amtranslatestrategy=NULL;
324+
amroutine->amtranslatecmptype=NULL;
325+
#endif
326+
314327
PG_RETURN_POINTER(amroutine);
315328
}

‎src/ivfflat.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ ivfflathandler(PG_FUNCTION_ARGS)
186186
amroutine->amoptsprocnum=0;
187187
amroutine->amcanorder= false;
188188
amroutine->amcanorderbyop= true;
189+
#ifPG_VERSION_NUM >=180000
190+
amroutine->amcanhash= false;
191+
amroutine->amconsistentequality= false;
192+
amroutine->amconsistentordering= false;
193+
#endif
189194
amroutine->amcanbackward= false;/* can change direction mid-scan */
190195
amroutine->amcanunique= false;
191196
amroutine->amcanmulticol= false;
@@ -218,6 +223,9 @@ ivfflathandler(PG_FUNCTION_ARGS)
218223
amroutine->amvacuumcleanup=ivfflatvacuumcleanup;
219224
amroutine->amcanreturn=NULL;/* tuple not included in heapsort */
220225
amroutine->amcostestimate=ivfflatcostestimate;
226+
#ifPG_VERSION_NUM >=180000
227+
amroutine->amgettreeheight=NULL;
228+
#endif
221229
amroutine->amoptions=ivfflatoptions;
222230
amroutine->amproperty=NULL;/* TODO AMPROP_DISTANCE_ORDERABLE */
223231
amroutine->ambuildphasename=ivfflatbuildphasename;
@@ -238,5 +246,10 @@ ivfflathandler(PG_FUNCTION_ARGS)
238246
amroutine->aminitparallelscan=NULL;
239247
amroutine->amparallelrescan=NULL;
240248

249+
#ifPG_VERSION_NUM >=180000
250+
amroutine->amtranslatestrategy=NULL;
251+
amroutine->amtranslatecmptype=NULL;
252+
#endif
253+
241254
PG_RETURN_POINTER(amroutine);
242255
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp