From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Support for materialized views
Date: Thu, 16 May 2013 19:45:51 +0200
Message-ID: <kn35up$o9i$1@ger.gmane.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hi,
I noticed that there is no change in the master repository yet regarding the upcoming materialized views in 9.3
As far as I can tell, the change is quite small, please see the attached patch.
I changed the code for AbstractJdbc2DatabaseMetaData in two places:
1) in the getTables() method, the CASE statement that determines the type of a table
2) the static initializer for the tableTypeClauses map.
I am not sure if that should be dynamic though and only be added if connected to a 9.3 server
Regards
Thomas
P.S.: I'm not really used to creating patches, so please forgive me if the context information is incorrect in the file.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbcAttachments:mview.patch (text/plain, 477B) download--- c:/Projects/pgjdbc-master/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java Thu May 16 18:56:03 2013+++ c:/Projects/pgjdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java Thu May 16 19:28:25 2013@@ -2030 +2029,0 @@- " WHEN 'm' THEN 'MATERIALIZED VIEW' " +@@ -2195,3 +2193,0 @@- tableTypeClauses.put("MATERIALIZED VIEW", ht);- ht.put("SCHEMAS", "c.relkind = 'm'");- ht.put("NOSCHEMAS", "c.relkind = 'm'");
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Support for materialized views
In-Reply-To: <kn35up$o9i$1@ger.gmane.org>
References: <kn35up$o9i$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox