Define PostgreSQL Databases
Use the PostgreSQL Database Editor for the following tasks:
- Create databases
- Define the files that are used to store an existing database
- Create a database snapshot
- Attach a database from the detached files of an existing detached database
- Define database properties in a PostgreSQL physical model
To define a database in PostgreSQL
- In the Model Explorer, right-click Databases and click New.
An instance of Database is created.
- Right-click the instance and click Properties.
The PostgreSQL Database Editor opens.
- In the navigation grid, select the database that you want to define and work with the following options:
Click New on the toolbar to create a database. Use the Enter filter text box to filter a very large list of databases to quickly locate the one that you want to define.
- Name
Specifies the name of the database. Set the name of the database in this field.
- 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 owner of the database. Select a role from the drop-down list or click New to create one.
- Encoding
Specifies the character set encoding to use in the new database. Specify a string constant (for example, 'SQL_ASCII'), or an integer encoding number, or DEFAULT to use the default encoding (namely, the encoding of the template database).
- Tablespace
Specifies the name of the tablespace that will be associated with the new database. This tablespace will be the default tablespace used for objects created in this database.
- Collation
Specifies the default collation for the database.
- Connection Limit
Specifies the number of concurrent connections that can be made to the database. The default value is -1, which indicates no limit.
- Template
Specifies the name of the template from which to create the new database, or DEFAULT.
- (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 database is defined and the PostgreSQL Database Editor closes.
For more information, refer to PostgreSQL documentation.
Copyright © 2024 Quest Software, Inc. |