Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 501af57

Browse files
author
Vladimir Ershov
committed
add status() to migration
1 parent d2a241d commit 501af57

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pgpro_scheduler--2.1--2.2.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ CREATE TABLE mtm_nodes(
44
status_set timestamp with time zone
55
);
66

7+
CREATE TYPE scheduler_stat_rec AS(
8+
pid int,
9+
database text,
10+
type text
11+
);
12+
13+
714
CREATE FUNCTION pgpro_scheduler_version()
815
RETURNS text
916
AS 'MODULE_PATHNAME', 'pgpro_scheduler_version'
@@ -29,4 +36,8 @@ CREATE FUNCTION stop()
2936
AS 'MODULE_PATHNAME', 'scheduler_stop'
3037
LANGUAGE C IMMUTABLE;
3138

39+
CREATE FUNCTION status()
40+
RETURNS SETOF scheduler_stat_rec
41+
AS 'MODULE_PATHNAME', 'scheduler_status'
42+
LANGUAGE C STABLE;
3243

0 commit comments

Comments
 (0)