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

Commit2dc392e

Browse files
committed
Updated GUC names [skip ci]
1 parent960d284 commit2dc392e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

‎src/hnsw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
staticconststructconfig_enum_entryhnsw_iterative_search_options[]= {
2222
{"off",HNSW_ITERATIVE_SEARCH_OFF, false},
23-
{"on",HNSW_ITERATIVE_SEARCH_RELAXED, false},
24-
{"strict",HNSW_ITERATIVE_SEARCH_STRICT, false},
23+
{"relaxed_order",HNSW_ITERATIVE_SEARCH_RELAXED, false},
24+
{"strict_order",HNSW_ITERATIVE_SEARCH_STRICT, false},
2525
{NULL,0, false}
2626
};
2727

‎src/ivfflat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static relopt_kind ivfflat_relopt_kind;
2323

2424
staticconststructconfig_enum_entryivfflat_iterative_search_options[]= {
2525
{"off",IVFFLAT_ITERATIVE_SEARCH_OFF, false},
26-
{"on",IVFFLAT_ITERATIVE_SEARCH_RELAXED, false},
26+
{"relaxed_order",IVFFLAT_ITERATIVE_SEARCH_RELAXED, false},
2727
{NULL,0, false}
2828
};
2929

‎test/t/041_ivfflat_iterative_search.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
my$count =$node->safe_psql("postgres",qq(
2424
SET enable_seqscan = off;
2525
SET ivfflat.probes = 10;
26-
SET ivfflat.iterative_search =on;
26+
SET ivfflat.iterative_search =relaxed_order;
2727
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 11) t;
2828
));
2929
is($count, 10);
@@ -39,7 +39,7 @@
3939
$count =$node->safe_psql("postgres",qq(
4040
SET enable_seqscan = off;
4141
SET ivfflat.probes = 10;
42-
SET ivfflat.iterative_search =on;
42+
SET ivfflat.iterative_search =relaxed_order;
4343
SET ivfflat.iterative_search_max_probes =$max_probes;
4444
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst WHERE i =$i) LIMIT 11) t;
4545
));

‎test/t/042_ivfflat_iterative_search_recall.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sub test_recall
1919
my$explain =$node->safe_psql("postgres",qq(
2020
SET enable_seqscan = off;
2121
SET ivfflat.probes =$probes;
22-
SET ivfflat.iterative_search =on;
22+
SET ivfflat.iterative_search =relaxed_order;
2323
EXPLAIN ANALYZE SELECT i FROM tst WHERE i %$c = 0 ORDER BY v$operator '$queries[0]' LIMIT$limit;
2424
));
2525
like($explain,qr/Index Scan using idx on tst/);
@@ -29,7 +29,7 @@ sub test_recall
2929
my$actual =$node->safe_psql("postgres",qq(
3030
SET enable_seqscan = off;
3131
SET ivfflat.probes =$probes;
32-
SET ivfflat.iterative_search =on;
32+
SET ivfflat.iterative_search =relaxed_order;
3333
SELECT i FROM tst WHERE i %$c = 0 ORDER BY v$operator '$queries[$i]' LIMIT$limit;
3434
));
3535
my@actual_ids =split("\n",$actual);

‎test/t/043_hnsw_iterative_search.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
my$count =$node->safe_psql("postgres",qq(
2828
SET enable_seqscan = off;
29-
SET hnsw.iterative_search =on;
29+
SET hnsw.iterative_search =relaxed_order;
3030
SET work_mem = '8MB';
3131
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 11) t;
3232
));
@@ -42,7 +42,7 @@
4242
{
4343
$count =$node->safe_psql("postgres",qq(
4444
SET enable_seqscan = off;
45-
SET hnsw.iterative_search =on;
45+
SET hnsw.iterative_search =relaxed_order;
4646
SET hnsw.iterative_search_max_tuples =$max_tuples;
4747
SET work_mem = '8MB';
4848
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst WHERE i =$i) LIMIT 11) t;
@@ -57,7 +57,7 @@
5757

5858
my ($ret,$stdout,$stderr) =$node->psql("postgres",qq(
5959
SET enable_seqscan = off;
60-
SET hnsw.iterative_search =on;
60+
SET hnsw.iterative_search =relaxed_order;
6161
SET client_min_messages = debug1;
6262
SET work_mem = '2MB';
6363
SELECT COUNT(*) FROM (SELECT v FROM tst WHERE i % 10000 = 0 ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 11) t;

‎test/t/044_hnsw_iterative_search_recall.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sub test_recall
2121
my$explain =$node->safe_psql("postgres",qq(
2222
SET enable_seqscan = off;
2323
SET hnsw.ef_search =$ef_search;
24-
SET hnsw.iterative_search =on;
24+
SET hnsw.iterative_search =relaxed_order;
2525
EXPLAIN ANALYZE SELECT i FROM tst WHERE i %$c = 0 ORDER BY v$operator '$queries[0]' LIMIT$limit;
2626
));
2727
like($explain,qr/Index Scan using idx on tst/);
@@ -31,7 +31,7 @@ sub test_recall
3131
my$actual =$node->safe_psql("postgres",qq(
3232
SET enable_seqscan = off;
3333
SET hnsw.ef_search =$ef_search;
34-
SET hnsw.iterative_search =on;
34+
SET hnsw.iterative_search =relaxed_order;
3535
SELECT i FROM tst WHERE i %$c = 0 ORDER BY v$operator '$queries[$i]' LIMIT$limit;
3636
));
3737
my@actual_ids =split("\n",$actual);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp