Define PostgreSQL Table Index Properties
Use the PostgreSQL Table Index Editor to specify properties for a table index in a physical model. For more information about these properties, see your PostgreSQL documentation.
To define PostgreSQL table index properties
- Right-click a table index in the Model Explorer and click Properties.
The PostgreSQL Table Index Editor opens.
- Select the table from the Table drop-down that contains the index that you want to define.
- Select the index in the Navigation Grid that you want to define.
Click New
on the toolbar to create a new index. Use the Enter filter text box to filter a very large list of indexes to quickly locate the one that you want to define.
- Work with the following options:
- Table
Displays the table to which the selected table index belongs.
Previous
Positions the editor on the previous table index in the Navigation Grid.
Next
Positions the editor on the next table index in the Navigation Grid.
Sort
Sorts the table indexes by alphabetic, reverse alphabetic, or index order. You select the method you want using the drop-down menu that opens after you click the Sort button.
New
Creates a new table index that becomes the current object in the editor.
Delete
Deletes the selected table index.
Help
Accesses online help for the editor.
Lets you enter text to filter a large list of table index objects so you can quickly locate the one that you want.
- Show FK Indexes
Specifies to display FK (foreign key) indexes in the Navigation Grid.
- Physical Name
Displays the physical name of the table index.
- Type
Displays the table index type.
- Is Unique
Specifies to allow only unique values in the table index. Clear this check box to allow non-unique values.
This option is unavailable when a primary or foreign key index is selected.
- Physical Only
Specifies whether to have the index appear in the physical model only. If you want the index to appear in the logical model as a key group, clear the check box.
This option is unavailable when a primary or foreign key index is selected.
- Generate
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
- Generate as Constraint
Indicates that when the index is generated, it will be generated as a constraint.
- Click the PostgreSQL tab and work with the following options:
- Concurrent Build
Indicates that the index is built without taking any locks that prevent concurrent inserts, updates, or deletes on the table. Whereas a standard index build locks out writes (but not reads) on the table until it is done.
- Where
Indicates that a partial index is to be created. A partial index is an index that contains entries for only a portion of a table, usually a portion that is more useful for indexing than the rest of the table. The expression used in the WHERE clause can refer only to columns of the underlying table, but it can use all columns, not just the ones being indexed.
- Access Method
Specifies the name of the index method to be used. Choices are btree, hash, gist, spgist, and gin. The default method is btree.
Although the above access methods are available for use, erwin DM does not extend full support for these methods.
- Tablespace
Specifies the tablespace in which the new index is to be created. If not specified, default tablespace is consulted, or temp tablespaces if the table is temporary. Select an existing tablespace from the drop-down list or click New
to create one.
- Storage Parameters
The name of an index method-specific storage parameter.
- Initially Deferred
Indicates that the index should be checked only at the end of the transaction.
- Deferrable
Controls whether the index is deferrable.
- Click the Members tab to specify the columns to place into the index. You can also include non-key columns in the index; these columns are not part of the index but are stored along with the index columns in the index data area for fast retrieval. This optimizes retrieval speed because a read of this column is satisfied from the index data area, without accessing the row from the row data area.
- (Optional) Click the Commenttab 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 UDPtab to work with user-defined properties for the object.
- (Optional) Click the Notestab to view and edit user notes.
- (Optional) Click the Extended Notes tab to view or edit user notes.
- Click Close.
The table index is defined and the PostgreSQL Table Index Editor closes.
Copyright © 2023 Quest Software, Inc. |