[Osaas-commits] r85 - in trunk: . doc/source
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Nov 5 12:49:25 CET 2010
Author: iweinzierl
Date: 2010-11-05 12:49:24 +0100 (Fri, 05 Nov 2010)
New Revision: 85
Modified:
trunk/ChangeLog
trunk/doc/source/utilization.rst
Log:
Documentation: added some demo sql queries to list wms request.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-04 16:13:52 UTC (rev 84)
+++ trunk/ChangeLog 2010-11-05 11:49:24 UTC (rev 85)
@@ -1,3 +1,8 @@
+2010-11-05 Ingo Weinzierl <ingo at intevation.de>
+
+ * doc/source/utilization.rst: Added some example sql queries that list the
+ requests of the last 7days | 1month of the specific user.
+
2010-11-04 Ingo Weinzierl <ingo at intevation.de>
* website/pix/osaas_diagram-en_small.png,
Modified: trunk/doc/source/utilization.rst
===================================================================
--- trunk/doc/source/utilization.rst 2010-11-04 16:13:52 UTC (rev 84)
+++ trunk/doc/source/utilization.rst 2010-11-05 11:49:24 UTC (rev 85)
@@ -2,4 +2,18 @@
Utilization
===========
-TODO: SQL-QUERIES
+This section will give you some example sql statements that might help you to
+list all requests of a specific user in a specific interval.
+
+You can execute the queries below, e.g. when you are logged in the psql terminal (see
+the `documentation <http://www.postgresql.org/files/documentation/books/pghandbuch/html/app-psql.html>`_
+for more information about psql):
+
+- List all requests of user *my-user* in the last 7 days::
+
+ SELECT * FROM myowsaccounting WHERE starttime > (current_timestamp - interval '7 days') AND username = 'my-user';
+
+
+- List all requests of user *my-user* in the last month::
+
+ SELECT * FROM myowsaccounting WHERE starttime > (current_timestamp - interval '1 month') AND username = 'my-user';
More information about the Osaas-commits
mailing list