新增dolphin插件升级

This commit is contained in:
chenxiaobin19
2023-04-23 11:58:04 +08:00
parent 1c92278937
commit e918eb6b0a
8 changed files with 58 additions and 1 deletions

View File

@ -68,6 +68,9 @@
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.1.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/file_fdw--1.0.sql
./share/postgresql/extension/plpgsql.control
./share/postgresql/extension/dist_fdw.control

View File

@ -62,6 +62,9 @@
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.1.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/file_fdw--1.0.sql
./share/postgresql/extension/plpgsql.control
./share/postgresql/extension/dist_fdw.control

View File

@ -68,6 +68,9 @@
./share/postgresql/extension/security_plugin--1.0.sql
./share/postgresql/extension/dolphin.control
./share/postgresql/extension/dolphin--1.0.sql
./share/postgresql/extension/dolphin--1.1.sql
./share/postgresql/extension/dolphin--1.0--1.1.sql
./share/postgresql/extension/dolphin--1.1--1.0.sql
./share/postgresql/extension/file_fdw--1.0.sql
./share/postgresql/extension/plpgsql.control
./share/postgresql/extension/dist_fdw.control

View File

@ -75,7 +75,7 @@ bool will_shutdown = false;
* NEXT | 92899 | ? | ?
*
********************************************/
const uint32 GRAND_VERSION_NUM = 92898;
const uint32 GRAND_VERSION_NUM = 92899;
/********************************************
* 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' and extversion = '1.1')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '1.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' and extversion = '1.1')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '1.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' and extversion = '1.0')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '1.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' and extversion = '1.0')
LOOP
if ans = true then
ALTER EXTENSION dolphin UPDATE TO '1.1';
end if;
exit;
END LOOP;
END$$;