Creating Models › Target Servers for Physical Models › Database Property Editors › PostgreSQL Physical Property Editors › PostgreSQL Support Summary › Define PostgreSQL Views
Define PostgreSQL Views
Use the PostgreSQL View Editor to define a view in PostgreSQL physical model.
To define a PostgreSQL view
- In the Model Explorer, right-click Views and click New.
An instance of View is created.
- Right-click the instance and click Properties. Alternatively, you can also click Views on the Model menu.
The PostgreSQL View Editor opens.
- In the navigation grid, select the user-defined type that you want to define and work with the following options:
Note: Click New on the toolbar to create a view. Use the Enter filter text box to filter a very large list of views to quickly locate the one that you want to define.
- Name
-
Specifies the name of the user-defined type. Change the name of the user-defined type in this field.
- Schema
-
Specifies the schema of the database to which the view belongs. Select the schema from the drop-down list or click New to create one.
- Use Replace Syntax
-
Indicates that if a view of the same name already exists, it should be replaced. The new query must generate the same columns that were generated by the existing view query. However, it may add additional columns to the end of the list.
- 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:
- Owner
-
Specifies the role or user that owns the view. Select the owner from the drop-down list or click New to create one.
- Temporary
-
Indicates that the view is created as a temporary view. Temporary views are automatically dropped at the end of the current session. If any of the tables referenced by the view are temporary, the view is created as a temporary view.
- Recursive
-
Indicates that the view is created as a recursive view.
- Security Barrier
-
Indicates that the view is intended to provide row-level security.
- 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.
- View the SQL code used during Forward Engineering using the SQL tab.
- Enter text to define a WHERE clause in the Where tab.
- Specify the order of DDL generation in the Object Creation Order tab.
- Define function permissions using the Permission 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 view is defined and the PostgreSQL View Editor closes.
For more information, refer to PostgreSQL documentation.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|