Creating Models › Target Servers for Physical Models › Database Property Editors › PostgreSQL Physical Property Editors › PostgreSQL Support Summary › Define PostgreSQL Materialized Views
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
- In the Model Explorer, right-click Materialized Views and click New.
An instance of Materialized View is created.
- Right-click the instance and click Properties.
The PostgreSQL Materialized View Editor opens.
- In the navigation grid, select the materialized view that you want to define and work with the following options:
Note: Click New 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 to create one.
- Generate
-
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
- 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.
- Work with the other tabs in the editor to access additional design features, for example:
- Specify the tables or views to define the view column in the Select tab.
- Select the tables and views that you want to participate in the view using the From tab.
- Enter text to define a WHERE clause in the Clauses tab.
- View and change a user-provided DDL statement in the User Defined SQL tab.
- View the SQL code used during Forward Engineering using the SQL tab.
- Work with style sheets which are used to format the font and other graphical themes used in the display of the view in the Style tab.
- Specify the icon style to use for the view in the Icon tab.
- (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
- (Optional) Click the Where Used tab to view where the object is used within the model.
- (Optional) Click the UDP tab to work with user-defined properties for the object.
- (Optional) Click the Notes tab to view and edit user notes.
- (Optional) Click the Extended Notes tab to view or edit user notes.
- Click Close.
The materialized view is defined and the PostgreSQL Materialized View Editor closes.
For more information, refer to PostgreSQL documentation.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|