插件升级到4.0

This commit is contained in:
chenxiaobin19
2024-04-08 16:04:32 +08:00
committed by yaoxin
parent ecedf6f798
commit 25ae1230c6
13 changed files with 77 additions and 9 deletions

View File

@ -111,7 +111,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/contrib/dolphin)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin.control
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--3.0.sql
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--4.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.0--1.1.sql
@ -132,6 +132,12 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/contrib/dolphin)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--3.0--2.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--3.0--4.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--4.0--3.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--2.0--2.0.1.sql
DESTINATION share/postgresql/extension/
)

View File

@ -75,13 +75,15 @@
./share/postgresql/extension/spqplugin.control
./share/postgresql/extension/spqplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/whale.control

View File

@ -34,13 +34,15 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -76,13 +76,15 @@
./share/postgresql/extension/spqplugin.control
./share/postgresql/extension/spqplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -62,13 +62,15 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -75,13 +75,15 @@
./share/postgresql/extension/spqplugin.control
./share/postgresql/extension/spqplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/whale.control

View File

@ -34,13 +34,15 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -76,13 +76,15 @@
./share/postgresql/extension/spqplugin.control
./share/postgresql/extension/spqplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--3.0.sql
./share/postgresql/extension/dolphin--4.0.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/dolphin--1.1--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.1.sql
./share/postgresql/extension/dolphin--2.0--3.0.sql
./share/postgresql/extension/dolphin--3.0--2.0.sql
./share/postgresql/extension/dolphin--3.0--4.0.sql
./share/postgresql/extension/dolphin--4.0--3.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -75,7 +75,7 @@ bool will_shutdown = false;
* NEXT | 92899 | ? | ?
*
********************************************/
const uint32 GRAND_VERSION_NUM = 92926;
const uint32 GRAND_VERSION_NUM = 92927;
/********************************************
* 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 '3.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 '3.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.0';
end if;
exit;
END LOOP;
END$$;