Commit Graph

43 Commits

Author SHA1 Message Date
4abafc6b22 ustore support seq scan smp 2024-07-16 17:41:45 +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
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
58e6120553 !2998 SRF执行优化
* fix srf factcheck case
* SRF执行优化
2023-03-06 09:29:04 +00:00
f7d23913d6 sync all inner code 2023-02-27 14:08:20 +08:00
b15c245a18 支持or表达式的谓词提取下推,为sql_bate_feature新增选项来控制这个功能 2022-12-22 18:49:41 +08:00
ef0ab20012 support updatable view 2022-12-02 16:26:58 +08:00
b919f404e8 add openGauss 3.1.0 feature code 2022-09-03 16:22:35 +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
1d540f4462 Patch for 930 release 2021-09-23 15:19:37 +08:00
syj
23b2a58551 分区表代码优化。
1.修复分区表剪枝比例的计算。
  2.删除GetPartitionInfo函数中对传入的剪枝结果进行深拷贝的操作。
  3.优化分区表SQLByPass对分区IndexOid的获取。
2021-03-13 16:47:08 +08:00
3d79c59118 Misc bugfixes 2021-03-06 12:39:28 +08:00
802f28f140 Extract restriction OR clauses whether or not they are indexable 2021-01-09 11:11:23 +08:00
1567043064 同步source code
日期: 12-26
    revision: ee5b054c
2020-12-28 22:19:21 +08:00
b7337ff802 !467 Extract restriction OR clauses whether or not they are indexable.
Merge pull request !467 from 吴岳川/master
2020-12-28 20:36:23 +08:00
a3f1eca911 Extract restriction OR clauses whether or not they are indexable. 2020-12-07 12:33:34 +08:00
381e9c5485 Parallel query for subplan/sublink. 2020-12-07 11:47:38 +08:00
8f0c2915f8 Parallel bitmap scan. 2020-12-07 11:46:41 +08:00
f5acad12d6 paralllel hash: inner parallel 2020-11-25 12:23:58 +08:00
d29b23cf57 Revert "parallel hash: inner parallel"
This reverts commit 974b2312
2020-11-25 12:11:10 +08:00
974b231240 parallel hash: inner parallel 2020-11-24 14:19:05 +08:00
57fd5794e5 Parallel create index(btree). 2020-11-13 16:57:32 +08:00
cef0933c9b Remove have_gather_plan_node. 2020-11-10 14:08:15 +08:00
35f6cc72a5 Parallel merge join. 2020-11-10 09:57:11 +08:00
c45feed3e4 parallel index scans 2020-11-05 16:52:53 +08:00
9cd5c33ea2 !353 并行查询-并行worker不执行CallXactCallBacks
Merge pull request !353 from TotaJ/bugfix/parallel_xactcall
2020-10-30 11:46:05 +08:00
fea70c2159 parallel append 2020-10-30 10:54:05 +08:00
7d3d00f643 Don't do CallXactCallbacks for parallel worker. 2020-10-30 09:31:17 +08:00
e171752f13 MOT code cleanup 2020-10-12 18:03:03 +08:00
488ef7a22a nestedloop parallel search support 2020-09-28 16:05:35 +08:00
a201b8bf9a Bind numa node for parallel query. 2020-09-25 17:37:50 +08:00
5dfa9d8ed1 Parallel query, sequence scan. 2020-09-16 20:10:45 +08:00
c040d78287 code for Global-Partition-Index feature
Signed-off-by: xiliu <xiliu_h@163.com>
2020-08-28 16:31:25 +08:00
d5337ceca7 add materialized view feature to opengauss 2020-08-17 14:55:37 +08:00
b70b84d144 [PATCH] support ROWNUM in openGauss
Signed-off-by: pufuan <pu.fuan@139.com>
2020-07-25 15:36:50 +08:00
815a9771fb first commit for openGauss server 2020-06-30 17:38:27 +08:00