diff --git a/build/script/aarch64_opengauss_list b/build/script/aarch64_opengauss_list index 814d34976..606771d3d 100644 --- a/build/script/aarch64_opengauss_list +++ b/build/script/aarch64_opengauss_list @@ -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 diff --git a/build/script/opengauss_release_list_ubuntu_single b/build/script/opengauss_release_list_ubuntu_single index fe76edc68..a536770de 100644 --- a/build/script/opengauss_release_list_ubuntu_single +++ b/build/script/opengauss_release_list_ubuntu_single @@ -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 diff --git a/build/script/x86_64_opengauss_list b/build/script/x86_64_opengauss_list index 014186a34..fb738d3c2 100644 --- a/build/script/x86_64_opengauss_list +++ b/build/script/x86_64_opengauss_list @@ -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 diff --git a/src/common/backend/utils/init/globals.cpp b/src/common/backend/utils/init/globals.cpp index 104361547..ddcaa4dff 100644 --- a/src/common/backend/utils/init/globals.cpp +++ b/src/common/backend/utils/init/globals.cpp @@ -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 diff --git a/src/include/catalog/upgrade_sql/rollback_catalog_maindb/rollback-post_catalog_maindb_92_899.sql b/src/include/catalog/upgrade_sql/rollback_catalog_maindb/rollback-post_catalog_maindb_92_899.sql new file mode 100644 index 000000000..141615579 --- /dev/null +++ b/src/include/catalog/upgrade_sql/rollback_catalog_maindb/rollback-post_catalog_maindb_92_899.sql @@ -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$$; \ No newline at end of file diff --git a/src/include/catalog/upgrade_sql/rollback_catalog_otherdb/rollback-post_catalog_otherdb_92_899.sql b/src/include/catalog/upgrade_sql/rollback_catalog_otherdb/rollback-post_catalog_otherdb_92_899.sql new file mode 100644 index 000000000..141615579 --- /dev/null +++ b/src/include/catalog/upgrade_sql/rollback_catalog_otherdb/rollback-post_catalog_otherdb_92_899.sql @@ -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$$; \ No newline at end of file diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_899.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_899.sql new file mode 100644 index 000000000..57c0ffa36 --- /dev/null +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_92_899.sql @@ -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$$; \ No newline at end of file diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_899.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_899.sql new file mode 100644 index 000000000..57c0ffa36 --- /dev/null +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_92_899.sql @@ -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$$; \ No newline at end of file