!2636 Upgrade scripts for MOT new features
Merge pull request !2636 from Vinoth Veeraraghavan/master
This commit is contained in:
@ -59,7 +59,7 @@ bool open_join_children = true;
|
|||||||
bool will_shutdown = false;
|
bool will_shutdown = false;
|
||||||
|
|
||||||
/* hard-wired binary version number */
|
/* hard-wired binary version number */
|
||||||
const uint32 GRAND_VERSION_NUM = 92839;
|
const uint32 GRAND_VERSION_NUM = 92840;
|
||||||
|
|
||||||
const uint32 SELECT_INTO_VAR_VERSION_NUM = 92834;
|
const uint32 SELECT_INTO_VAR_VERSION_NUM = 92834;
|
||||||
const uint32 DOLPHIN_ENABLE_DROP_NUM = 92830;
|
const uint32 DOLPHIN_ENABLE_DROP_NUM = 92830;
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
DROP FUNCTION IF EXISTS pg_catalog.mot_jit_detail;
|
||||||
|
DROP FUNCTION IF EXISTS pg_catalog.mot_jit_profile;
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
DROP FUNCTION IF EXISTS pg_catalog.mot_jit_detail;
|
||||||
|
DROP FUNCTION IF EXISTS pg_catalog.mot_jit_profile;
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
/* Add built-in function mot_jit_detail */
|
||||||
|
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 6205;
|
||||||
|
CREATE OR REPLACE FUNCTION pg_catalog.mot_jit_detail(
|
||||||
|
OUT proc_oid oid,
|
||||||
|
OUT query text,
|
||||||
|
OUT namespace text,
|
||||||
|
OUT jittable_status text,
|
||||||
|
OUT valid_status text,
|
||||||
|
OUT last_updated timestamptz,
|
||||||
|
OUT plan_type text,
|
||||||
|
OUT codegen_time int8,
|
||||||
|
OUT verify_time int8,
|
||||||
|
OUT finalize_time int8,
|
||||||
|
OUT compile_time int8)
|
||||||
|
RETURNS SETOF RECORD LANGUAGE INTERNAL ROWS 1000 STABLE NOT FENCED NOT SHIPPABLE as 'mot_jit_detail';
|
||||||
|
|
||||||
|
/* Add built-in function mot_jit_profile */
|
||||||
|
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 6206;
|
||||||
|
CREATE OR REPLACE FUNCTION pg_catalog.mot_jit_profile(
|
||||||
|
OUT proc_oid oid,
|
||||||
|
OUT id int4,
|
||||||
|
OUT parent_id int4,
|
||||||
|
OUT query text,
|
||||||
|
OUT namespace text,
|
||||||
|
OUT weight float4,
|
||||||
|
OUT total int8,
|
||||||
|
OUT self int8,
|
||||||
|
OUT child_gross int8,
|
||||||
|
OUT child_net int8,
|
||||||
|
OUT def_vars int8,
|
||||||
|
OUT init_vars int8)
|
||||||
|
RETURNS SETOF RECORD LANGUAGE INTERNAL ROWS 1000 STABLE NOT FENCED NOT SHIPPABLE as 'mot_jit_profile';
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
/* Add built-in function mot_jit_detail */
|
||||||
|
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 6205;
|
||||||
|
CREATE OR REPLACE FUNCTION pg_catalog.mot_jit_detail(
|
||||||
|
OUT proc_oid oid,
|
||||||
|
OUT query text,
|
||||||
|
OUT namespace text,
|
||||||
|
OUT jittable_status text,
|
||||||
|
OUT valid_status text,
|
||||||
|
OUT last_updated timestamptz,
|
||||||
|
OUT plan_type text,
|
||||||
|
OUT codegen_time int8,
|
||||||
|
OUT verify_time int8,
|
||||||
|
OUT finalize_time int8,
|
||||||
|
OUT compile_time int8)
|
||||||
|
RETURNS SETOF RECORD LANGUAGE INTERNAL ROWS 1000 STABLE NOT FENCED NOT SHIPPABLE as 'mot_jit_detail';
|
||||||
|
|
||||||
|
/* Add built-in function mot_jit_profile */
|
||||||
|
SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 6206;
|
||||||
|
CREATE OR REPLACE FUNCTION pg_catalog.mot_jit_profile(
|
||||||
|
OUT proc_oid oid,
|
||||||
|
OUT id int4,
|
||||||
|
OUT parent_id int4,
|
||||||
|
OUT query text,
|
||||||
|
OUT namespace text,
|
||||||
|
OUT weight float4,
|
||||||
|
OUT total int8,
|
||||||
|
OUT self int8,
|
||||||
|
OUT child_gross int8,
|
||||||
|
OUT child_net int8,
|
||||||
|
OUT def_vars int8,
|
||||||
|
OUT init_vars int8)
|
||||||
|
RETURNS SETOF RECORD LANGUAGE INTERNAL ROWS 1000 STABLE NOT FENCED NOT SHIPPABLE as 'mot_jit_profile';
|
||||||
|
|
Reference in New Issue
Block a user