| 928 | | create or replace function |
|---|
| 929 | | stratcon.fetch_varset(in_check uuid, |
|---|
| 930 | | in_name text, |
|---|
| 931 | | in_start_time timestamptz, |
|---|
| 932 | | in_end_time timestamptz, |
|---|
| 933 | | in_hopeful_nperiods int) |
|---|
| 934 | | returns setof stratcon.loading_dock_metric_text_s_change_log as |
|---|
| 935 | | $$ |
|---|
| | 928 | CREATE OR REPLACE FUNCTION stratcon.fetch_varset(in_check uuid, in_name text, in_start_time timestamp with time zone, in_end_time timestamp with time zone, in_hopeful_nperiods integer) |
|---|
| | 929 | RETURNS SETOF stratcon.loading_dock_metric_text_s_change_log AS |
|---|
| | 930 | $BODY$ |
|---|
| | 931 | declare |
|---|
| | 932 | v_sid int; |
|---|
| | 933 | begin |
|---|
| | 934 | -- Map out uuid to an sid. |
|---|
| | 935 | select sid into v_sid from stratcon.map_uuid_to_sid where id = in_check; |
|---|
| | 936 | if not found then |
|---|
| | 937 | return; |
|---|
| | 938 | end if; |
|---|
| | 939 | |
|---|
| | 940 | return query select * from stratcon.fetch_varset(v_sid::integer, in_name, in_start_time, in_end_time, in_hopeful_nperiods); |
|---|
| | 941 | end |
|---|
| | 942 | $BODY$ |
|---|
| | 943 | LANGUAGE 'plpgsql' VOLATILE |
|---|
| | 944 | COST 100 |
|---|
| | 945 | ROWS 1000; |
|---|
| | 946 | ALTER FUNCTION stratcon.fetch_varset(uuid, text, timestamp with time zone, timestamp with time zone, integer) OWNER TO omniti; |
|---|
| | 947 | |
|---|
| | 948 | CREATE OR REPLACE FUNCTION stratcon.fetch_varset(in_sid integer, in_name text, in_start_time timestamp with time zone, in_end_time timestamp with time zone, in_hopeful_nperiods integer) |
|---|
| | 949 | RETURNS SETOF stratcon.loading_dock_metric_text_s_change_log AS |
|---|
| | 950 | $BODY$ |
|---|
| 1071 | | create or replace function |
|---|
| 1072 | | stratcon.fetch_dataset(in_check uuid, |
|---|
| 1073 | | in_name text, |
|---|
| 1074 | | in_start_time timestamptz, |
|---|
| 1075 | | in_end_time timestamptz, |
|---|
| 1076 | | in_hopeful_nperiods int, |
|---|
| 1077 | | derive boolean) |
|---|
| 1078 | | returns setof stratcon.rollup_matrix_numeric_5m as |
|---|
| 1079 | | $$ |
|---|
| | 1086 | CREATE OR REPLACE FUNCTION stratcon.fetch_dataset(in_uuid uuid, in_name text, in_start_time timestamp with time zone, in_end_time timestamp with time zone, in_hopeful_nperiods integer, derive boolean) |
|---|
| | 1087 | RETURNS SETOF stratcon.rollup_matrix_numeric_5m AS |
|---|
| | 1088 | $BODY$ |
|---|
| | 1089 | declare |
|---|
| | 1090 | v_sid int; |
|---|
| | 1091 | begin |
|---|
| | 1092 | select sid into v_sid from stratcon.map_uuid_to_sid where id = in_check; |
|---|
| | 1093 | if not found then |
|---|
| | 1094 | return; |
|---|
| | 1095 | end if; |
|---|
| | 1096 | |
|---|
| | 1097 | return query select * from stratcon.fetch_dataset(v_sid::integer, in_name, in_start_time, in_end_time, in_hopeful_nperiods, derive); |
|---|
| | 1098 | end |
|---|
| | 1099 | $BODY$ |
|---|
| | 1100 | LANGUAGE 'plpgsql' VOLATILE |
|---|
| | 1101 | COST 100 |
|---|
| | 1102 | ROWS 1000; |
|---|
| | 1103 | ALTER FUNCTION stratcon.fetch_dataset(uuid, text, timestamp with time zone, timestamp with time zone, integer, boolean) OWNER TO omniti; |
|---|
| | 1104 | |
|---|
| | 1105 | CREATE OR REPLACE FUNCTION stratcon.fetch_dataset(in_sid integer, in_name text, in_start_time timestamp with time zone, in_end_time timestamp with time zone, in_hopeful_nperiods integer, derive boolean) |
|---|
| | 1106 | RETURNS SETOF stratcon.rollup_matrix_numeric_5m AS |
|---|
| | 1107 | $BODY$ |
|---|