Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEC4675FF for ; Fri, 30 Sep 2011 20:43:08 +0000 (UTC) Received: (qmail 57379 invoked by uid 500); 30 Sep 2011 20:43:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57354 invoked by uid 500); 30 Sep 2011 20:43:08 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57199 invoked by uid 99); 30 Sep 2011 20:43:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 20:43:08 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 20:43:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CC5B32A3015 for ; Fri, 30 Sep 2011 20:42:46 +0000 (UTC) Date: Fri, 30 Sep 2011 20:42:46 +0000 (UTC) From: "Dag H. Wanvik (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1586398849.13185.1317415366838.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <735120623.13152.1317415125524.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5441) Misleading description of SYSCS_DIAG.SPACE_TABLE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5441: --------------------------------- Affects Version/s: 10.3.1.4 10.3.2.1 10.3.3.0 10.4.1.3 10.4.2.0 10.5.1.1 10.5.2.0 10.5.3.0 10.6.1.0 10.6.2.1 10.7.1.1 > Misleading description of SYSCS_DIAG.SPACE_TABLE > ------------------------------------------------ > > Key: DERBY-5441 > URL: https://issues.apache.org/jira/browse/DERBY-5441 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2 > Reporter: Dag H. Wanvik > Priority: Minor > > This method can take one or two arguments. If two arguments are provided the first should be the name of the SCHEMA, the second argument should be the name of the TABLE, in both cases in internal normal form, that is, capitalized unless the names were created as quoted identifiers. > If the method takes only one argument, that argument should be the name of the TABLE. The schema will be taken to be the current default schema > It is somewhat implicit in the docs that the table function can accept one or two arguments, I'd like this to be made clearer. In particular, doing something like: > SELECT * from TABLE(SYSCS_DIAG.SPACE_TABLE('APP.FOO')) AS S; > will not give the expected result, since this means the table APP."APP.FOO", which is less than obvious. > Also, this sentence of description is wrong, in my view: > "For example, use the following query to return the space usage for all of the user tables and indexes in the database: > > SELECT T2.* > FROM > SYS.SYSTABLES systabs, > TABLE (SYSCS_DIAG.SPACE_TABLE(systabs.tablename)) AS T2 > WHERE systabs.tabletype = 'T' > > where T2 is a user-specified table name that is any valid identifier." > Note "all the user tables and indexes in the database". The correct statement would be "all the tables and indexes in the current default schema". > If one wanted *all* user tables, the query would be: > SELECT T2.* > FROM > SYS.SYSTABLES systabs, > sys.sysschemas sysschemas, > TABLE (SYSCS_DIAG.SPACE_TABLE(sysschemas.schemaname, systabs.tablename)) AS T2 > WHERE systabs.tabletype = 'T' and systabs.schemaid = sysschemas.schemaid; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira