Skip to main content
Solved

PostgreSQL and materialized views.


jorge_vidinha
Contributor
Forum|alt.badge.img+2
Is there something needed to be done on db side so that FME can read PostgreSQL Materialized views , or this is something not possible to do ?

 

Thanks,

 

Jorge Vidinha

Best answer by fmelizard

@jorge_vidinha @sigtill

 

This issue is resolved in FME 2016. You will see PostGIS materialized views in the table list and you can read them.

 

Hope this helpsKen
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

Forum|alt.badge.img
  • March 31, 2015
Hi Jorge,

 

You should be able to read materialized views from Postgres.  I was able to to this by entering the view name into the Table List in the Add Reader dialog parameters.  But for some reason we don't see them when we get the table list. I will look into this problem further but does that help you work-around it?

 

Thanks 

 

Ken

david_r
Celebrity
  • March 31, 2015
Hi Ken,

 

 

I suspect that FME doesn't include the PostgreSQL system catalog view "pg_matviews" when listing tables ("pg_tables") and views ("pg_views") in the dialogs.

 

 

Materialized views were only introduced in PostgreSQL 9.3, so you'd need to check the version first, e.g. "select version()"

 

 

David

Forum|alt.badge.img
  • April 1, 2015
Hi Jorge

 

I filed an enhancement request to show Materialized Views in the table list of the Postgres and PostGIS readers.  Views work fine and Materilized Views can be read if you know the name and enter it manually in the dialog.

 

Ken

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • November 12, 2015
@jorge_vidinha @sigtill

 

This issue is resolved in FME 2016. You will see PostGIS materialized views in the table list and you can read them.

 

Hope this helpsKen

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • November 12, 2015
Ah, great - just had a too early FME2016 Beta which I tested against then I guess. Will download a newer one and try again!

jorge_vidinha
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • November 13, 2015
Thanks Ken , good to know

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings