!4243 master分支适配dolphin3.0升级

Merge pull request !4243 from chenxiaobin/dolphin300
This commit is contained in:
opengauss_bot
2023-10-09 07:09:41 +00:00
committed by Gitee
10 changed files with 98 additions and 36 deletions

View File

@ -111,16 +111,13 @@ 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--2.0.sql
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--3.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.0.sql
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.0--1.1.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.0--2.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--2.0--1.0.sql
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.1--1.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--1.1--2.0.sql
@ -129,6 +126,12 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/contrib/dolphin)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--2.0--1.1.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--2.0--3.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/dolphin--3.0--2.0.sql
DESTINATION share/postgresql/extension/
)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/dolphin/openGauss_expr_dolphin.ir
DESTINATION share/postgresql/extension/
)

View File

@ -33,13 +33,14 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--2.0.sql
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.0--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--3.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--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/file_fdw--1.0.sql

View File

@ -72,16 +72,17 @@
./share/postgresql/extension/ndpplugin.control
./share/postgresql/extension/ndpplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--2.0.sql
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.0--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--3.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--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/whale.control
./share/postgresql/extension/whale--1.0.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/assessment--1.0.sql
./share/postgresql/extension/assessment.control

View File

@ -61,12 +61,15 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--2.0.sql
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.0--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.0.sql
./share/postgresql/extension/dolphin--3.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--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/whale.control
./share/postgresql/extension/whale--1.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir

View File

@ -33,13 +33,14 @@
./share/postgresql/extension/security_plugin.control
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--2.0.sql
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.0--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--3.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--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/file_fdw--1.0.sql

View File

@ -72,16 +72,17 @@
./share/postgresql/extension/ndpplugin.control
./share/postgresql/extension/ndpplugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--2.0.sql
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.0--2.0.sql
./share/postgresql/extension/dolphin--2.0--1.0.sql
./share/postgresql/extension/dolphin--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--3.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--2.0--2.0.1.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/whale.control
./share/postgresql/extension/whale--1.0.sql
./share/postgresql/extension/dolphin--2.0.1--2.0.sql
./share/postgresql/extension/openGauss_expr_dolphin.ir
./share/postgresql/extension/assessment--1.0.sql
./share/postgresql/extension/assessment.control

View File

@ -589,4 +589,17 @@ BEGIN
GRANT SELECT ON TABLE DBE_PERF.statement_history TO PUBLIC;
END IF;
END IF;
END $DO$;
END $DO$;
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 '2.0';
end if;
exit;
END LOOP;
END$$;

View File

@ -589,4 +589,17 @@ EXECUTE IMMEDIATE querystr;
GRANT SELECT ON TABLE DBE_PERF.statement_history TO PUBLIC;
END IF;
END IF;
END $DO$;
END $DO$;
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 '2.0';
end if;
exit;
END LOOP;
END$$;

View File

@ -595,4 +595,17 @@ CREATE OR REPLACE FUNCTION DBE_PERF.get_global_full_sql_by_timestamp
GRANT SELECT ON TABLE DBE_PERF.statement_history TO PUBLIC;
END IF;
END IF;
END $DO$;
END $DO$;
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

@ -595,4 +595,17 @@ EXECUTE IMMEDIATE querystr;
GRANT SELECT ON TABLE DBE_PERF.statement_history TO PUBLIC;
END IF;
END IF;
END $DO$;
END $DO$;
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$$;