PostgreSQL Setup
Last updated
Last updated
When migrating a database to PostgreSQL, please take note of the following:
Database users will be lost. The only user that will remain is the DBA user.
The following routines will not be migrated: database triggers, events, procedures, and functions.
Views will be migrated (best effort).
Install
When installing PostgreSQL, ALWAYS use sql for the superuser:
The migration introduces a secondary admin user, named DBA
, to maintain consistency with ASA. Initially, sticking to SQL password is recommended purely for the migration process.
The default postgres
database, containing metadata and templates, is essential and must not be deleted.
The users are global to the PostgreSQL service. After the migration, you can still easily change passwords for the users.
You can change the password anytime following these steps:
open PGAdmin -> rightclick the postgres user -> properties -> tab 2 -> password: sql -> save.
Open TimeLine Server 17, right click on the database you want to migrate. Attention, this will create a new database, so the ASA Profile will still be working:
Open pgAdmin and check if the database structure was generated.
Create a new server profile in TimeLine Server, as follows:
To check if the database was migrated successfully, verify if the double columns from the ASA17 database are now double precision. Anything else is wrong
If the migrated database has errors, you can delete the database as follows: