Support for materialized views

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Support for materialized views
Date: 2013-05-16 17:45:51
Message-ID: kn35up$o9i$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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.

Attachment Content-Type Size
mview.patch text/plain 478 bytes

Browse pgsql-jdbc by date

  From Date Subject
Next Message Július Štroffek 2013-05-17 15:06:56 DatabaseMetaData.getTables returns lower-case column names
Previous Message Dave Cramer 2013-05-14 01:36:28 Re: Two versions of jdbc driver returns different results