Re: Regarding inclusion of indexes as tables - Mailing list pgsql-jdbc

From David G. Johnston
Subject Re: Regarding inclusion of indexes as tables
Date
Msg-id CAKFQuwYfej7bZY2+fcQ6X7zQj=pbNBrS3dq+zM7JDK49LaB4tg@mail.gmail.com
Whole thread Raw
In response to Regarding inclusion of indexes as tables  (Deepak Beehyv <deepakram.beehyv@alationdata.com>)
List pgsql-jdbc
On Fri, May 8, 2015 at 4:40 AM, Deepak Beehyv <deepakram.beehyv@alationdata.com> wrote:
Hi all,
We are trying to use the getColumns() and getTables() functions from DatabaseMetaData, but we are getting indexes as well in getTables() and indexColumns from getColumns() call. We are able to filter out indexes from getTables using tableType column available but were unable to do that for columns as tableType is not captured. 
I would like to know if getting indexes in getTables() and indexColumns in getColumns is warranted or a bug. If such a behaviour is warranted, is there any alternate solution.


​Just thinking here...
 
​Identify the table types you care about and create an array of them to pass to "getTables()".  For each of the tables returned pass the name of the table to "getColumns()".

David J.
 

pgsql-jdbc by date:

Previous
From: dmp
Date:
Subject: Re: Regarding inclusion of indexes as tables
Next
From: Mark Rotteveel
Date:
Subject: Re: Regarding inclusion of indexes as tables