KNOWLEDGE BASE

PostgreSQL Materialized Views Do Not Appear in Table List


Published: 12 Nov 2014
Last Modified Date: 08 Jul 2016

Issue

When connecting to a PostgreSQL database from Tableau Desktop, materialized views do not appear in the list of available tables.

Environment

  • Tableau Desktop
  • PostgreSQL 9.3

Resolution

Use one of the following three options to access materialized views:
  1. Use a custom SQL connection. For example: 
    SELECT <col1>, <col2> FROM <materializedView>
    Or:
    SELECT * FROM <materializedView>
  2. Create a dynamic view of the materialized view.
  3. Create a table and use rules to rebuild the data from the materialized view.
Note: Dynamic views may have the slowest performance as Postgres must rebuild the view for each query.

Cause

Tableau Desktop does not have access to the Postgres system table which records information about materialized views.
Did this article resolve the issue?