Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZmyxZ-0004X5-RO for pgsql-jdbc@arkaria.postgresql.org; Fri, 16 Oct 2015 06:57:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZmyxZ-0004Td-93 for pgsql-jdbc@arkaria.postgresql.org; Fri, 16 Oct 2015 06:57:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zmyx3-0003LX-IU for pgsql-jdbc@postgresql.org; Fri, 16 Oct 2015 06:57:17 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zmyx0-0002AL-OZ for pgsql-jdbc@postgresql.org; Fri, 16 Oct 2015 06:57:16 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id 5BEA843F2B for ; Fri, 16 Oct 2015 08:57:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at smtp.procolix.com Received: from smtp.procolix.com ([127.0.0.1]) by localhost (host436.procolix.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W4gt1ffcjrhT for ; Fri, 16 Oct 2015 08:57:11 +0200 (CEST) Received: from webmail.procolix.com (webmail.procolix.com [95.215.185.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mark@lawinegevaar.nl) by smtp.procolix.com (Postfix) with ESMTPSA id 202BC43EAB for ; Fri, 16 Oct 2015 08:57:11 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 16 Oct 2015 08:57:11 +0200 From: Mark Rotteveel To: Subject: Re: Release 1204 released In-Reply-To: References: Message-ID: X-Sender: mark@lawinegevaar.nl User-Agent: RoundCube Webmail/0.2 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org The getTables and getColumns methods should be used for objects that can be used in a FROM clause (getTables) or can be referenced in the select column list (getColumns). If an index in PostgreSQL doesn't fit in those categories, then it shouldn't be included (that is what getIndexInfo is for). Most of the methods in DatabaseMetaData are not primarily for human consumption, but to discover the structure of a database by a tool that for example generates queries, etc. Mark On Fri, 16 Oct 2015 00:19:04 +0200, Thomas Kellerer wrote: > Wouldn't it make more sense to _exclude_ those types that should > absolutely not appear there? > > I don't really see the point of excluding anything there in the first place > to be honest. > > This method won't get called "accidently" with some random object name. > If that is an index (or something else), that's what the user requested. > > As indexes and tables share the same namespace there will never be > any ambiguity which object is meant. > > Currently the driver also returns columns for types "create type foo as > ..." > I do rely on that as well. > > Regards > Thomas > > > Dave Cramer schrieb am 15.10.2015 um 23:53: >> That's fine. I'll revert it. But I think the previous issue was that >> it was also returning indexes as well. I'll just narrow down to >> tables, views, and mat views >> >> Dave Cramer >> >> davec@postgresintl.com >> www.postgresintl.com >> >> On 15 October 2015 at 17:39, Thomas Kellerer > > wrote: >> >> All I can say is, that due to the nature of SQL Workbench (being >> DBMS independent) I do use (or at least test) >> many other DBMS and every[1] other JDBC driver does return view >> columns - including materialized views in Oracle and DB2. >> >> So apparently all the other vendors think it makes sense to return >> view (and materialized view) columns. >> >> Thomas >> >> [1] I have tested at least briefly more than 15 different ones. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc