Previous Topic: Define PostgreSQL Table PropertiesNext Topic: Define PostgreSQL Materialized View Column Properties


Define PostgreSQL Materialized Views

Use the PostgreSQL Materialized View Editor to define a materialized view for query in a PostgreSQL physical model.

To define a PostgreSQL materialized view

  1. In the Model Explorer, right-click Materialized Views and click New.

    An instance of Materialized View is created.

  2. Right-click the instance and click Properties.

    The PostgreSQL Materialized View Editor opens.

  3. In the navigation grid, select the materialized view that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create a materialized view. Use the Enter filter text box to filter a very large list of materialized views to quickly locate the one that you want to define.

    Name

    Specifies the name of the materialized view. Set the name of the view in this field.

    Schema

    Specifies the schema for the materialized view. Select a schema from the drop-down list or click New New icon in property editors to create a new object to create one.

    Generate

    Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.

  4. On the PostgreSQL tab, work with the following options:
    Tablespace

    Specifies the name of the tablespace in which the new materialized view is to be created. If not specified, default_tablespace is consulted.

    Storage Parameters

    Specifies optional storage parameters for the materialized view. All parameters supported for a table are also supported for materialized view, except for the OIDs.

    No Data

    Specifies whether the materialized view should be populated at creation time.

  5. Work with the other tabs in the editor to access additional design features, for example:
  6. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  7. (Optional) Click the Where Used tab to view where the object is used within the model.
  8. (Optional) Click the UDP tab to work with user-defined properties for the object.
  9. (Optional) Click the Notes tab to view and edit user notes.
  10. (Optional) Click the Extended Notes tab to view or edit user notes.
  11. Click Close.

    The materialized view is defined and the PostgreSQL Materialized View Editor closes.

For more information, refer to PostgreSQL documentation.