Use the PostgreSQL Table Editor to define table properties. This procedure assumes you are working in a physical model, with PostgreSQL defined as the target server.
To define properties for a PostgreSQL table:
The PostgreSQL Table Editor opens.
Note: Click New on the toolbar to create a new table. Use the Enter filter text box to filter a very large list of tables to quickly locate the one that you want to define.
Specifies the physical name of the table. Change the physical name of the table in this field.
Specifies whether the table is suppressed from a logical model and appears in a physical model only.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Specifies whether the table is created as a temporary table. Temporary tables are automatically dropped at the end of a session, or optionally at the end of the current transaction.
Specifies whether the rows of the new table should have OIDs assigned to them.
Specifies whether the table should be created as an unlogged table. Data written to unlogged tables is not written to the write-ahead log, which makes them faster than ordinary tables.
Specifies the behavior of temporary tables at the end of a transaction block.
No action is taken at the ends of transactions. This is the default behavior.
All rows in the temporary table will be deleted at the end of each transaction block. An automatic TRUNCATE is done at each commit.
The temporary table will be dropped at the end of the current transaction block.
Specifies the schema of the database to which the table belongs. Select the schema from the drop-down list or click New to create one.
Specifies the role or user that owns the schema. Select the owner from the drop-down list or click New to create one.
Specifies a table from which the new table automatically copies all column names, their data types, and their not-null constraints.
Specifies the table column attributes to be copied. Select the required attribute from the drop-down list. You can either select all the available attributes or one of them at a time.
Specifies a tables from which the new table automatically inherits all columns. Parent tables can be plain tables or foreign tables. A persistent relationship is created between the new child table and its parent table.
Creates a typed table, which takes its structure from the specified composite type (name optionally schema-qualified). A typed table is tied to its type. For example, the table will be dropped if the type is dropped. Select an existing type from the drop-down list or click New to create one.
Specifies the tablespace in which the new table 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.
Specifies the storage parameters for tables, and for indexes associated with a UNIQUE, PRIMARY KEY, or EXCLUDE constraint.
Specifies a table from which the new table automatically copies all column names, their data types, and their not-null constraints.
Specifies that the default values should be copied from the table specified under Like Table.
Specifies that the constraints should be copied from the table specified under Like Table.
Specifies that the indexes should be copied from the table specified under Like Table.
Specifies that the storage options should be copied from the table specified under Like Table.
Specifies that the comments should be copied from the table specified under Like Table.
Defines row count for the table. Enter a value in the field.
Defines row sizing for the table. Enter a value in the field.
Defines growth increments for the table. Enter a value in the field.
The table is defined and the PostgreSQL Table Editor closes.
For more information on table properties, refer to PostgreSQL documentation.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|