Yep I had the same experience in 2.5.
I updated the postgresql jar file to postgresql-9.3-1101.jdbc3.jar. Standard views showed up but not materialized views.
Simon
From: Andrea Aime [mailto:andrea.aime@…1107…]
Sent: Wednesday, 23 April 2014 3:47 PM
To: Mark Grantham
Cc: GeoServer Mailing List List
Subject: Re: [Geoserver-users] Using Postgres Materialized Views in Geoserver
On Wed, Apr 23, 2014 at 3:23 AM, Mark Grantham <mark@…6367…> wrote:
Hi,
I am currently testing reading vector data from a PostGIS DB (version
9.3) using GeoServer 2.5. I wanted to try using a materialized view for
performance (as suggested in
http://www.slideshare.net/geosolutions/geoserver-on-steroids).
I created a “normal” view, added it to geometry_columns and was able to
add it as a layer in GeoServer. I then created a Materialized View using
the same method, and added it to geometry_columns. When I went to add
the new layer in GeoServer, the materialized view did not display. I
then created a view which did a SELECT * on the materialized view, added
it to geometry_columns and was able to add it to GeoServer.
I thought that this should work in 2.5 after
https://jira.codehaus.org/browse/GEOT-4635 was fixed - has anyone else
tried this?
We also need to upgrade the jdbc driver, but trying to do so breaks other things,
see linked issue in there
Cheers
Andrea
–
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://twitter.com/geosolutions_it