Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmyrl-0004Gc-N1 for pgsql-jdbc@arkaria.postgresql.org; Fri, 16 Oct 2015 06:51:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zmyrl-0002O2-3u for pgsql-jdbc@arkaria.postgresql.org; Fri, 16 Oct 2015 06:51:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZmyrF-0001S3-Lb for pgsql-jdbc@postgresql.org; Fri, 16 Oct 2015 06:51:17 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZmyrB-0003dX-Cf for pgsql-jdbc@postgresql.org; Fri, 16 Oct 2015 06:51:17 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zmyr7-0006PG-Hx for pgsql-jdbc@postgresql.org; Fri, 16 Oct 2015 08:51:09 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 08:51:09 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2015 08:51:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Release 1204 released Date: Fri, 16 Oct 2015 08:50:47 +0200 Lines: 73 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: 0.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 Interesting issue - that is indeed a use-case I didn't think about. It's too bad that getColumns() doesn't return a "TABLE_TYPE" column that would match the types returned by getTableTypes() However, information_schema.columns does return columns from views, so those should at least be included (although not getting columns for materialized views or types would mean I had to adjust my SQL Workbench for that) Thomas Dave Cramer schrieb am 16.10.2015 um 00:49: > This was the original issue > > https://github.com/pgjdbc/pgjdbc/issues/374 > > I don't think returning test_table_pkey is correct, hence the change > > Dave Cramer > > davec@postgresintl.com > www.postgresintl.com > > On 15 October 2015 at 18:19, 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 > > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc