[资源池化]函数ss_buffer_ctrl增加对应的升级和回退脚本

This commit is contained in:
dongning12
2023-05-16 14:31:27 +08:00
parent 670eb52df4
commit c1f0547bde
5 changed files with 43 additions and 1 deletions

View File

@ -75,7 +75,7 @@ bool will_shutdown = false;
* NEXT | 92899 | ? | ?
*
********************************************/
const uint32 GRAND_VERSION_NUM = 92899;
const uint32 GRAND_VERSION_NUM = 92900;
/********************************************
* 2.VERSION NUM FOR EACH FEATURE

View File

@ -0,0 +1 @@
DROP FUNCTION IF EXISTS pg_catalog.ss_buffer_ctrl() CASCADE;

View File

@ -0,0 +1 @@
DROP FUNCTION IF EXISTS pg_catalog.ss_buffer_ctrl() CASCADE;

View File

@ -0,0 +1,20 @@
DROP FUNCTION IF EXISTS pg_catalog.ss_buffer_ctrl() CASCADE;
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4214;
CREATE FUNCTION pg_catalog.ss_buffer_ctrl(
OUT bufferid integer,
OUT is_remote_dirty tinyint,
OUT lock_mode tinyint,
OUT is_edp tinyint,
OUT force_request tinyint,
OUT need_flush tinyint,
OUT buf_id integer,
OUT state oid,
OUT pblk_relno oid,
OUT pblk_blkno oid,
OUT pblk_lsn bigint,
OUT seg_fileno tinyint,
OUT seg_blockno oid
)
RETURNS SETOF record
LANGUAGE internal STABLE NOT FENCED NOT SHIPPABLE ROWS 100
AS 'ss_buffer_ctrl';

View File

@ -0,0 +1,20 @@
DROP FUNCTION IF EXISTS pg_catalog.ss_buffer_ctrl() CASCADE;
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4214;
CREATE FUNCTION pg_catalog.ss_buffer_ctrl(
OUT bufferid integer,
OUT is_remote_dirty tinyint,
OUT lock_mode tinyint,
OUT is_edp tinyint,
OUT force_request tinyint,
OUT need_flush tinyint,
OUT buf_id integer,
OUT state oid,
OUT pblk_relno oid,
OUT pblk_blkno oid,
OUT pblk_lsn bigint,
OUT seg_fileno tinyint,
OUT seg_blockno oid
)
RETURNS SETOF record
LANGUAGE internal STABLE NOT FENCED NOT SHIPPABLE ROWS 100
AS 'ss_buffer_ctrl';