Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoNcK-0002B0-Q8 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 01:20:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoNcJ-0001Rh-HG for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 01:20:35 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoLJ6-00016D-Gh for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 22:52:36 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoLJ4-0004cw-2v for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 22:52:35 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoLJ3-0004MT-As for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 22:52:33 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VoLIx-0002Fs-SQ for pgsql-bugs@postgresql.org; Wed, 04 Dec 2013 22:52:28 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8657: Postgres 9.3 JDBC driver is unable to find the Foreign tables To: pgsql-bugs@postgresql.org From: plalg@hotmail.com Message-Id: Date: Wed, 04 Dec 2013 22:52:27 +0000 X-Pg-Spam-Score: 0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8657 Logged by: Prakash Lal Email address: plalg@hotmail.com PostgreSQL version: 9.3.0 Operating system: Windows 7 Description: Postgres 9.3 JDBC driver is unable to find the Foreign tables. Found the cause, the hashmap values for "FOREIGN TABLE" in AbstractJdbc2DatabaseMetaData class is getting overwritten by "MATERIALIZED VIEW" values: Before ht = new HashMap(); tableTypeClauses.put("FOREIGN TABLE", ht); ht.put("SCHEMAS", "c.relkind = 'f'"); ht.put("NOSCHEMAS", "c.relkind = 'f'"); tableTypeClauses.put("MATERIALIZED VIEW", ht); ht.put("SCHEMAS", "c.relkind = 'm'"); ht.put("NOSCHEMAS", "c.relkind = 'm'"); After (fix): ht = new HashMap(); tableTypeClauses.put("FOREIGN TABLE", ht); ht.put("SCHEMAS", "c.relkind = 'f'"); ht.put("NOSCHEMAS", "c.relkind = 'f'"); ht = new HashMap(); // this is the line missing tableTypeClauses.put("MATERIALIZED VIEW", ht); ht.put("SCHEMAS", "c.relkind = 'm'"); ht.put("NOSCHEMAS", "c.relkind = 'm'"); thanks Prakash -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs