rrs-commit: r57 - in release/rrs-0.4.1: . update/0.3-0.4 update/0.3-0.4.1

decibel at decibel.org decibel at decibel.org
Wed Mar 30 19:55:34 GMT 2005


Author: decibel
Date: Wed Mar 30 19:55:33 2005
New Revision: 57

Added:
   release/rrs-0.4.1/
      - copied from r56, release/rrs-0.4/
   release/rrs-0.4.1/update/0.3-0.4.1/
      - copied from r56, release/rrs-0.4/update/0.3-0.4/
Removed:
   release/rrs-0.4.1/update/0.3-0.4/
Modified:
   release/rrs-0.4.1/VERSION
   release/rrs-0.4.1/install.sh
   release/rrs-0.4.1/rrs.sql
   release/rrs-0.4.1/update.sh
   release/rrs-0.4.1/update/0.3-0.4.1/rrs.sql
Log:
Release 0.4.1

Modified: release/rrs-0.4.1/VERSION
==============================================================================
--- release/rrs-0.4/VERSION	(original)
+++ release/rrs-0.4.1/VERSION	Wed Mar 30 19:55:33 2005
@@ -1 +1 @@
-0.4
+0.4.1

Modified: release/rrs-0.4.1/install.sh
==============================================================================
--- release/rrs-0.4/install.sh	(original)
+++ release/rrs-0.4.1/install.sh	Wed Mar 30 19:55:33 2005
@@ -11,3 +11,4 @@
 psql -U $USER -f rrs.sql $DBNAME
 psql -U $USER -f util_functions.sql $DBNAME
 psql -U $USER -f rrs_functions.sql $DBNAME
+psql -U $USER -f rrs_views.sql $DBNAME

Modified: release/rrs-0.4.1/rrs.sql
==============================================================================
--- release/rrs-0.4/rrs.sql	(original)
+++ release/rrs-0.4.1/rrs.sql	Wed Mar 30 19:55:33 2005
@@ -89,25 +89,6 @@
 \.
 */
 
-CREATE OR REPLACE VIEW rrs.history_data_interval_run_time_v AS
-    SELECT h.*
-            , CASE WHEN run_time_sec > 0
-                THEN rrs.seconds_to_interval(
-                        rrs.interval_to_seconds(data_interval)
-                        * desired_run_time_sec
-                        / run_time_sec
-                    )
-                END AS next_data_interval
-        FROM
-            ( SELECT rrs.interval_to_seconds(
-                                rrs.setting_get('desired run time')::interval
-                        ) AS desired_run_time_sec
-            ) AS s
-            , ( SELECT start_time, end_time, data_interval
-                        , end_time - start_time AS run_time
-                        , rrs.interval_to_seconds( end_time - start_time ) AS run_time_sec
-                    FROM history_data_interval ) h
-;
 
 GRANT SELECT ON rrs TO PUBLIC;
 GRANT SELECT ON source TO PUBLIC;

Modified: release/rrs-0.4.1/update.sh
==============================================================================
--- release/rrs-0.4/update.sh	(original)
+++ release/rrs-0.4.1/update.sh	Wed Mar 30 19:55:33 2005
@@ -11,3 +11,4 @@
 update/0.3-0.4/update.sh $USER $DBNAME
 psql -U $USER -f util_functions.sql $DBNAME
 psql -U $USER -f rrs_functions.sql $DBNAME
+psql -U $USER -f rrs_views.sql $DBNAME

Modified: release/rrs-0.4.1/update/0.3-0.4.1/rrs.sql
==============================================================================
--- release/rrs-0.4/update/0.3-0.4/rrs.sql	(original)
+++ release/rrs-0.4.1/update/0.3-0.4.1/rrs.sql	Wed Mar 30 19:55:33 2005
@@ -7,32 +7,13 @@
 
 BEGIN;
 
-CREATE OR REPLACE VIEW rrs.history_data_interval_run_time_v AS
-    SELECT h.*
-            , CASE WHEN run_time_sec > 0
-                THEN rrs.seconds_to_interval(
-                        rrs.interval_to_seconds(data_interval)
-                        * desired_run_time_sec
-                        / run_time_sec
-                    )
-                END AS next_data_interval
-        FROM
-            ( SELECT rrs.interval_to_seconds(
-                                rrs.setting_get('desired run time')::interval
-                        ) AS desired_run_time_sec
-            ) AS s
-            , ( SELECT start_time, end_time, data_interval
-                        , end_time - start_time AS run_time
-                        , rrs.interval_to_seconds( end_time - start_time ) AS run_time_sec
-                    FROM history_data_interval ) h
-;
-
 CREATE TABLE version (
     component   text    NOT NULL CONSTRAINT version__component PRIMARY KEY
     , version     text    NOT NULL
 ) WITHOUT OIDs;
-INSERT INTO version VALUES('schema','0.4');
-INSERT INTO version VALUES('functions','0.4');
+INSERT INTO version VALUES('schema','0.4.1');
+INSERT INTO version VALUES('functions','0.4.1');
+INSERT INTO version VALUES('views','0.4.1');
 
 CREATE TABLE setting (
     setting_name    text    NOT NULL CONSTRAINT setting__name PRIMARY KEY


More information about the rrs-commit mailing list