Merge branch 'main' into m3hm3t/pg18_fix_remaining_index_search

pull/8332/head
Mehmet YILMAZ 2025-11-13 10:58:22 +03:00 committed by GitHub
commit 9be75390e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 34 additions and 15 deletions

View File

@ -204,18 +204,24 @@ $$
t t
(1 row) (1 row)
SELECT columnar_test_helpers.uses_custom_scan ( BEGIN;
$$ SET LOCAL enable_indexscan TO 'OFF';
SELECT a FROM full_correlated WHERE a=0 OR a=5; SET LOCAL enable_bitmapscan TO 'OFF';
$$ SELECT columnar_test_helpers.uses_custom_scan (
); $$
SELECT a FROM full_correlated WHERE a=0 OR a=5;
$$
);
uses_custom_scan uses_custom_scan
--------------------------------------------------------------------- ---------------------------------------------------------------------
t t
(1 row) (1 row)
ROLLBACK;
BEGIN; BEGIN;
SET LOCAL columnar.enable_custom_scan TO 'OFF'; SET LOCAL columnar.enable_custom_scan TO 'OFF';
SET LOCAL enable_indexscan TO 'OFF';
SET LOCAL enable_bitmapscan TO 'OFF';
SELECT columnar_test_helpers.uses_seq_scan ( SELECT columnar_test_helpers.uses_seq_scan (
$$ $$
SELECT a FROM full_correlated WHERE a=0 OR a=5; SELECT a FROM full_correlated WHERE a=0 OR a=5;

View File

@ -204,18 +204,24 @@ $$
t t
(1 row) (1 row)
SELECT columnar_test_helpers.uses_custom_scan ( BEGIN;
$$ SET LOCAL enable_indexscan TO 'OFF';
SELECT a FROM full_correlated WHERE a=0 OR a=5; SET LOCAL enable_bitmapscan TO 'OFF';
$$ SELECT columnar_test_helpers.uses_custom_scan (
); $$
SELECT a FROM full_correlated WHERE a=0 OR a=5;
$$
);
uses_custom_scan uses_custom_scan
--------------------------------------------------------------------- ---------------------------------------------------------------------
t t
(1 row) (1 row)
ROLLBACK;
BEGIN; BEGIN;
SET LOCAL columnar.enable_custom_scan TO 'OFF'; SET LOCAL columnar.enable_custom_scan TO 'OFF';
SET LOCAL enable_indexscan TO 'OFF';
SET LOCAL enable_bitmapscan TO 'OFF';
SELECT columnar_test_helpers.uses_seq_scan ( SELECT columnar_test_helpers.uses_seq_scan (
$$ $$
SELECT a FROM full_correlated WHERE a=0 OR a=5; SELECT a FROM full_correlated WHERE a=0 OR a=5;

View File

@ -141,14 +141,21 @@ SELECT a FROM full_correlated WHERE a>200;
$$ $$
); );
SELECT columnar_test_helpers.uses_custom_scan (
$$ BEGIN;
SELECT a FROM full_correlated WHERE a=0 OR a=5; SET LOCAL enable_indexscan TO 'OFF';
$$ SET LOCAL enable_bitmapscan TO 'OFF';
); SELECT columnar_test_helpers.uses_custom_scan (
$$
SELECT a FROM full_correlated WHERE a=0 OR a=5;
$$
);
ROLLBACK;
BEGIN; BEGIN;
SET LOCAL columnar.enable_custom_scan TO 'OFF'; SET LOCAL columnar.enable_custom_scan TO 'OFF';
SET LOCAL enable_indexscan TO 'OFF';
SET LOCAL enable_bitmapscan TO 'OFF';
SELECT columnar_test_helpers.uses_seq_scan ( SELECT columnar_test_helpers.uses_seq_scan (
$$ $$
SELECT a FROM full_correlated WHERE a=0 OR a=5; SELECT a FROM full_correlated WHERE a=0 OR a=5;