Fix view bug.
This commit is contained in:
@ -1080,7 +1080,7 @@ SELECT
|
||||
S.node_group,
|
||||
T.top_cpu_dn
|
||||
FROM pg_stat_activity_ng AS S, pg_stat_get_wlm_realtime_session_info(NULL) AS T
|
||||
WHERE S.pid = T.threadid;
|
||||
WHERE S.sessionid = T.threadid;
|
||||
|
||||
CREATE VIEW gs_wlm_session_statistics AS
|
||||
SELECT
|
||||
|
||||
@ -59,7 +59,7 @@ bool open_join_children = true;
|
||||
bool will_shutdown = false;
|
||||
|
||||
/* hard-wired binary version number */
|
||||
const uint32 GRAND_VERSION_NUM = 92306;
|
||||
const uint32 GRAND_VERSION_NUM = 92307;
|
||||
|
||||
const uint32 MATVIEW_VERSION_NUM = 92213;
|
||||
const uint32 PARTIALPUSH_VERSION_NUM = 92087;
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
CREATE OR REPLACE VIEW pg_catalog.gs_session_cpu_statistics AS
|
||||
SELECT
|
||||
S.datid AS datid,
|
||||
S.usename,
|
||||
S.pid,
|
||||
S.query_start AS start_time,
|
||||
T.min_cpu_time,
|
||||
T.max_cpu_time,
|
||||
T.total_cpu_time,
|
||||
S.query,
|
||||
S.node_group,
|
||||
T.top_cpu_dn
|
||||
FROM pg_stat_activity_ng AS S, pg_stat_get_wlm_realtime_session_info(NULL) AS T
|
||||
WHERE S.pid = T.threadid;
|
||||
@ -0,0 +1,14 @@
|
||||
CREATE OR REPLACE VIEW pg_catalog.gs_session_cpu_statistics AS
|
||||
SELECT
|
||||
S.datid AS datid,
|
||||
S.usename,
|
||||
S.pid,
|
||||
S.query_start AS start_time,
|
||||
T.min_cpu_time,
|
||||
T.max_cpu_time,
|
||||
T.total_cpu_time,
|
||||
S.query,
|
||||
S.node_group,
|
||||
T.top_cpu_dn
|
||||
FROM pg_stat_activity_ng AS S, pg_stat_get_wlm_realtime_session_info(NULL) AS T
|
||||
WHERE S.pid = T.threadid;
|
||||
@ -0,0 +1,14 @@
|
||||
CREATE OR REPLACE VIEW pg_catalog.gs_session_cpu_statistics AS
|
||||
SELECT
|
||||
S.datid AS datid,
|
||||
S.usename,
|
||||
S.pid,
|
||||
S.query_start AS start_time,
|
||||
T.min_cpu_time,
|
||||
T.max_cpu_time,
|
||||
T.total_cpu_time,
|
||||
S.query,
|
||||
S.node_group,
|
||||
T.top_cpu_dn
|
||||
FROM pg_stat_activity_ng AS S, pg_stat_get_wlm_realtime_session_info(NULL) AS T
|
||||
WHERE S.sessionid = T.threadid;
|
||||
@ -0,0 +1,14 @@
|
||||
CREATE OR REPLACE VIEW pg_catalog.gs_session_cpu_statistics AS
|
||||
SELECT
|
||||
S.datid AS datid,
|
||||
S.usename,
|
||||
S.pid,
|
||||
S.query_start AS start_time,
|
||||
T.min_cpu_time,
|
||||
T.max_cpu_time,
|
||||
T.total_cpu_time,
|
||||
S.query,
|
||||
S.node_group,
|
||||
T.top_cpu_dn
|
||||
FROM pg_stat_activity_ng AS S, pg_stat_get_wlm_realtime_session_info(NULL) AS T
|
||||
WHERE S.sessionid = T.threadid;
|
||||
Reference in New Issue
Block a user