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

Commitea99957

Browse files
committed
Added fields to IndexAmRoutine
1 parent4cede1a commitea99957

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

‎src/hnsw.c‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,17 @@ hnswhandler(PG_FUNCTION_ARGS)
210210
amroutine->amclusterable= false;
211211
amroutine->ampredlocks= false;
212212
amroutine->amcanparallel= false;
213+
#ifPG_VERSION_NUM >=170000
214+
amroutine->amcanbuildparallel= true;
215+
#endif
213216
amroutine->amcaninclude= false;
214217
#ifPG_VERSION_NUM >=130000
215218
amroutine->amusemaintenanceworkmem= false;/* not used during VACUUM */
219+
#endif
220+
#ifPG_VERSION_NUM >=160000
221+
amroutine->amsummarizing= false;
222+
#endif
223+
#ifPG_VERSION_NUM >=130000
216224
amroutine->amparallelvacuumoptions=VACUUM_OPTION_PARALLEL_BULKDEL;
217225
#endif
218226
amroutine->amkeytype=InvalidOid;
@@ -221,6 +229,9 @@ hnswhandler(PG_FUNCTION_ARGS)
221229
amroutine->ambuild=hnswbuild;
222230
amroutine->ambuildempty=hnswbuildempty;
223231
amroutine->aminsert=hnswinsert;
232+
#ifPG_VERSION_NUM >=170000
233+
amroutine->aminsertcleanup=NULL;
234+
#endif
224235
amroutine->ambulkdelete=hnswbulkdelete;
225236
amroutine->amvacuumcleanup=hnswvacuumcleanup;
226237
amroutine->amcanreturn=NULL;

‎src/ivfflat.c‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,17 @@ ivfflathandler(PG_FUNCTION_ARGS)
204204
amroutine->amclusterable= false;
205205
amroutine->ampredlocks= false;
206206
amroutine->amcanparallel= false;
207+
#ifPG_VERSION_NUM >=170000
208+
amroutine->amcanbuildparallel= true;
209+
#endif
207210
amroutine->amcaninclude= false;
208211
#ifPG_VERSION_NUM >=130000
209212
amroutine->amusemaintenanceworkmem= false;/* not used during VACUUM */
213+
#endif
214+
#ifPG_VERSION_NUM >=160000
215+
amroutine->amsummarizing= false;
216+
#endif
217+
#ifPG_VERSION_NUM >=130000
210218
amroutine->amparallelvacuumoptions=VACUUM_OPTION_PARALLEL_BULKDEL;
211219
#endif
212220
amroutine->amkeytype=InvalidOid;
@@ -215,6 +223,9 @@ ivfflathandler(PG_FUNCTION_ARGS)
215223
amroutine->ambuild=ivfflatbuild;
216224
amroutine->ambuildempty=ivfflatbuildempty;
217225
amroutine->aminsert=ivfflatinsert;
226+
#ifPG_VERSION_NUM >=170000
227+
amroutine->aminsertcleanup=NULL;
228+
#endif
218229
amroutine->ambulkdelete=ivfflatbulkdelete;
219230
amroutine->amvacuumcleanup=ivfflatvacuumcleanup;
220231
amroutine->amcanreturn=NULL;/* tuple not included in heapsort */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp