Use -1 for no limit for ivfflat.max_probes [skip ci]

This commit is contained in:
Andrew Kane
2024-10-11 11:43:32 -07:00
parent 42af8aa1d1
commit d1ebb8db73
5 changed files with 54 additions and 14 deletions

View File

@@ -46,8 +46,8 @@ IvfflatInit(void)
IVFFLAT_ITERATIVE_SEARCH_OFF, ivfflat_iterative_search_options, PGC_USERSET, 0, NULL, NULL, NULL);
DefineCustomIntVariable("ivfflat.max_probes", "Sets the max number of probes for iterative search",
"Zero sets to the number of lists", &ivfflat_max_probes,
0, 0, IVFFLAT_MAX_LISTS, PGC_USERSET, 0, NULL, NULL, NULL);
"-1 means no limit", &ivfflat_max_probes,
-1, -1, IVFFLAT_MAX_LISTS, PGC_USERSET, 0, NULL, NULL, NULL);
MarkGUCPrefixReserved("ivfflat");
}