Upsize to PostgreSQL
Before you set up Enterprise Architect for use with PostgreSQL, it is recommend that you run the project integrity check tool (select the Tools | Data Management | Project Integrity Check menu option) on the base project to upsize to PostgreSQL. This ensures your data is clean before uploading.
Note: |
You cannot move a model from a source .EAP file of a version earlier than 3.5.0. |
Warning: |
Before proceeding, ensure MDAC 2.6 or higher is installed on your system. |
Upsizing Your Database
You upsize your database for PostgreSQL in three stages, as follows:
Stage One: Install PostgreSQL Components
- Install PostgreSQL, version 7.3.2 or higher.
- Install psqlODBC, version 7.03.01.00 or higher (but do not use version 8.4.1).
- Create a suitable ODBC Data Source to point to your new database.
Note: |
Stage Two: Configure the Database
- From the PSQL command line, or using a tool such as the PostgreSQL command line, pgAdminIII or EMS PostgreSQL Manager, load the Postgres_Basemodel.sql file. This is available to registered users on the Corporate edition Resources page of the Sparx Systems website.
- Run the script to create all required data structures.
Note: |
You now have an empty database and can transfer an existing model into the server.
Stage Three: Transfer the Data
- Open Enterprise Architect (click on the Cancel button on the Open Project screen to open with no project loaded).
- Select the Tools | Data Management | Project Transfer menu option. The Project Transfer dialog displays.

- In the Transfer Type panel, select .EAP to DBMS.
- In the Source Project field, type or select the name of the .EAP file to upsize to PostgreSQL.
- At the right of the Target Project field, click on the [ ... ] (Browse) button. The Datalink Properties dialog displays.
- Select Microsoft OLE DB Provider for ODBC Drivers from the list, then click on the Next button.
- In the Use data source name field, click on the drop-down arrow and select the ODBC Data Source you configured to point to your new database.
Note: |
See Connect to a PostgreSQL Data Repository for more information. |
- Click on the OK button.
- If required, select the Logfile checkbox and type a path and filename for the data transfer log file.
- Click on the Transfer button to begin the data transfer process.
Note: |
If an error message displays reporting '...nonstandard use of \\ in a string literal...', set the server variable in the postgresql.conf file to: escape_string_warning = off |
When the process is complete, you have upsized your model to PostgreSQL and can now open it from Enterprise Architect.