Why a midPoint move to the native PostgreSQL repository is an export and reimport project
Evolveum states that the schema changes for the native PostgreSQL repository are too large for a SQL update, so your data must be exported and reimported rather than converted in place. Teams on the generic SQL repository or on another database should plan this as a data migration with a cutover, not as a configuration change or a routine upgrade. The documented path upgrades midPoint to 4.4 on the original SQL configuration, exports data with Ninja, initializes the native PostgreSQL repository, switches configuration, imports with Ninja and starts midPoint. Each of those steps has to be rehearsed against a copy of your data before anyone schedules a production window.
The effort is driven less by the tooling than by what you have to move and how many places it must land. Ask the team to size the object count in the repository, the audit record volume, the number of connected resources and custom objects such as mappings, object templates and schema extensions, and the number of environments that must be migrated, including development, test and production. Each environment is an export, an import and a verification pass. Confirm with the vendor which midPoint version your current deployment must reach before the export, because that step can add an upgrade stop of its own. Audit migration can run while midPoint is live on the new repository, which can shorten the cutover window, but it still needs its own plan and check.
Because the work depends on your data, the engagement is fixed-scope: DeployOpen agrees the scope, deliverables and timeline in writing before work begins, and the quote follows from that written scope. Ask any provider to state in writing which environments, audit scope, integrations and verification steps are included, who performs the cutover, and what happens if the rehearsal shows problems. Those answers, more than any headline estimate, determine what the project actually costs.
What maps cleanly and what needs rework during the move
This table compares each part of a midPoint installation on the generic SQL or other database repository with its counterpart on the native PostgreSQL repository. Read the migration notes column before scheduling cutover, since most rework sits in custom SQL, database-side logic and backup routines rather than in midPoint objects. Where the documented migration does not confirm a one-to-one match, the row says so and names what to re-verify.
| Component | Native PostgreSQL target | Migration notes |
|---|---|---|
| Objects (users, roles, resources, orgs) | true | Exported with Ninja and imported into the new schema. Verify counts and sample objects after import, since schema changes are too large for an in-place update. |
| Tasks and scheduling state | true | Task objects move with the export. Confirm that scheduled and running tasks resume as expected after the cutover and that no task was left mid-run during export. |
| Audit records | true | Evolveum documents migrating audit records while midPoint runs on the native repository. Plan the audit migration as its own step and verify retention and query results. |
| Configuration and system settings | Partial | Configuration files and system configuration objects must be reviewed against the new repository settings. Confirm the database connection, pool and any custom properties before starting midPoint. |
| Connector configuration and resources | Partial | Resource definitions travel as objects, but connector versions and the ConnId framework build must be confirmed for the target midPoint release. Re-test each resource with a read-only operation. |
| Custom SQL, views and stored procedures | Not mapped | Native PostgreSQL does not carry over custom SQL written against the old schema. Any reporting views, triggers or procedures must be redesigned and re-verified against the new schema. |
| Database-specific data types and functions | Not mapped | Functions or syntax tied to the source database have no documented direct equivalent. Identify them in the source, rewrite them for PostgreSQL and retest the affected queries. |
| Database users, roles and grants | Not mapped | Accounts, passwords and privileges must be created on the PostgreSQL server. Confirm that SCRAM password authentication and least-privilege grants are set before cutover. |
| Backups and recovery procedures | Not mapped | Existing backup jobs for the source database do not carry over. Build and test PostgreSQL backup and restore, including the point-in-time recovery approach, before the old database is retired. |
Documented Ninja export and import paths for the move
The documented move is a sequence of tools and checkpoints: an upgrade on the original SQL configuration, a Ninja export, initialization of the native repository, a configuration switch and a Ninja import. Each step depends on the one before it, so the cards below describe them in the order you will run them and flag what to confirm against your midPoint version.
Upgrade on the original SQL configuration
The documented path first upgrades midPoint to 4.4 while it still runs on the original SQL configuration. Do this before any export so the data you export matches the schema the migration tooling expects. Check the exact upgrade steps for your starting version, confirm that the instance starts cleanly on 4.4, and record the midPoint and Java versions you tested with.
Migration docsNinja export of repository data
Ninja exports the repository objects from the original database so they can be reloaded into the native schema. Because Evolveum states the schema changes are too large for a SQL update, this export is the core of the move. Confirm the export command options, the output location and the file format for your version, and verify object counts after the export completes.
Native PostgreSQL repository initialization
Initialization creates the native PostgreSQL repository schema on a new, empty database that you prepare for midPoint. Plan the database server, the role and the encoding before this step, because changing them later means repeating the initialization. Confirm the initialization command and the PostgreSQL major version your midPoint release supports, and check the system requirements page for the database server layout.
Configuration switch to the native repository
The configuration switch points midPoint at the new PostgreSQL repository in its configuration files. Change only the repository settings and keep the rest of the configuration under version control, so you can compare before and after. Confirm the exact configuration keys for your release, and do not start midPoint against the new repository until the import is complete.
Ninja import into the native repository
Ninja import loads the exported objects into the native PostgreSQL repository after the switch. Check the import log for errors and skipped objects, then compare counts for users, roles, resources and tasks against the export. Confirm the import options for your version, including any handling of duplicate or invalid objects, and agree on who signs off the reconciliation before go-live.
Audit migration while midPoint runs
Audit records can be migrated while midPoint is running on the native repository, which lets you move audit history without holding the identity workload still for the full audit copy. Decide which audit window you must keep for your compliance team, confirm the migration procedure and its effect on performance for your version, and record how the migrated audit data was verified.
How the parallel run and cutover should be sequenced
The sequence moves the repository in measured steps, so each stage proves the next one works before production data is touched. The window length depends on the data volume measured during the rehearsal, which must be confirmed before a cutover date is set.
Inventory the current version, database and audit volume
Record the running midPoint version, the current repository type and database version, the connectors in use, the scheduled tasks, and the size of the main repository and audit tables. Your team and DeployOpen confirm the upgrade path to 4.4 and the target PostgreSQL version against the Evolveum migration docs and the PostgreSQL versioning policy. This step is done when the inventory is signed off and the audit volume is known, because that figure drives the rehearsal and the window length.
Rehearse export and import on a copy
Take a copy of the production database and configuration into a separate environment. Run the documented sequence there: upgrade to 4.4 on the original SQL configuration, export with Ninja, initialize the native PostgreSQL repository, switch the configuration, import with Ninja, and start midPoint. Time each stage and record every warning or error. This step is done when a full run completes without unresolved errors and the measured durations are written down, since they set the length of the production window.
Pilot on a non-production environment
Run the migrated midPoint in a non-production environment that resembles production in connector configuration, role model and task schedule. Confirm that login works with your SSO and administrator accounts, that the native PostgreSQL repository performs acceptably under typical load, and that backups of the new database restore successfully. This step is done when the pilot runs without data loss or unexplained behavior for the agreed test period, and the findings are logged against owners.
Validate reconciliation, tasks and connectors in parallel
Keep the old and new environments running side by side against the same source systems, with changes applied only in the environment that is currently authoritative. Compare reconciliation results, task outcomes, connector read and write behavior, and provisioning logs for each target system. Differences are classified as migration defects, configuration gaps or expected behavior. This step is done when the owner of each connector and task signs off that the results match, with any exceptions documented.
Run the production export, import and switch
Freeze administrative changes, stop scheduled tasks as planned, and take a verified backup of the current database. Repeat the rehearsed sequence against production data: export with Ninja, initialize the native PostgreSQL repository, switch the configuration, import with Ninja, and start midPoint. Check object counts and a sample of assignments against the pre-cutover inventory. This step is done when the counts match, logins and a test provisioning action succeed, and the change freeze is lifted.
Migrate audit records while midPoint runs
After the core switch is stable, migrate audit records with midPoint already running on the native repository, as the Evolveum documentation allows. Confirm that new audit events are written to the new store while the historical records are copied, and that a sample of historical events can be found in the administration interface. Review the audit retention settings at this point. This step is done when audit queries return both historical and new events and the migration job has finished without errors.
Decommission the old database after a retention decision
Keep the old database read-only and available for rollback for the period your retention and change policy sets. Record the decision on how long it is kept, who approves its deletion, and how the final backup is stored. Remove the old repository configuration only after that period closes and the owner signs off. This step is done when the retention decision is documented, the final backup is verified, and the old database is removed according to that record.
What drives the cost and duration of a repository migration
This table lists the factors that move the effort of a native PostgreSQL repository migration up or down, with the direction of impact and what to ask for in a quote. Use it to compare a written scope against your own environment before asking for a fixed-scope proposal. One-time migration work and recurring support are separate line items, and the table marks which drivers affect each.
| Driver | Why it changes effort | What to ask for in a quote |
|---|---|---|
| Starting midPoint version | Older releases need upgrade steps to 4.4 on the original SQL configuration before export, so more versions means more upgrade and regression testing. | A list of each upgrade step, the test environments used for each, and who runs rollback if a step fails. |
| Repository and audit database size | Larger data sets lengthen Ninja export, import and verification windows and raise the cost of rehearsal runs. | The estimated data volume per table group, the rehearsal count and the expected cutover window with its source. |
| Number of environments | Each environment, including development, test, staging and production, needs its own export, import and checks, and drift between them adds rework. | Whether each environment gets a full rehearsal, and how configuration differences are reconciled before cutover. |
| Custom SQL or database-specific objects | Views, triggers, custom indexes or direct SQL against the old repository must be found, redesigned or removed, which is unpredictable without an inventory. | A written inventory of database objects and integrations that read the old database, with a plan for each. |
| Connector and resource count | Each connector configuration must be checked after import, and resources with custom scripts or schema changes need separate verification. | The connector list, versions, custom scripts and the test accounts used for post-import checks. |
| Number of nodes behind the load balancer | Multi-node deployments need coordinated shutdown, startup and cache checks across nodes, so cutover coordination grows with node count. | The node count, load balancer configuration and the cutover runbook for stopping and restarting each node. |
| Scheduling and task volume | Large numbers of scheduled tasks, reconciliations and running tasks need to be paused, verified and resumed, and tasks may need review after import. | A count of scheduled tasks by type and the pause, resume and verification steps planned for each. |
| Audit validation required by auditors | Auditors may ask for evidence that audit records were migrated completely, which adds reconciliation queries, sample checks and written evidence. | The evidence set the auditor expects, the checks planned for audit completeness and who signs off the result. |
| Recurring support after migration | Post-migration support, PostgreSQL minor updates and later midPoint upgrades recur and are billed separately from the one-time migration. | Whether support is a separate retainer, its coverage hours and what is excluded from the one-time scope. |
Questions teams ask before moving midPoint to native PostgreSQL
What does a move to the native PostgreSQL repository cost, and what drives it?
The cost is mostly the engineering time to plan, rehearse and cut over, and no supplied figure sets that number for your environment. Most of the effort comes from the size and age of your existing repository, how many custom objects and connectors you have, how much audit data you keep, and how many environments need the same move. Your own team pays for internal time, and a partner is paid under a written scope. Ask any quote to separate the one-time work (planning, export, import, cutover, verification) from recurring items such as support subscriptions and database operations. Evolveum sells Product Support and Platform Subscriptions, but it does not publish prices in the supplied material, so confirm current terms with the vendor directly.
How long does a native PostgreSQL migration take?
The duration depends on how much data must be exported and reimported, how many maintenance windows you can get, and how many rehearsals you run before production. No supplied duration applies to your deployment, so ask for a timeline based on a inventory of your objects, audit volume and environments. Evolveum states that the schema changes are too large for a SQL update, so the export and import steps set the length of the outage window. Audit migration can run while midPoint is live on the new repository, which can shorten the window that the main data move requires.
What must our team provide before the migration starts?
Your team must provide access to the current midPoint installation, the database server and the target PostgreSQL server, plus the exact midPoint and Java versions in use. Evolveum's documented path first upgrades midPoint to 4.4 on the original SQL configuration, so you need that upgrade path available in a non-production copy. You also need a verified backup of the current repository, a tested restore procedure, a named maintenance window, and rollback criteria agreed in advance. Confirm the PostgreSQL major version you will target against the PostgreSQL versioning policy, since version support end dates differ.
Can our own staff run the migration without an outside partner?
Yes, if your team has midPoint administrators who can run Ninja export and import, a PostgreSQL administrator who can build and secure the new database, and someone who owns the cutover decision. The work is mostly procedural, but mistakes in the configuration switch or in the import are costly to find after go-live. Make sure the people involved have rehearsed the steps in a copy of production. A partner can take the planning, rehearsal and verification work under a fixed written scope, which many teams prefer when the same people must also keep production running.
Can audit records move to the new repository while midPoint keeps running?
Yes. Evolveum's documentation states that audit records can be migrated with midPoint already running on the native repository. This means the audit history does not need to block the main cutover. Still, confirm the exact steps against the version you run, check that new audit events are written correctly before and after the move, and decide how long audit data must be retained for your compliance obligations. Treat the audit migration as its own task with its own verification, because auditors will ask whether the history is complete.
Is a rehearsal required before the production cutover?
A rehearsal is not formally required by the supplied documentation, but it is the practical way to find problems before they affect identity data. Run the full sequence on a copy of production: upgrade, export, initialize the native PostgreSQL repository, switch configuration, import and start midPoint. Compare object counts, sample users, roles and resource links, and measure how long each step takes. Use the results to set the real maintenance window and to test rollback. Write down any step that failed and the fix, so the production run follows a checked procedure.
Which PostgreSQL version and authentication settings should we plan for?
Choose a PostgreSQL version that is still supported for the whole planned life of the deployment. The supplied policy lists version 18 as supported until November 14, 2030, version 17 until November 8, 2029, and version 16 until November 9, 2028. Version 14 ends on November 12, 2026, and older versions are unsupported. For authentication, PostgreSQL deprecated MD5 password authentication in favor of SCRAM in version 18, so plan SCRAM from the start. Confirm the midPoint-supported PostgreSQL versions with Evolveum before you build the server.
What usually goes wrong in a midPoint repository move
Most failed repository moves trace back to a short list of causes: a skipped upgrade step, an unverified export, configuration that drifted during the move, connectors that behave differently after the switch, duplicated scheduled work, and audit records that were never carried over. Each card below names one risk and a check the team can run before cutover.
Skipping the 4.4 upgrade step
The documented path upgrades midPoint to 4.4 on the original SQL configuration before anything is exported. Teams that export from an older or different version can produce data the native PostgreSQL repository does not import cleanly. Before starting, confirm the running version, complete the 4.4 upgrade in a test environment, and record that the export was taken from the upgraded instance.
Migration docsExport without a verified backup
Ninja export is a copy of the repository, not a backup. If the import fails or the target database is damaged, the export may be the only recent copy. Take a full database backup of the source, confirm it restores to a scratch server, and keep the Ninja export files together with the matching configuration directory so the set can be replayed.
Continuous archiving docsStale environment and unsynchronized configuration
If the configuration file, custom objects, or connector settings change between export and cutover, the imported repository will not match what the running system expects. Freeze changes to the source for the cutover window, diff the configuration directory against the copy used for the new deployment, and compare object counts from the export with counts taken after import.
Connector behavior after the switch
Resources and connector configuration move with the repository, but connector versions, certificates, and network paths do not change automatically. A resource that reads correctly before cutover may fail or report different results afterward. Run a read-only test against each target system on the new deployment, and compare sample account and entitlement results with the source before enabling any provisioning.
Duplicate tasks during cutover
If the old and new midPoint instances both start with scheduled tasks, reconciliation and synchronization jobs can run twice against the same targets. This can produce conflicting changes or unexpected deprovisioning. Stop the source instance before the new one starts, confirm no tasks are active on either side, and review the task list on the new deployment before resuming schedules.
Audit gaps after the move
Audit records are a separate migration step, and they can be carried over while midPoint runs on the native repository. Teams that skip this step lose the history that access reviews and auditors rely on. Confirm the audit record count and date range on both sides, and document where the pre-migration audit data now lives and who can query it.
How the export, import and audit steps connect across old and new databases
The migration starts with the existing SQL repository, which is upgraded to midPoint 4.4 so Ninja can export its data. The export is then imported into a freshly initialized native PostgreSQL repository after the configuration is switched. Before midPoint starts on the new repository, check that the import is complete and that a rehearsal on a copy of the data passed. Audit records can follow once midPoint runs on the native repository.
Export, import and audit steps from the SQL repository to native PostgreSQL.
What your team provides and what DeployOpen delivers
Your team provides the inputs that decide whether the cutover can be planned tightly. First, the exact midPoint version currently running, because the documented path upgrades the original SQL configuration to 4.4 before the export starts, and that step has to fit your supported versions. Second, administrative access to the current midPoint host, the existing SQL database, and the target PostgreSQL server, with the ability to run Ninja on both sides. Third, a verified, restorable backup of the current repository taken before any work begins, along with the database owner's agreement on how that backup is kept. Fourth, named change windows and a test environment that mirrors production data volumes, not just configuration. Confirm with your database team which PostgreSQL major version you will standardize on, since the supported versions have different end-of-support dates.
Your team also names the people who approve connector and resource behavior. Each resource that midPoint reads or writes must be checked after import, because an export and reimport does not prove that a target system still responds as expected. Identify the owners of the connectors used for directories, HR feeds and business applications, and agree in advance who signs off on reconciliation results. Decide whether audit records will move during the cutover or in a later step, since the documented approach allows audit migration while midPoint runs on the native repository.
DeployOpen delivers a migration runbook written for your environment, covering the pre-checks, the export and import sequence, the configuration switch, the rollback point and the post-start checks. Before production, DeployOpen rehearses the full sequence in your test environment and produces a rehearsal report that records the commands used, the errors found, the fixes applied and the timings observed. Validation evidence follows the cutover: object counts compared between the source and the target, reconciliation and connector test results, and an audit migration check. Scope, deliverables and the approval gates are agreed in writing before work starts, and the timeline depends on the environment, so ask for a quote based on your written scope.
How DeployOpen scopes, delivers and supports the migration
DeployOpen plans the move of your midPoint data from its current repository to the native PostgreSQL repository as a written, fixed-scope engagement inside your own infrastructure. We start from your current configuration, rehearse the Ninja export and import on a copy, and then plan the cutover window together with your operations team.
How we scope
- Inventory the current midPoint version, repository type, database version, Java runtime and connector set.
- Confirm the path from your current repository, including the required upgrade to midPoint 4.4 on the original SQL configuration.
- Agree in writing which audit records migrate, which retention rules apply and what evidence your auditors will need.
How we build
- Prepare a PostgreSQL target on servers you control, with a version your organization has confirmed as supported.
- Rehearse the Ninja export, repository initialization and import on a restored copy of your production data.
- Test login, task scheduling, connector synchronization and reports against the rehearsal before any production change.
How we hand over
- Deliver a runbook with the exact cutover steps, rollback points, verification queries and named owners for each step.
- Document the configuration changes, the audit migration method and the record counts reconciled between source and target.
- Walk your platform and security teams through the result so they can run and review the new repository independently.
How we support
- Support the cutover window and the first production cycles, with fixes agreed in the original written scope.
- Offer ongoing support, upgrades and continuous testing as a retainer if you want DeployOpen to stay involved.
- Review PostgreSQL minor updates, backup restores and future midPoint upgrades against your documented runbook.

