Defining PostgreSQL Databases

The following properties are applicable to a PostgreSQL Database object.

Tab

Section

Property

Description

Additional Information

    Name Specifies the name of the database  
    Generate Specifies whether a SQL statement for the database is generated during forward engineering  
General Database Options Owner Specifies the owner of the database  
Template Specifies the name of the template from which a new database is created, or enter DEFAULT to use the default template  
Encoding Specifies the character set encoding to use in the new database. Specify a string constant (for example, 'SQL_ASCII'), an integer encoding number, or DEFAULT to use the default encoding (namely, the encoding of the template database.  
Strategy Specifies the strategy used in creating the new database

WAL_LOG: Indicates that the database copies block by block, and each block writes separately to the write-ahead log.

FILE_COPY: Indicates that the strategy writes a small record to the write-ahead log for each target database's tablespace.

Locale Specifies the default collation order and character classification in the new database  
LC_Collate Sets LC_COLLATE in the database server's operating system environment. The default is the setting of locale if specified, otherwise the same setting as the template database.  
LC_CType Sets LC_CTYPE in the database server's operating system environment. The default is the locale setting, if specified, otherwise the same setting as the template database.  
ICU Locale Specifies the ICU locale for the database default collation order and character classification, overriding the locale setting. The locale provider must be ICU.  
ICU Rules Specifies the additional collation rules to customize this database's default collation behavior. This feature supports only ICU.  
Provider Specifies the provider to use a default collation in this database.

Icu: Specifies advanced, consistent, and locale-aware collation rules based on Unicode, suitable for diverse and multi-language sorting

Libc: Specifies collation rules based on the operating system's C library, with behavior that can vary and may be less flexible compared to ICU

Version Specifies the collation version string to store with the database  
Tablespace Specifies the name of the tablespace associated with the new database. This tablespace will be the default tablespace used for objects created in this database.  
Allow_Connections Specifies whether to restrict access to the database

 

Connection Limit Specifies the number of concurrent connections to the database. The default value is -1, which is unlimited  
Is Template Specifies the database cloning privileges for a user

True: Indicates that the users with CREATEDB privileges can clone the database.

False: Indicates that only superusers or the owner of the database can clone it.

OID Specifies the object identifier used for the new database. If not specified, PostgreSQL will automatically choose a suitable OID.
  1. (Optional) Click the Comment tab and enter any comments you want to associate with the object.
  2. (Optional) Click the UDP tab to work with user-defined properties for the object.
  3. (Optional) Click the Notes tab to view and edit user notes.
  4. (Optional) Click the Extended Notes tab to view or edit user notes.
  5. Click Close.

    The database is defined and the PostgreSQL Database Editor closes.

For more information, refer to PostgreSQL documentation.