Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud2L5-0000Pa-NU for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 May 2013 17:51:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ud2FI-0006dY-T5 for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 May 2013 17:45:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud2F6-0006Tt-Lv for pgsql-jdbc@postgresql.org; Thu, 16 May 2013 17:45:28 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud2Ew-0000LJ-3J for pgsql-jdbc@postgresql.org; Thu, 16 May 2013 17:45:28 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ud2Eq-00032S-4k for pgsql-jdbc@postgresql.org; Thu, 16 May 2013 19:45:12 +0200 Received: from ppp-46-244-161-64.dynamic.mnet-online.de ([46.244.161.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 May 2013 19:45:12 +0200 Received: from spam_eater by ppp-46-244-161-64.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 May 2013 19:45:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Support for materialized views Date: Thu, 16 May 2013 19:45:51 +0200 Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030307000709090306040306" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-161-64.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 X-Pg-Spam-Score: -2.5 (--) 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 This is a multi-part message in MIME format. --------------030307000709090306040306 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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. --------------030307000709090306040306 Content-Type: text/plain; charset=windows-1252; name="mview.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mview.patch" --- 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'"); --------------030307000709090306040306 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc --------------030307000709090306040306--