PostgreSQL database configuration

Feedback


PostgreSQL  is an open source object-relational database management system with cross-platform, extensible features, and supports rich data types and has multi-version control ability. The iPortal supports using PostgreSQL database to store the portal data and security information.

Install and configure the PostgreSQL database

If you've already installed the PostgreSQL database, you can directly configure the portal data storage and security information after creating the database.If you didn't install PostgreSQL yet, please refer to: PostgreSQL installation and configuration.

Note: In iPortal, portal data and security information can't be stored in the same PostgreSQL database. You need to create different databases to store them.

Portal data storage configuration

It's recommended to configure the portal data storage before iPortal is started (before creating the initial administrator account). The configuration information is in the iportal.xml configuration file in the installation directory (%SuperMap iPortal_HOME%\webapps\iportal\WEB-INF). For details, see: iPortal configuration file description. For using a PostgreSQL database, you only need to remove or delete the default SQLite database connection pool configuration information and add the PostgreSQL database connection pool configuration information. The sample configuration is as follows:

<dbType>POSTGRESQL </dbType>

<driverClass>org.postgresql.Driver</driverClass>

<jdbcUrl>jdbc:postgresql://localhost:5432/iportal?useUnicode=true&amp;characterEncoding=UTF-8</jdbcUrl>

<maxPoolSize>30</maxPoolSize>

<initialPoolSize>5</initialPoolSize>

<minPoolSize>5</minPoolSize>

<maxIdleTime>3000</maxIdleTime>

<maxWait>300000</maxWait>

<username>postgres</username>

<password></password>

Note:

Security information storage configuration

You can configure the iPortal security information storage after the iPortal is started. Log in to iPortal as the administrator, enter Management > Security, you can perform the security information configuration operations on the "Security Config" page. For details, see: Security information storage.