Why PostgreSQL for financial services is a resilience and evidence project
A bank, payment provider or insurer weighing Oracle licence costs against its regulatory duties should judge the database on recovery, evidence and exit, not on licence savings alone. Licence fees are one line in the cost of ownership. The harder questions are whether the team can recover the data within the targets it has set, whether it can show an examiner how the database was built and operated, and whether it can leave the platform later without breaking a critical service. PostgreSQL's licence helps with the third question, but it does not answer the first two.
The PostgreSQL License is a liberal open source license similar to the BSD and MIT licenses, so the institution does not pay a per-core or per-user fee to run the software. Release timing matters more for planning. PostgreSQL ships a new major version about once a year, issues minor releases at least once every three months, and supports each major version for five years after its initial release. Version 18 was first released on September 25, 2025 and is supported to November 14, 2030, while version 14 is supported to November 12, 2026. Confirm which version your change calendar and vendor obligations assume before you choose a target.
Self-hosting moves responsibilities that a licence vendor or managed service would otherwise carry onto your own team. Patching, minor-release rollouts, major-version upgrades, backup testing, failover tooling, certificate rotation and access reviews all become named duties with owners, runbooks and evidence. Each of these should be written down before the first production cluster is built, because the evidence an examiner asks for is usually the record of those duties being performed. Ask your auditors and supervisors which records they expect, such as change tickets, restore test results and access review sign-offs, and design the platform to produce them.
The ownership change also shifts how you describe the service to regulators and to your own board. You will need a register of the infrastructure, the people who can administer it and the location where data is stored, and you will need to show that a failed or exited provider does not leave you without a working copy of your data. Treat the self-hosted database as a service you run in your own infrastructure with a clear operating model, not as a licence you have replaced.
Which financial regulations shape the PostgreSQL build
This table maps each financial regulation or framework to what it asks of a self-hosted PostgreSQL build and the design consequence for the team. Read it row by row before scoping, since each row names one requirement and the build decision it forces. Confirm the exact obligations with your assessor, supervisor or contract counsel, because the table explains how each requirement touches the database rather than what your specific entity must do.
| Requirement | What it asks for | Build consequence for PostgreSQL |
|---|---|---|
| PCI DSS v4.0.1 scope | Cardholder data stores and systems that could affect them fall into assessed scope, under the active v4.0.1 version | Keep cardholder data in a dedicated database cluster with its own network segment, so the assessed scope stays as small as the design allows |
| PCI DSS access and logging | Access to cardholder data and audit records must be restricted, logged and reviewed | Set pg_hba.conf rules per database and role, and ship PostgreSQL logs to a store the database administrators cannot edit |
| DORA register of information (Article 28(3)) | A register of all contractual arrangements for ICT services | Record each PostgreSQL component, host, hosting provider and support contract in the register, including the backup location |
| DORA exit strategy (Article 28(8)) | Documented, tested exit strategies and transition plans for ICT services supporting critical or important functions | Keep logical dumps or logical replication paths usable so data can move to another PostgreSQL host or provider, and test the move |
| DORA contract clauses (Article 30(2)) | Contracts state where services are provided and data processed, with notice of changes and data return on termination | Name the data center or cloud regions for primary, standbys and backups in the support contract, and require data return terms |
| Swift CSCF attestation | Independent assessment of Swift controls and yearly attestation in the KYC-SA application, for Swift users | Confirm which PostgreSQL hosts sit in the Swift local environment, and map their hardening and access settings to the controls in scope |
| SEC ICFR IT general controls | Controls over program changes, computer operations and access to programs and data, for SOX 404 assessments | Use change-controlled schema migrations, separate duties for DBA and application deployers, and retain access review records |
| FTC Safeguards Rule MFA (16 CFR 314.4(c)(5)) | Multi-factor authentication for any individual accessing an information system, unless the Qualified Individual approves an equivalent control in writing | Route administrative database access through SSO or a bastion with MFA, and record any written exception for direct password logins |
Which PostgreSQL settings and modules matter for financial data
Financial workloads force a small set of choices early: how clients prove who they are, how much data loss is acceptable, how failures are detected, and how activity is recorded. Each card below names one of those decisions, the trade-off it carries, and what to confirm before the design is fixed.
Password hashing with SCRAM
Set password_encryption to scram-sha-256 and use scram-sha-256 in pg_hba.conf so that stored passwords are not reusable as login secrets. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so older client drivers and connection poolers are the usual blocker. Inventory every client library before cutover, because a driver that cannot negotiate SCRAM will fail at login rather than degrade quietly.
Certificate and directory login
Client certificates remove shared passwords for service accounts and give the security team a revocable identity per application. LDAP, GSSAPI or SSPI tie database roles to the directory the bank already runs for staff, which shortens offboarding. The trade-off is operational: certificate rotation and directory outages can lock out batch jobs, so decide which accounts use certificates and which keep a tested fallback.
Authentication methods docsOAuth 2.0 for token-based access
PostgreSQL 18 added an OAuth 2.0 authentication method, which lets an existing identity provider issue short-lived tokens instead of long-lived database passwords. This fits platforms where people and services already sign in through one identity layer. Confirm that your client drivers support the method and that token lifetime, validation and revocation match your access policy before depending on it.
Synchronous replication for zero data loss
With synchronous replication, a commit returns only after at least one standby confirms the write, so a primary failure cannot lose acknowledged payments or ledger entries. The cost is latency on every commit and reduced availability if the standby is unreachable and the setting requires it. Measure commit latency across the network path between sites, and decide explicitly whether a standby outage should stop writes or fall back to asynchronous mode.
High availability docsHot standbys for read load
A hot standby accepts read-only queries, so reporting, reconciliation and risk queries can run away from the primary that serves transactions. The trade-off is that standbys can lag, so a balance or limit check that reads from a replica may see stale data. Route only queries that tolerate lag to replicas, and confirm the lag threshold your operations team will alert on.
External failover tooling
PostgreSQL does not detect a failed primary or promote a standby by itself, so a separate tool must do both and notify clients. Automatic promotion shortens outages but risks split-brain if fencing is weak, while manual promotion is safer but slower. Choose the tool and the fencing method together, and rehearse the failover runbook so that the recovery time your business has agreed to can be demonstrated.
Failover docsPgBouncer connection pooling
PgBouncer keeps a bounded number of server connections open while applications hold many more client sessions, which protects the primary during traffic spikes. Transaction pooling reduces connection counts but breaks session-level features such as session variables and some prepared statements, which can matter for row-level security designs. Check the pool mode against each application, and plan patching, since PgBouncer 1.26.1 was released on October 14, 2026 with security fixes.
PgBouncer siteAudit logging of privileged and data access
Supervisors and auditors ask who changed ledger data, when, and from where, and PostgreSQL's standard logs answer only part of that. Configure connection and DDL logging in the server, then decide whether an extension such as pgAudit is needed for statement-level records of reads on sensitive tables. Confirm where logs are stored, how long they are kept, and whether administrators can alter them, because the evidence is only as strong as its protection.
How synchronous replication and PITR protect committed payments
Synchronous replication does not guarantee zero data loss on its own. With synchronous replication, a commit waits until one or more standbys confirm the write, so a committed payment exists on more than one server before the application receives success. Whether that holds in a failure depends on the number of standbys that must confirm, the network latency between sites, and the failover tooling that promotes a standby. PostgreSQL does not detect a failed primary or notify a standby by itself, so an external failover tool has to make that decision. Confirm with your architects which standby set must acknowledge a commit, what happens to commit latency when a standby lags or is unreachable, and whether the tool can promote only a standby that has received every confirmed transaction.
Synchronous replication protects against a server failing, but it does not protect against a bad change that replicates faithfully, such as an erroneous batch update or a dropped table. For that you need continuous archiving and point-in-time recovery. A base backup is combined with archived WAL files, which lets you restore the cluster to a chosen moment before the damage. Store the archive off the primary and in a location with separate credentials, so a compromised database host cannot alter or delete the history you would restore from. The PostgreSQL continuous archiving documentation describes the base backup and WAL mechanics your runbook should follow.
Recovery is only proven when a restore has been run, timed and checked against expected balances. Schedule restore tests into a separate environment, and record how long each one took and which transactions were present afterward. Incremental backups with pg_basebackup and reconstruction with pg_combinebackup can reduce the volume of each backup, but every step in the chain must be retained and tested before it is relied on. Recovery point and recovery time targets are business decisions, so agree them with payments operations, finance and the risk owner before you tune the schedule. Ask your implementation partner to document which target each control meets and where it is not met.
How a financial services PostgreSQL rollout is phased
The sequence moves a PostgreSQL platform from agreed scope and register entries to a tested, handed-over database with the evidence a bank, payment firm or insurer's assessors will ask for. Each phase closes with a check the client can review before the next one starts.
Agree scope and register entries
DeployOpen and the client's risk, compliance and vendor management teams fix the systems in scope, the data classes stored and the services that support critical or important functions. The client supplies its current ICT service register format, contract templates and the list of applications that will connect to the database. DeployOpen drafts the register entries for the PostgreSQL platform, covering the service provider, the locations where services are provided and data is processed, and the data return terms. The step is done when the client signs off the written scope and the register entries are accepted by the owner of the register.
Design architecture and trust boundaries
The team maps the database clusters, replicas, backup repositories, connection poolers, administrative jump paths and the network zones they sit in, including any cardholder data environment boundary if payment data is in scope. The client supplies its network segmentation rules, data center or cloud account layout, key management approach and identity provider. DeployOpen documents which accounts can reach which components and where logs go. The step closes with an architecture record and data flow diagram that the client's security and compliance reviewers have accepted.
Build authentication, encryption and replication
Engineers install the chosen PostgreSQL major version, configure client authentication in pg_hba.conf with SCRAM and directory or certificate methods where the client's identity standard requires them, enable TLS, and set up streaming replication. Synchronous commit is configured only where the client has decided the zero data loss trade-off is worth the added write latency and the failover behavior is understood. The client supplies identity provider access, certificates, and the replication topology decision. The step is done when a test login through each approved method succeeds, unapproved methods are refused, and replication state is confirmed on every standby.
Test restores and failover
Engineers take a base backup, archive WAL files to the agreed off-site repository, and run point-in-time recovery into an isolated environment to confirm the restore reaches the intended moment. They then trigger controlled failover using the external failover tooling the client has selected, because PostgreSQL does not detect a failed primary by itself. The client supplies its recovery point and recovery time targets, and the business owners who will judge the results. The step closes with written test records showing the measured outcomes, the defects found and the retest results.
Migrate from Oracle or cut over by logical replication
Where the platform replaces an Oracle database, the team maps schema objects, PL/SQL logic, data types and application SQL, then runs data validation and parallel reconciliation against the source. Where a PostgreSQL source is being upgraded, the team uses logical replication to move data to the new major version with a short cutover window. The client supplies the application inventory, a list of batch jobs and reporting dependencies, and agreed reconciliation rules. The step is done when row counts, checksums and sample business reports match the source, and the cutover runbook has been rehearsed with the application owners.
Hand over operations with runbooks
DeployOpen works with the client's database administrators and operations staff to transfer monitoring, alerting, patching, backup verification, connection pooling configuration and access reviews. Runbooks cover failover, restore, certificate rotation and major upgrade planning, and the client confirms who holds each responsibility. The client supplies the operations staff who will take over and the on-call arrangements. The step closes when the operations team has performed at least one supervised procedure from the runbooks without DeployOpen hands-on support.
Collect evidence for assessors
The team assembles the material that internal audit, external auditors, a Qualified Security Assessor or a supervisor may request: configuration baselines, access control records, audit log samples, backup and restore test reports, failover test results, the register entries and the exit plan. DeployOpen prepares this evidence but does not issue any audit report, attestation or certification, which remain the role of the client's assessors. The client confirms where the evidence is stored, who can access it, and how it will be refreshed. The step is complete when the client's compliance owner accepts the evidence index.
How the primary, standbys, pooler and backups fit together
The diagram starts with application services connecting through PgBouncer to the primary, which is the only node that accepts writes. Synchronous and asynchronous standbys receive WAL from the primary, and an external failover tool, not PostgreSQL itself, decides when a standby is promoted. The WAL archive and off-site backup copies sit outside the cardholder data environment boundary, so confirm which components store or transmit cardholder data before drawing that line in your own design.
Traffic flows through the pooler to the primary, with replication, failover and backups around it.
What PCI DSS, DORA and SOX evidence the database must produce
Payment, EU resilience and US financial reporting reviews each ask for different records from the same database. The cards below set out the decisions and evidence that most often need to be planned before the cluster goes live. DeployOpen prepares the systems, controls and evidence, but auditors, assessors and supervisors issue the reports and conclusions.
PCI DSS scope and approach
Start by deciding whether the database stores, processes or transmits cardholder data, or could affect the security of systems that do. Any PostgreSQL cluster inside that boundary, including replicas, backup repositories and monitoring exporters, falls within scope. For each requirement, decide whether you will meet it with the defined approach or, if your risk management qualifies, the customized approach, and document the objective and the evidence behind it. Confirm the scope decision with your assessor before build.
- Active PCI DSS version
- v4.0.1
Defined versus customized approach
The defined approach follows the stated testing procedures for each requirement, while the customized approach must show that a stated objective is met in a different way. For a database, this choice affects how you prove controls such as log integrity, key management and access review. A customized approach needs documented risk analysis, targeted testing and assessor agreement, which adds effort on both sides. Ask your QSA which requirements they expect to test through the customized route before you commit to that design.
DORA resilience testing evidence
DORA requires financial entities to test their ICT systems, and for critical or important functions, the database behind them should appear in that testing. Keep dated records of backup restores, failover tests and recovery exercises, with results and corrective actions. Where a threat-led penetration test applies, the only attestation the Regulation provides for is that the test met its requirements, so plan the test scope around the database cluster early.
- DORA applies from
- 17 January 2025
Exit strategies and register of information
Article 28 of DORA asks for a register of all ICT contractual arrangements and, for services supporting critical or important functions, documented and tested exit strategies. For a self-hosted PostgreSQL platform, exit planning means a tested logical dump or replication path to another engine or provider, and a recorded location for each data copy. Record which services, data stores and hosting sites the database depends on, so the register stays current when the cluster changes.
SOX IT general control areas
SEC guidance on internal control over financial reporting names program development, program changes, computer operations and access to programs and data as the IT general control areas to assess. For a PostgreSQL database holding ledger or reporting data, this means evidence of who can change schema and roles, how migrations are approved and tested, and how production access is granted and removed. Keep change tickets, role grants and access reviews linked to the same identifiers so an assessor can trace each change.
SEC Release 33-8810ROC or SAQ with AOC, not certificates
A PCI DSS assessment is documented on official templates: a Report on Compliance completed by a Qualified Security Assessor, or a Self-Assessment Questionnaire, each with an Attestation of Compliance. Certificates are not recognized as validation, so a vendor or hosting certificate does not replace the assessment for your cardholder data environment. Ask your assessor which template applies and which evidence they will sample from the database platform. DeployOpen prepares the evidence, but the assessor or your organization issues the report and attestation.
PCI SSC FAQ 1220Moving off Oracle licensing without breaking audit history
Leaving Oracle is also an exit strategy question. Under DORA Article 28(8), an institution must hold documented, tested exit strategies and transition plans for ICT services that support critical or important functions, and Article 30(2) requires contracts to cover data return on termination. The migration plan should therefore show who can read the ledger and audit data during cutover, where that data sits at each step, and how it returns to the institution if the new platform fails. Confirm with your legal and third-party risk teams which functions count as critical or important before you fix the cutover window, because that classification sets how much exit evidence your supervisor will expect.
On the technical side, logical replication is the main option for keeping downtime short. The PostgreSQL upgrading documentation states that logical replication works between different major versions and allows a major upgrade with only several seconds of downtime. That figure describes the database switch only. Your own downtime depends on how long replication takes to catch up, how sequences and large objects are handled, and whether the application tolerates the final switch. Compare that with pg_upgrade, which is faster for a single-cluster move but needs a longer outage, and with dump and restore, which suits small databases. Confirm the source Oracle version, the target PostgreSQL major version (18 is the current release line) and your tolerance for a switch window before choosing. The migration tool itself is still open, so validate whichever one you select against a copy of production data.
Audit history has to survive the move intact. Keep the Oracle source read-only and retained until the new audit tables reconcile row counts and checksums for the audit period. On PostgreSQL 18, pg_upgrade retains planner statistics across major upgrades, which reduces the performance dip after a same-engine upgrade, but it does not carry audit records across a change of engine, so audit history must be migrated explicitly. Record the cutover in your audit logging with the operator identity, timestamps and the checksums used for reconciliation. Confirm with your auditors how they want the migration evidence packaged before cutover, so it can be produced in the same form as your normal change records.
What financial firms ask before commissioning PostgreSQL work
What drives the cost of a regulated PostgreSQL build?
Scope, environment and evidence requirements drive most of the cost. A build that only installs a primary and a standby costs far less than one that also needs synchronous replication across sites, tested point-in-time recovery, connection pooling, role-based access tied to your identity provider, audit logging and the documentation an assessor will ask for. Other cost drivers include the number of databases and environments, how many application teams connect, whether the work runs in air-gapped or segregated networks, and how much of the existing estate must be migrated. Ask for each of these to be priced as a separate line in the written scope so you can see what you are paying for.
Which PostgreSQL costs are one-time and which recur?
One-time costs cover architecture, build, hardening, migration, testing and the first set of runbooks and evidence. Recurring costs cover running the cluster, applying minor releases, which PostgreSQL publishes at least once every three months, restore testing, access reviews, monitoring, on-call coverage and major upgrades. Major versions are supported for five years, and the supported list currently runs from version 14 to version 18, so plan at least one major upgrade within a typical multi-year contract. Ask any partner to state which items are fixed-price build work and which are retainer or support work, and what the retainer covers when you need an unplanned restore.
How long does a PostgreSQL project for a bank or insurer take?
Duration depends on the scope, the number of environments and the speed of your internal approvals more than on the database itself. Change windows, vendor risk reviews, network and firewall requests, and test cycles for failover and restore often take longer than the technical build. DeployOpen plans most engagements as fixed scope with deliverables and timelines agreed in writing before work starts, so the timeline in your quote should list each approval gate and test window. Be cautious of any proposal that gives a duration without first reviewing your architecture and change calendar.
What must our team provide before a partner starts work?
Provide the current architecture, including data flows, application connection patterns, network zones, identity sources and the systems that depend on the database. Share the recovery point and recovery time targets your business owners have set, and any regulator or supervisor correspondence that defines expectations for resilience testing or outsourcing. Name the change windows and test windows in advance, since failover and restore tests need planned downtime or a controlled environment. Also provide access to the target infrastructure, your key management approach, and a named owner who can approve scope changes.
Can our internal team build and run PostgreSQL without a partner?
Yes, many banks and insurers run PostgreSQL with internal staff. The question is whether your team has done three things recently: a tested failover, a full point-in-time restore into a separate environment, and a major version upgrade with a rollback path. Replication, backups and pooling each need their own runbooks, and failover needs an external tool because PostgreSQL does not detect a failed primary or notify the standby by itself. Assess your skills against these tasks, count the people who can handle an incident at night, and decide whether a retainer for specialist work fills the gap.
What should we ask a partner to include in a written quote?
Ask for a written scope that lists systems, environments, versions, deliverables and acceptance tests, plus the responsibilities split between your team and the partner. The quote should name the replication mode and its effect on commit latency, the failover tool and how it is tested, the backup tool and retention, the restore test plan with measured results, and the pooler configuration. Request the list of documents and evidence you will receive, such as runbooks, configuration baselines, access reviews and test records. Confirm how the partner handles the register of ICT arrangements, exit planning and data return, and which items are excluded, such as application changes or your auditor's fees.
Does the PostgreSQL build satisfy DORA or PCI DSS on its own?
No. PostgreSQL work supplies controls and evidence, but DORA and PCI DSS are assessed against your whole organization. DORA requires documented, tested exit strategies for ICT services supporting critical functions and contract terms covering service locations and data return. PCI DSS assessments are documented by a Qualified Security Assessor or a self-assessment questionnaire with an Attestation of Compliance, and DeployOpen does not issue those reports or attestations. Ask your compliance team which requirements the database touches, then ask the partner to map its deliverables to those requirements in writing.
How DeployOpen scopes and delivers financial services PostgreSQL work
Most DeployOpen PostgreSQL engagements for financial services are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. For a bank, payments firm or insurer, that written scope should name the PostgreSQL versions in use, the replication design (including whether any standby is synchronous), the backup and point-in-time recovery method, the connection pooling layer, the authentication model and the systems that connect to the database. Ask for a quote that is traceable to those items. DeployOpen does not publish a price list, so the written scope is the basis for any cost discussion, and the scope should state what is one-time work (design, build, migration, testing, documentation) and what recurs (support, upgrades, retesting).
DeployOpen plans, builds, tests, documents and supports the database inside your own cloud accounts, data centers or air-gapped networks, so the keys, backups and logs remain under your control. Typical deliverables for this sector include the configuration baseline, the failover and restore runbooks, evidence of tested restores, and the access and audit logging settings that your compliance and security teams will review. Where your organization needs proof that its controls work, DeployOpen can run security testing of the database and the applications around it, and prepare systems and evidence for a compliance assessment. Confirm with your assessor which evidence they will accept, because DeployOpen does not issue audit reports, attestations or certifications, and independent auditors and certification bodies make those determinations.
Retainer support covers the ongoing work that a regulated database needs after go-live: minor release patching, planned major upgrades (PostgreSQL 14 reaches end of support on November 12, 2026, according to the supported-version dates in the PostgreSQL versioning policy), periodic restore tests and continuous testing. Before you sign, confirm with DeployOpen in writing who performs out-of-hours response, how change records are kept, and what happens to documentation and access when the retainer ends. Those terms belong in the agreement, not in an assumption about how the work will go.

