提交 77e1206e 编写于 作者: H Heikki Linnakangas

Prefer index scans in partition pruning tests.

The original TINC tests where these were copied for tested specifically
that ORCA can use Dynamic Index Scans for these queries. To be closer to
that spirit, even when running without ORCA, try to use index scans when
possible. It exercises more codepaths in the planner anyway, and allows
us to notice more easily if the planner loses the ability to use an index
for some reason.
上级 fbe0b0a7
......@@ -7,6 +7,11 @@
-- the planner and the rest of the system, so the expected output can need
-- updating, as the system improves.
--
-- Use index scans when possible. That exercises more code, and allows us to
-- spot the cases where the planner cannot use even when it exists.
set enable_seqscan=off;
set enable_bitmapscan=on;
set enable_indexscan=on;
-- Set up common test tables.
CREATE TABLE pt_lt_tab
(
......
......@@ -8,6 +8,12 @@
-- updating, as the system improves.
--
-- Use index scans when possible. That exercises more code, and allows us to
-- spot the cases where the planner cannot use even when it exists.
set enable_seqscan=off;
set enable_bitmapscan=on;
set enable_indexscan=on;
-- Set up common test tables.
CREATE TABLE pt_lt_tab
(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册