Commit Graph

90 Commits

Author SHA1 Message Date
a50f3eeb7d !5818 【SMP】support parallel index scan
Merge pull request !5818 from 赵森/master
2024-08-20 06:07:56 +00:00
84f04a56d1 解决samplescan行数估算差距大,执行计划选择错误导致的性能问题 2024-08-15 15:26:05 +08:00
74820dfb3c clean code && remove guc parameter smp_thread_cost 2024-08-09 12:29:55 +08:00
777d935e39 fix #62414445 btree: Support parallel index scans. #62414492 add index cost model in optimizer add smp thread cots add executor support for parallel index scans
Please enter the commit message for your changes. Lines starting
2024-07-29 13:45:48 +08:00
7b978ac042 !5782 【Ustore】seq scan支持并行SMP
Merge pull request !5782 from 赵森/ustore_seqscan_smp
2024-07-26 08:04:23 +00:00
4abafc6b22 ustore support seq scan smp 2024-07-16 17:41:45 +08:00
c59d0861dc TO_BINARY_FLOAT 函数实现、IS [NOT] NAN与IS [NOT] INFINITE表达式实现 2024-07-16 14:15:35 +08:00
e628f4c1c5 MySql兼容性增强 2024-07-12 14:27:46 +08:00
ca44bc145f dolphin: add null first policy api 2024-06-27 22:02:17 +08:00
978f6515d8 需求:SELECT语句支持sample子句,实现数据采样 2024-06-27 14:05:48 +08:00
141fedd890 合入PG补丁,从非扁平子查询中删除不必要的输出表达式。
PG提交号:55d5b3c08279b487cfa44d4b6e6eea67a0af89e4
Remove unnecessary output expressions from unflattened subqueries.

If a sub-select-in-FROM gets flattened into the upper query, then we
naturally get rid of any output columns that are defined in the sub-select
text but not actually used in the upper query.  However, this doesn't
happen when it's not possible to flatten the subquery, for example because
it contains GROUP BY, LIMIT, etc.  Allowing the subquery to compute useless
output columns is often fairly harmless, but sometimes it has significant
performance cost: the unused output might be an expensive expression,
or it might be a Var from a relation that we could remove entirely (via
the join-removal logic) if only we realized that we didn't really need
that Var.  Situations like this are common when expanding views, so it
seems worth taking the trouble to detect and remove unused outputs.

Because the upper query's Var numbering for subquery references depends on
positions in the subquery targetlist, we don't want to renumber the items
we leave behind.  Instead, we can implement "removal" by replacing the
unwanted expressions with simple NULL constants.  This wastes a few cycles
at runtime, but not enough to justify more work in the planner.

以及补丁:a4c35ea1c2f05dd5b56739fcd0dc36a4870ea0c0
Improve parser's and planner's handling of set-returning functions.
补丁:9d4444a6fc011b7e2ca16386cf9f1c9f25c114e5
Preserve exposed type of subquery outputs when substituting NULLs.

关于 remove_unused_subquery_outputs 的修改
2024-03-18 11:14:38 +08:00
91dc05f384 1、CREATE TABLE和ALTER TABLE唯一约束语法支持前缀键;
2、解决前缀键bitmapscan结果集问题;
3、b模式字符序前缀键适配like条件
4、修复like操作符字符序与索引键字符序不同时结果集问题
2024-03-12 10:49:43 +08:00
926f9e6099 分区表null值分区 2024-02-27 11:11:37 +08:00
adca47f386 需求issue修改:修改当模糊匹配的前缀长度大于填充后总长度时的不正常报错 2024-02-18 16:06:48 +08:00
21e22158ac 需求:B兼容性下字段模糊匹配支持走索引扫描 2024-02-05 11:50:44 +08:00
6f340bda57 1. 编译速度提升;2. 编译依赖项优化:依赖的文件未修改时不会重新编译生成 2024-01-25 15:38:52 +08:00
6565fc12ff !4378 修复inner unique + 开启query_dop下宕机问题
Merge pull request !4378 from cc_db_dev/fix_inner_unique
2023-12-25 12:55:03 +00:00
49824ec77f !3325 opengauss开启继承表
Merge pull request !3325 from 雷紫薇/rel122582
2023-12-14 01:10:54 +00:00
32a8ab38bf 开启继承表,添加相关测试用例、修改估计器统计继承表子表、禁止在b库创建继承表,因为它和b库多表更新冲突 2023-12-12 11:17:31 +00:00
268429082a 将和List_Hash_Range分区类型共性的部分抽出,简化实现中大量的强转逻辑 2023-12-12 17:23:05 +08:00
5aabed7f50 修复inner unique处理createpath缺陷
在query_dop开启(大于1)的情况下,createMergejoinPath/createNestloopPath等路径
生成跟query_dop=1的情况为不同的函数,inner unique相关逻辑没有处理,导致执行时宕机
现将该变量正确赋值
2023-11-02 16:24:40 +08:00
ffbc0ac3b7 兼容MySQL多字符集 2023-06-29 20:42:59 +08:00
ce4909dc18 !3548 IUD底噪消除
Merge pull request !3548 from tangxiao/master_pr
2023-06-20 03:25:08 +00:00
2b37798c02 IUD底噪等合入 2023-06-17 00:24:02 -07:00
a99097439c iud性能提升 2023-06-14 19:50:34 -07:00
a1ec02e7a5 !3363 IndexScan优化
Merge pull request !3363 from yyl/4-20-commit
2023-06-12 03:37:30 +00:00
4aca86c51d IndexScan优化 2023-06-06 12:15:29 +08:00
c1ff2fe6a8 !3023 bitmapscan优化
Merge pull request !3023 from ab2020c/master_bitmap
2023-06-01 11:41:49 +00:00
38bfef3239 !3282 引入PG补丁 45be99f8 计算并行SeqScan代价新公式
Merge pull request !3282 from xiyanziran/master_dopcost
2023-06-01 11:36:14 +00:00
658aea19b8 聚集Limit下推优化 2023-05-29 14:43:02 +08:00
fb535d14e9 bitmapscan优化
1.bitmapand路径选择时没有根据索引扫描代价进行排序修改
2.BitmapHeapPrefetchNext逻辑调整
2023-05-26 12:10:57 +08:00
0b8aa8cde5 引入PG补丁 45be99f8 计算并行SeqScan代价新公式,使用开关控制,默认不开启。
磁盘代价作为整体计入Seqscan代价,不再按照线程数平均。
2023-04-02 23:12:35 -04:00
415a621a1e Add 'replicate path' judge to single node when set join distribute keys
Offering: openGaussDev

More detail: The single node also can generate 'replicate path' to parall, so need
add 'replicate path' judge when set join distribute keys

(cherry picked from commit 967c3e6aa443818eee66313fd98625e88ce80ac5)
Signed-off-by:  <hw.mengjuncai@huawei.com>

Match-id-219af804df439fe8d9e8923f444df492020da5da
2023-03-13 22:13:01 +08:00
d639b6b943 !3021 合入PR: Bitmap Index Scan optimization,使用宏和模板重构bitmap使用的hashtable
Merge pull request !3021 from yyl/3-3bitmmap
2023-03-08 01:43:47 +00:00
58e6120553 !2998 SRF执行优化
* fix srf factcheck case
* SRF执行优化
2023-03-06 09:29:04 +00:00
93b27dc49f 合入PR: Bitmap Index Scan optimization,使用宏和模板重构bitmap使用的hashtable 2023-03-04 14:24:13 +08:00
9e57ff3e8e Inner Unique 2023-02-28 05:11:41 -08:00
f7d23913d6 sync all inner code 2023-02-27 14:08:20 +08:00
14612cfaf0 函数JoinPathGenBase::streamSidePath内最后return NULL为冗余代码 2023-01-06 14:53:42 +08:00
b15c245a18 支持or表达式的谓词提取下推,为sql_bate_feature新增选项来控制这个功能 2022-12-22 18:49:41 +08:00
f995bd2209 pgfdw support join\agg\sort\limit\lockrows 2022-12-05 11:11:33 +08:00
ef0ab20012 support updatable view 2022-12-02 16:26:58 +08:00
494d3b1ccc fix indexonlyscan disabled when disable indexscan 2022-11-29 20:53:02 +08:00
1a9ace9d8c pathkeys正则化,解决sql语句使用ORDER BY 排序前后结果不一致的问题 2022-11-02 18:46:19 +08:00
b919f404e8 add openGauss 3.1.0 feature code 2022-09-03 16:22:35 +08:00
056317bad3 支持前缀索引
Offering: GaussDB Kernel

More detail:
1、支持前缀索引创建
2、支持前缀索引匹配
2022-09-01 09:21:18 +08:00
f5d6b792b3 fix err pruningRatio expr and misstake code 2022-03-17 14:25:09 +08:00
c426a575e3 submit code to openGauss-server
Offering: openGaussDev

More detail:range分区表PBE单分区剪枝

Signed-off-by:lihaixiao lihaixiao3@huawei.com

Match-id-a88ff128079ca680f33a7419eeab078bacf466d6
2022-03-14 19:34:40 +08:00
de223dd152 sync code 2022-03-04 23:22:16 +08:00
c7b25efcff New features (and bug fixes)
1. alter large sequence
    2. subpartition
    2.1 split subpartition
    2.2 truncate subpartition
    3. 支持load
    4. 支持start-with/connect-by
    5. ...
2021-12-29 21:33:28 +08:00