Commit Graph

2862 Commits

Author SHA1 Message Date
0c5e9903ce improve the performance of computing the square root of numeric.
before optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=4.152..170690.136 rows=8388608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=4.150..169250.862 rows=8388608 loops=1)
 Total runtime: 171767.268 ms
(3 rows)

Time: 171768.179 ms

after optimization:
openGauss=#  explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN
-------------------------------------------------------------------------------------------------------------------------------
 Limit  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=3.850..129299.312 rows=8388608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..292129.20 rows=8468656 width=5) (actual time=3.848..127801.242 rows=8388608 loops=1)
 Total runtime: 130378.841 ms
(3 rows)

Time: 130379.709 ms
2022-08-04 14:25:23 +08:00
c56da72935 修复增量build时实际发生全量build的缺陷
增量build时,会计算源端与目标端的差异,此处没有对目标端文件大小进行赋值(即oldsize)变量,oldsize默认为0,这导致实际发生了全量build
2022-08-04 05:13:59 +00:00
8d4c1c3259 !1956 MOT code alignment with masstree 3rd party changes
Merge pull request !1956 from Vinoth Veeraraghavan/master
2022-08-03 13:42:08 +00:00
aa137b0064 修复slot_name包含特殊字符报错信息不正确问题 2022-08-03 20:02:37 +08:00
3ce6b6594c !1989 issue修复:ignore处理json与jsonb类型时,类型零值修正
Merge pull request !1989 from zhangzhixian/issue_fix_json_default
2022-08-03 10:07:01 +00:00
646de4fa52 !1977 issue修复:ignore插入时,插入值类型与目标类型无转换规则时,无法按目标类型的默认零值插入的问题修复
Merge pull request !1977 from zhangzhixian/issue_fix_I5IBOV
2022-08-03 10:05:58 +00:00
7fb3136528 !1923 CREATE VIEW 和 ALTER VIEW支持通过DEFINER选项指定视图的属主
Merge pull request !1923 from Cross-罗/definer
2022-08-03 06:36:12 +00:00
761fee37b8 CREATE VIEW和ALTER VIEW支持DEFINER 2022-08-03 11:38:44 +08:00
ea53267931 !1995 修复enable_global_syscache为off时连接B兼容性数据库的core问题
Merge pull request !1995 from chenxiaobin/egs
2022-08-02 11:27:51 +00:00
274f27348e !1997 修复to_timestamp函数报错信息有误的问题
Merge pull request !1997 from Cross-罗/to_timestamp
2022-08-02 11:25:32 +00:00
9aa4caff4f to_timestamp报错信息修复 2022-08-02 11:38:02 +08:00
07bf9b5a74 fix the bug of grpc lock initialization 2022-08-02 10:59:01 +08:00
0e6a31d358 fix connecting to b-dbcompatility database core dump when enable_global_syscache is off. 2022-08-02 09:48:14 +08:00
c5946bc1fe CREATE DATABASE等三种语法兼容IF NOT EXISTS 2022-08-01 17:18:39 +08:00
4c4dc36c80 !1993 修复复制槽名称长度为64,65时提示创建复制槽成功但是复制槽不存在的偶现问题
Merge pull request !1993 from 薛蒙恩/logicalslots
2022-08-01 06:37:39 +00:00
cd6341bbc2 !1881 mysql comment support: create table(column)/index comments
Merge pull request !1881 from 吴岳川/comment
2022-08-01 03:39:12 +00:00
33faa1a8ce 修复复制槽名称长度为64,65时提示创建复制槽成功但是复制槽不存在的偶现问题 2022-07-30 18:06:42 +08:00
6905965a0a do not support grant or revoke partial privilege in privilege list 2022-07-30 15:51:37 +08:00
451ed9c59e !1988 修复gtt文件宕机残留的问题
Merge pull request !1988 from 胡正超/gttfile
2022-07-30 07:20:46 +00:00
9ae40be0c8 !1933 修复log_destination某些设置下启动失败的问题
Merge pull request !1933 from 胡正超/master
2022-07-30 06:58:20 +00:00
648df1a8e3 !1990 修复多个客户端同时连接到B数据库时,出现并发创建dolphin插件导致连接失败的问题
Merge pull request !1990 from pengjiong/array
2022-07-30 02:45:53 +00:00
e91ae0c8cc issue修复:ignore插入时,若插入值类型与目标类型无转换规则,目标类型的默认零值无法被插入的问题修复 2022-07-30 10:01:24 +08:00
eab698a2eb fix gtt residual files after db breakdown 2022-07-30 09:51:42 +08:00
1c6332d508 Fix concurrent create dolphin bug. 2022-07-29 17:51:42 +08:00
03cf837af9 issue修复:ignore处理json与jsonb类型时,类型零值修改 2022-07-29 17:24:53 +08:00
6c8e569752 !1969 issue处理:ignore关键字在指定分区/二级分区插入,且插入分区键超出分区范围时,无法将error降级为warning问题修复
Merge pull request !1969 from zhangzhixian/master
2022-07-29 03:11:31 +00:00
7b7fc4ecf0 fix problem: pg_proc.provariadic is invalid after initdb 2022-07-29 09:41:21 +08:00
812f586beb Reduce memory allocation and deallocation to improve the computational performance of numeric digits.
before optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN

-------------------------------------------------------------------------------------------
------------------------------------
 Limit  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.054..167434.766 rows=838
8608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.05
3..166061.081 rows=8388608 loops=1)
 Total runtime: 168495.866 ms
(3 rows)

Time: 168499.243 ms

after optimization:
openGauss=# explain analyse select sqrt(t0) from t_numeric limit 10000000;
                                                          QUERY PLAN

-------------------------------------------------------------------------------------------
------------------------------------
 Limit  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.045..151376.445 rows=838
8608 loops=1)
   ->  Seq Scan on t_numeric  (cost=0.00..197973.49 rows=8386919 width=5) (actual time=0.04
4..150108.807 rows=8388608 loops=1)
 Total runtime: 152469.050 ms
(3 rows)

Time: 152472.278 ms
2022-07-28 21:58:16 +08:00
3b44473f19 修复SQL语句中同时出现窗口函数和子查询时因子查询被提升导致执行失败的问题。 2022-07-28 20:27:18 +08:00
46cdfe82c4 create table/comment support 2022-07-28 17:58:38 +08:00
b6d7d5abef !1983 add libsecure.so in cmake build
Merge pull request !1983 from zhangxubo/master
2022-07-28 07:19:36 +00:00
fc9150153b !1910 pcd文件open失败,重试参数错误
Merge pull request !1910 from 林科旭/pcd_fix
2022-07-28 06:19:15 +00:00
66467f5883 add libsecure.so in cmake build 2022-07-28 11:47:18 +08:00
ebd714a73c !1959 修复merge into全局临时表报表文件不存在的bug
Merge pull request !1959 from Cross-罗/merge_into
2022-07-27 06:39:04 +00:00
680962280a 修复merge全局临时表的bug 2022-07-27 09:49:14 +08:00
004f671b4d !1896 numactl库未打包到openGauss发布包里面,导致容器安装时候失败
Merge pull request !1896 from zhangxubo/master_bugfix
2022-07-26 12:25:14 +00:00
15ecab2608 !1975 修复行存转向量化场景下,explain plan由于字符串超长导致的问题
Merge pull request !1975 from pengjiong/array
2022-07-26 12:05:43 +00:00
cc9676165e Fix epxlain plan in row to vec case. 2022-07-26 18:47:28 +08:00
fbf5f72233 !1941 新增codegen ir文件插件点
Merge pull request !1941 from pengjiong/array
2022-07-26 07:17:53 +00:00
761f32abf2 !1971 修复timestamp不支持infinity的问题
Merge pull request !1971 from Cross-罗/to_timestamp
2022-07-26 03:57:42 +00:00
fc5f028b22 allow infinity to timestamp 2022-07-26 10:12:36 +08:00
674ded743b issue fix for I5HSHT 2022-07-25 14:55:48 +08:00
b08bcca779 !1965 解决issue--列存加唯一索引插100万数据慢问题
Merge pull request !1965 from zhaobingyu/master
2022-07-23 07:47:25 +00:00
c034f1cfa7 解决issue -- 列存加唯一索引插100万数据慢问题 2022-07-23 14:47:31 +08:00
1ad3d5fca7 pgstatuple build err! 2022-07-22 18:06:40 +08:00
5bfcad6de3 !1962 修复行存向量化在创建物化视图时结果不正确的问题
Merge pull request !1962 from Cross-罗/matview
2022-07-22 08:25:22 +00:00
8577521efe 修复行存向量化在创建物化视图时结果不正确的问题 2022-07-22 15:03:24 +08:00
ee8a721a83 修正SPI受自定义解析器影响而导致PL/pgSQL在启用自定义解析器时可能导致非逾期结果的问题。
SPI接口以及pg_parse_query函数添加一个默认参数可使用户指定不同的语法解析函数,
而不是直接调用raw_parser函数是要为以后新增加其它PL准备。
比如新增加兼容MySQL或其它存储过程时,它需要使用自已的语法解析,
又因为相同的语句在不同的数据库下可能存在不同的语义,
所以不可能做到完全兼容PG的语法(即便可以,工作量也会非常大)。
2022-07-22 09:51:18 +08:00
973f51c908 !1890 修复构造DN连接字符串的pgoption时,访问悬挂指针的问题
Merge pull request !1890 from jojo273565420/fix_dangling_pointer
2022-07-21 12:01:45 +00:00
07e1f275d3 !1911 issue修复:ignore在bypass场景下insert,当插入失败时回显错误问题修复
Merge pull request !1911 from zhangzhixian/fix_insert_fusion_echo_error
2022-07-21 02:22:48 +00:00