增加了针对pg_buffercache_pages函数的回滚脚本
增加了针对pg_buffercache_pages函数的回滚脚本,同时补充了otherdb中针对该函数的升级脚本,也将升级脚本中bucketid的类型更正为int4。
This commit is contained in:
@ -1,5 +1,18 @@
|
||||
-- --------------------------------------------------------------
|
||||
-- rollback pg_catalog.pg_collation
|
||||
-- rollback pg_catalog.pg_buffercache_pages
|
||||
-- --------------------------------------------------------------
|
||||
delete from pg_catalog.pg_collation where collname='zh_CN' and collnamespace=11 and collencoding=36 and collcollate='zh_CN.gb18030' and collctype='zh_CN.gb18030';
|
||||
delete from pg_catalog.pg_collation where collname='zh_CN.gb18030' and collnamespace=11 and collencoding=36 and collcollate='zh_CN.gb18030' and collctype='zh_CN.gb18030';
|
||||
DROP FUNCTION IF EXISTS pg_catalog.pg_buffercache_pages() CASCADE;
|
||||
|
||||
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4130;
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.pg_buffercache_pages
|
||||
(out bufferid pg_catalog.int4,
|
||||
out relfilenode pg_catalog.oid,
|
||||
out bucketid pg_catalog.int2,
|
||||
out storage_type pg_catalog.int2,
|
||||
out reltablespace pg_catalog.oid,
|
||||
out reldatabase pg_catalog.oid,
|
||||
out relforknumber pg_catalog.int2,
|
||||
out relblocknumber pg_catalog.int8,
|
||||
out isdirty pg_catalog.bool,
|
||||
out usage_count pg_catalog.int2)
|
||||
RETURNS SETOF record LANGUAGE INTERNAL STABLE STRICT as 'pg_buffercache_pages';
|
||||
@ -0,0 +1,18 @@
|
||||
-- --------------------------------------------------------------
|
||||
-- rollback pg_catalog.pg_buffercache_pages
|
||||
-- --------------------------------------------------------------
|
||||
DROP FUNCTION IF EXISTS pg_catalog.pg_buffercache_pages() CASCADE;
|
||||
|
||||
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4130;
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.pg_buffercache_pages
|
||||
(out bufferid pg_catalog.int4,
|
||||
out relfilenode pg_catalog.oid,
|
||||
out bucketid pg_catalog.int2,
|
||||
out storage_type pg_catalog.int2,
|
||||
out reltablespace pg_catalog.oid,
|
||||
out reldatabase pg_catalog.oid,
|
||||
out relforknumber pg_catalog.int2,
|
||||
out relblocknumber pg_catalog.int8,
|
||||
out isdirty pg_catalog.bool,
|
||||
out usage_count pg_catalog.int2)
|
||||
RETURNS SETOF record LANGUAGE INTERNAL STABLE STRICT as 'pg_buffercache_pages';
|
||||
@ -7,7 +7,7 @@ SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4130;
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.pg_buffercache_pages
|
||||
(out bufferid pg_catalog.int4,
|
||||
out relfilenode pg_catalog.oid,
|
||||
out bucketid pg_catalog.int2,
|
||||
out bucketid pg_catalog.int4,
|
||||
out storage_type pg_catalog.int2,
|
||||
out reltablespace pg_catalog.oid,
|
||||
out reldatabase pg_catalog.oid,
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
-- --------------------------------------------------------------
|
||||
-- upgrade pg_catalog.pg_buffercache_pages
|
||||
-- --------------------------------------------------------------
|
||||
DROP FUNCTION IF EXISTS pg_catalog.pg_buffercache_pages() CASCADE;
|
||||
|
||||
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 4130;
|
||||
CREATE OR REPLACE FUNCTION pg_catalog.pg_buffercache_pages
|
||||
(out bufferid pg_catalog.int4,
|
||||
out relfilenode pg_catalog.oid,
|
||||
out bucketid pg_catalog.int4,
|
||||
out storage_type pg_catalog.int2,
|
||||
out reltablespace pg_catalog.oid,
|
||||
out reldatabase pg_catalog.oid,
|
||||
out relforknumber pg_catalog.int2,
|
||||
out relblocknumber pg_catalog.int8,
|
||||
out isdirty pg_catalog.bool,
|
||||
out isvalid pg_catalog.bool,
|
||||
out usage_count pg_catalog.int2,
|
||||
out pinning_backends pg_catalog.int4)
|
||||
RETURNS SETOF record LANGUAGE INTERNAL STABLE STRICT as 'pg_buffercache_pages';
|
||||
Reference in New Issue
Block a user