Previous Topic: Define ODBC Table Index PropertiesNext Topic: Define Progress Table Index Properties


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

  1. Right-click a table index in the Model Explorer and click Properties.

    The PostgreSQL Table Index Editor opens.

  2. Select the table from the Table drop-down that contains the index that you want to define.
  3. Select the index in the Navigation Grid that you want to define.

    Note: Click New New icon in property editors to create a new object 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.

  4. Work with the following options:
    Table

    Displays the table to which the selected table index belongs.

    property editor PREVIOUS icon Previous

    Positions the editor on the previous table index in the Navigation Grid.

    property editor NEXT icon Next

    Positions the editor on the next table index in the Navigation Grid.

    Table Index Editor Toolbar_Index Sort Order Button 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 icon in property editors to create a new object New

    Creates a new table index that becomes the current object in the editor.

    property editor DELETE button Delete

    Deletes the selected table index.

    property editor HELP button Help

    Accesses online help for the editor.

    enter filter text box in a property editor to filter object list

    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.

    Note: 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.

    Note: 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.

  5. 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.

    Note: 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 New icon in property editors to create a new object 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.

  6. 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.
  7. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  8. (Optional) Click the Where Used tab to view where the object is used within the model.
  9. (Optional) Click the UDP tab to work with user-defined properties for the object.
  10. (Optional) Click the Notes tab to view and edit user notes.
  11. (Optional) Click the Extended Notes tab to view or edit user notes.
  12. Click Close.

    The table index is defined and the PostgreSQL Table Index Editor closes.