修复sum(int)性能较差的问题

This commit is contained in:
wangfeihuo
2024-11-14 18:43:07 +08:00
parent 5056ff7b3a
commit 8264b16f42
13 changed files with 69 additions and 1 deletions

View File

@ -150,6 +150,12 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/contrib/dolphin)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--4.0.1--4.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--4.0--4.1.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--4.1--4.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/openGauss_expr_dolphin.ir
DESTINATION share/postgresql/extension/
)

View File

@ -89,6 +89,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/whale.control
./share/postgresql/extension/whale--1.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -47,6 +47,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/file_fdw--1.0.sql
./share/postgresql/extension/plpgsql.control

View File

@ -92,6 +92,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/age--1.0.0.sql
./share/postgresql/extension/age.control

View File

@ -77,6 +77,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/age--1.0.0.sql
./share/postgresql/extension/age.control

View File

@ -89,6 +89,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/whale.control
./share/postgresql/extension/whale--1.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -47,6 +47,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/file_fdw--1.0.sql
./share/postgresql/extension/plpgsql.control

View File

@ -90,6 +90,8 @@
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/dolphin--4.0--4.0.1.sql
./share/postgresql/extension/dolphin--4.0.1--4.0.sql
./share/postgresql/extension/dolphin--4.0--4.1.sql
./share/postgresql/extension/dolphin--4.1--4.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/age--1.0.0.sql
./share/postgresql/extension/age.control

View File

@ -76,7 +76,7 @@ bool will_shutdown = false;
*
********************************************/
const uint32 GRAND_VERSION_NUM = 92954;
const uint32 GRAND_VERSION_NUM = 92955;
/********************************************
* 2.VERSION NUM FOR EACH FEATURE

View File

@ -0,0 +1,12 @@
do $$
DECLARE
ans boolean;
BEGIN
for ans in select case when count(*)=1 then true else false end as ans from (select extname from pg_extension where extname='dolphin')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '4.0';
end if;
exit;
END LOOP;
END$$;

View File

@ -0,0 +1,12 @@
do $$
DECLARE
ans boolean;
BEGIN
for ans in select case when count(*)=1 then true else false end as ans from (select extname from pg_extension where extname='dolphin')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '4.0';
end if;
exit;
END LOOP;
END$$;

View File

@ -0,0 +1,12 @@
do $$
DECLARE
ans boolean;
BEGIN
for ans in select case when count(*)=1 then true else false end as ans from (select extname from pg_extension where extname='dolphin')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '4.1';
end if;
exit;
END LOOP;
END$$;

View File

@ -0,0 +1,12 @@
do $$
DECLARE
ans boolean;
BEGIN
for ans in select case when count(*)=1 then true else false end as ans from (select extname from pg_extension where extname='dolphin')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '4.1';
end if;
exit;
END LOOP;
END$$;