When an Orthanc PostgreSQL plugin setup is the right move
An Orthanc PostgreSQL setup is the right move once the built-in SQLite index stops being adequate, which the Orthanc documentation places at several hundred thousand stored DICOM instances, or when you plan a multi-instance archive that several Orthanc servers must read and write together. The PostgreSQL plugin replaces SQLite as the index database: it holds the patient, study, series and instance records that Orthanc uses to answer REST and DICOM queries, while the DICOM files themselves stay in the storage area unless you also add a storage plugin. The Orthanc Book recommends the PostgreSQL plugin for large datasets, and the production deployments it cites hold more than 65 TB of data, around 340,000 studies and roughly 150 million instances.
Multiple instances can share one database since Orthanc 1.9.2 with PostgreSQL and MySQL plugins 4.0, which is the main reason teams choose this path for horizontal scaling or high availability. Sharing a database does not by itself give you failover or shared file storage, so you still need to decide how the instances will reach the same DICOM files and how PostgreSQL itself will be made highly available. Before committing, confirm the Orthanc and plugin versions you intend to run against the release notes, and check that your PostgreSQL major version is still within its support window.
Licensing is a practical check for this decision. The Orthanc core is licensed GPLv3 or later, while the PostgreSQL plugin, as a scalability plugin, is licensed AGPLv3 or later. Review the Orthanc licensing FAQ with your legal or procurement team if you plan to modify the plugin or offer Orthanc as a network service, because the AGPL terms apply to those cases. If your archive is small and single-instance, the SQLite index may remain sufficient, and that is a valid outcome of the assessment.
Index plugin versus storage plugin: what each one holds
Orthanc keeps two separate things. The index is a database that stores patient, study, series and instance records, the metadata used for C-FIND, REST searches and the Orthanc Explorer views, along with change logs and attachment references. The storage area holds the DICOM files themselves, as bytes, in a folder tree or an object store. The PostgreSQL plugin is an index plugin: it replaces the built-in SQLite index with a PostgreSQL database but does not hold image files. A storage plugin, such as the S3 plugin or the filesystem default, decides where the files go. Both must be backed up and restored together, because the index points at files that must still exist.
- Index contents: metadata rows, attachment references and the change log that multiple instances use to stay consistent.
- Storage contents: the DICOM files, and any attachments such as compressed or transcoded copies, depending on configuration.
- Size profile: the index grows with the number of instances and tags, while the storage area dominates total capacity on large archives.
- Failure coupling: an index that references missing files, or files without an index entry, will produce inconsistent results that are difficult to repair by hand.
- Capacity planning: size the database and the storage area separately, and confirm the sizing guidance for your version in the Orthanc documentation.
Before choosing any combination, confirm which plugins your Orthanc version and Docker image include, and write down which system owns each piece of data.
The most common pattern for a single hospital archive is the PostgreSQL index with the default filesystem storage area on local or SAN-attached disks. The database runs on a separate server or container, and Orthanc writes DICOM files to a directory on its own host. This keeps the files close to the application and avoids a network hop per instance read, but it places the burden of capacity growth, disk redundancy and file-level backup on your infrastructure team.
- Disk layout: place the storage directory on a volume sized for growth and separate from the operating system and database data.
- Backups: back up the PostgreSQL database and the storage directory in the same window, or use a snapshot approach that captures both consistently.
- Restore testing: a restored database pointing to an older file tree will not match, so restore both sides and check counts.
- Multiple nodes: a filesystem storage area is local to one host, so a second Orthanc node cannot read it unless the directory is shared.
- Advanced layouts: spreading files over several disks or folder paths is a job for the Advanced Storage plugin, which has its own database version restrictions.
Confirm with your storage team how snapshots, replication and restores are scheduled, and whether the directory can be shared if you plan more than one node.
When files go to an S3, Azure Blob or Google Cloud Storage bucket, the PostgreSQL index still holds all searchable metadata, while the bucket holds the DICOM payloads. This split lets several Orthanc instances read the same files without sharing a filesystem, and it moves capacity planning to the object store. It also introduces a dependency on network access and credentials for every read, and the object store becomes part of your recovery path.
- Index and bucket consistency: the database and the bucket must be backed up and restored as a pair, with the bucket versioning or retention settings confirmed before go-live.
- Network dependency: every retrieval that goes to the bucket depends on the link between Orthanc and the store, so measure latency from the Orthanc host.
- Credentials: the plugin needs keys or role credentials, which should be kept out of configuration files committed to source control.
- Cost model: storage and request charges recur monthly for cloud providers, and they depend on access patterns, so ask for a projection based on your retrieval volume.
- Image requirements: some storage plugins need a full Docker image or specific packages, so confirm the image before you design the layout.
See the sibling topics on S3 and Azure storage for plugin-specific settings, and confirm the provider terms with your procurement team.
Since Orthanc 1.9.2 with PostgreSQL and MySQL plugins 4.0, several Orthanc instances can read and write the same database. This makes horizontally scaled or highly available setups possible, but it means that the index is shared state that every instance depends on, and the storage area must be reachable from every instance. The PostgreSQL side needs its own high availability design, which PostgreSQL does not provide automatically through its core software.
- Shared storage: every instance needs a common view of the files, either through an object store or a shared filesystem.
- Database high availability: PostgreSQL supports hot standby and synchronous or asynchronous replication, but detecting a failed primary and promoting a standby needs external tooling.
- Connection management: plan the number of connections from each instance and consider a pooler such as PgBouncer.
- Consistency testing: test instance failover and concurrent ingest before production, because shared state exposes problems that single-node tests miss.
- Version alignment: keep all instances on compatible Orthanc and plugin versions, since the change log and schema are shared.
Confirm your failover design with the database team and the vendor documentation for each version you deploy.
In hospitals, research sites and public bodies, the placement of index and files is often dictated by data residency, network isolation and audit rules. An air-gapped archive usually keeps both the PostgreSQL index and the storage area inside the site, with no external object store. Choosing a cloud bucket for files may require a documented legal basis, encryption design and a review of who can reach the keys. Your security and compliance reviewers will ask where each piece of patient data lives at every point in time.
- Data map: document which system holds metadata, which holds files, and which holds backups, with the location of each.
- Encryption: decide whether files are encrypted at rest by the storage layer, by the application or on the client side, and confirm key ownership.
- Access paths: database access should be limited to Orthanc hosts and administrators, with credentials managed in your secrets system.
- Audit evidence: keep configuration, backup and restore records that show the index and storage stayed consistent.
- Deletion: removing a study must remove the index entry and the files, so test deletion and any delayed-deletion behavior.
Request a written data flow from your team before the architecture review, and ask the implementation partner to document each component's owner and backup schedule.
PostgreSQL plugin options and when each one fits
This table compares the PostgreSQL plugin settings that matter most for production archives, covering connections, locking, transactions, keep-alive and authentication. Read each row as a question to answer in your own environment before changing a value. The main takeaway is that exact key names and default values belong in the plugin documentation, so every change should be tested on a copy of your archive first.
| Setting area | What it controls | When it fits a large archive and what to test first |
|---|---|---|
| Index versus storage plugin role | Whether PostgreSQL holds only the index while files stay on disk or object storage | Use it as the index when the archive outgrows SQLite. Test restart, reindexing and that file paths resolve after a move. |
| Connection settings | Host, port, database name, credentials and the number of connections each Orthanc instance opens | Size the connection count against what PostgreSQL allows and what other services share. Test peak ingest and concurrent viewer load before raising it. |
| Locking behavior | How concurrent writes to the same study or index rows are serialized across instances | Matters when several Orthanc instances share one database. Test simultaneous uploads to the same patient and confirm no duplicate or lost index entries. |
| Transaction mode | How index changes are grouped and committed during ingest and deletion | Changes affect throughput and failure recovery. Test a forced interruption mid-ingest and confirm the index stays consistent with stored files. |
| Keep-alive settings | Whether idle connections are kept open and how often they are checked | Useful when firewalls or load balancers drop idle sessions. Test by pausing traffic overnight and confirming the first request afterward succeeds. |
| Authentication method | How Orthanc proves its identity to PostgreSQL, including password hashing | Use SCRAM rather than MD5 on PostgreSQL 18, where MD5 password authentication is deprecated. Confirm the server's password_encryption setting and test the login after rotation. |
| Exact key names and defaults | The names and default values for every option above | Take them from the PostgreSQL plugin documentation for your plugin version. Confirm each default in a staging environment before relying on it. |
How to set up the PostgreSQL index for Orthanc
This sequence takes a PostgreSQL server from version selection to a verified Orthanc install that indexes a test study through the PostgreSQL plugin. Each step ends with a check so the team knows it can move on.
Confirm the PostgreSQL major version and support end date
Choose a PostgreSQL major version that is still supported on the date you go live, and record its end-of-support date in the project plan. The supported versions in the researched facts are 18 (final release November 14, 2030), 17 (to November 8, 2029), 16 (to November 9, 2028), 15 (to November 11, 2027) and 14 (to November 12, 2026), so check the current versioning policy before you pick one. Done means the chosen version and its end-of-support date are written down and approved by the team that will own the database. Confirm the version against the Orthanc PostgreSQL plugin release notes too, since the plugin must support it.
Provision the PostgreSQL server
Install the chosen PostgreSQL major version on the server or virtual machine you control, using your standard packages or the vendor's packages, and set the data directory on storage sized for the archive index. Apply your OS patches and confirm the service starts and restarts cleanly. Done means
psqlconnects locally as the superuser and reports the expected major version. Keep the server on a private network segment that only the Orthanc hosts can reach.Create the database and a dedicated role
Create one database for Orthanc and one login role that owns it or holds only the privileges Orthanc needs, rather than using the superuser account. Keep the role's privileges limited to that database. Done means you can log in as the new role to the Orthanc database and cannot reach other databases on the server. Record the role name and database name in your configuration inventory, but store the password in your secrets manager.
Configure SCRAM authentication instead of MD5
Set the password encryption to SCRAM-SHA-256 so new passwords are stored with SCRAM, then set the password for the Orthanc role after that setting is active. Update
pg_hba.confso the Orthanc hosts connect with thescram-sha-256method, restrict the source addresses to those hosts, and reload the configuration. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so avoid MD5 entries even if older guides show them. Done meanspg_hba.confhas no MD5 rules for the Orthanc database and a login from an Orthanc host succeeds with the role password.Install the PostgreSQL plugin matching the Orthanc core
Install the Orthanc core and the PostgreSQL index plugin from the same release line, using the Orthanc package or Docker image that includes the plugin. Check the plugin version against the core version in the Orthanc release notes before deployment, because mismatched versions are a common cause of startup failure. Done means
Orthanc --versionshows the core version and the plugin loads without errors in the startup log.Point Orthanc at the database and start the service
In the Orthanc configuration, enable the PostgreSQL index plugin and set the host, port, database name, role and password reference, then keep remote access settings in line with your security review. Configure connection and locking options as your team decides, and enable keep-alive if the network path between Orthanc and PostgreSQL uses firewalls or load balancers that drop idle connections. Start Orthanc and read the startup log. Done means the log shows a successful database connection and the schema creation or validation completed without errors.
Verify connections and indexing with a test study
Confirm the database holds the Orthanc index tables, then upload one test study through the REST API or a DICOM C-STORE from a test modality. Query the study back, retrieve it, and check that the instance count and study metadata match what you sent. Done means the study appears in the Orthanc listing, the database contains rows for it, and a retrieve returns the same number of instances. Use only test data, or de-identified data approved for testing, and record the results before connecting real modalities.
Test a delete and restart cycle before production
Delete the test study through the REST API, then restart Orthanc and confirm the study stays deleted and the remaining index matches the file storage. Restart the PostgreSQL server as well and confirm Orthanc reconnects without manual intervention. Done means the delete is reflected in both the index and the storage area, and both restarts leave the system in a consistent state. Keep the results with the change record, since these checks are the evidence your team will need when tuning or upgrading later.
How Orthanc instances, the PostgreSQL index and file storage connect
The diagram starts with clients and a reverse proxy at the edge of the trust boundary, which forwards requests to two or more Orthanc instances. Each instance reads and writes the same PostgreSQL index through the PostgreSQL plugin, while DICOM files go to a separate file storage area. Check that every instance points at the same database, that the proxy is the only path from outside, and that the file storage is reachable from every instance.
Two Orthanc instances share one PostgreSQL index and a separate file store behind a reverse proxy.
Securing the PostgreSQL index and its connections
The PostgreSQL index holds the metadata for every study, series and instance Orthanc stores, so its authentication, roles and network reach deserve the same care as the archive itself. The cards below cover the database side first, then the Orthanc side of the connection, from password hashing to the REST routes that should stay closed.
Use SCRAM authentication
Configure the PostgreSQL server to authenticate Orthanc with SCRAM-SHA-256 rather than MD5. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so new clusters should not rely on it. Check password_encryption on the server, confirm the pg_hba.conf entries for the Orthanc database user use SCRAM, and confirm the Orthanc PostgreSQL plugin version supports the client library your server requires.
Least-privilege database roles
Give Orthanc its own login role that owns or can access only its index database, not a superuser or the shared postgres account. Separate the role that runs schema creation and upgrades from the role used at runtime when your change process allows it, so routine operation cannot alter the schema. Ask your DBA to document which privileges the plugin needs during installation and which can be removed afterward.
Restrict the database port
Bind PostgreSQL to the network interfaces Orthanc instances actually use and allow connections only from their addresses in pg_hba.conf and at the firewall. Keep the database off public networks and out of the reverse proxy's reach. For multiple Orthanc instances sharing one database, list each instance's address explicitly, and confirm which subnets your monitoring and backup hosts need before opening anything wider.
Encrypt client connections
Use TLS for connections between Orthanc and PostgreSQL when they cross a host, container network or data center boundary. PostgreSQL's authentication methods include certificate-based options and integration with external systems such as LDAP, RADIUS, PAM and OAuth, so choose the method your identity team can operate and audit. Confirm with your security team how client certificates are issued, rotated and revoked before you rely on them.
PostgreSQL auth methodsRequire authentication for remote Orthanc access
Orthanc accepts HTTP connections only from localhost by default. If RemoteAccessAllowed is enabled, set AuthenticationEnabled to true and define users in RegisteredUsers. For internet exposure, put Orthanc behind HTTPS and a reverse proxy, and keep the REST API off any address that does not need it. Confirm which clients reach the API and whether an advanced authorization plugin is needed for per-user access decisions.
Keep script and export routes disabled
Leave the /tools/execute-script route disabled, because the Orthanc security FAQ warns that it can let a malicious user run any system command. The export route can overwrite files, so keep it disabled as well unless a documented workflow requires it. Review the Orthanc configuration during each upgrade and record who approved any exception, since a new default or a copied configuration file can reopen these routes.
Which settings matter for archives of hundreds of thousands of instances
At several hundred thousand instances, the index becomes the part of the Orthanc PostgreSQL plugin setup that decides whether searches, C-FIND responses and study-level operations stay responsive. The Orthanc Book says the built-in SQLite index should be replaced by an enterprise engine at that size and recommends the PostgreSQL plugin for large datasets. The Orthanc Book scalability FAQ cites production hospital deployments holding more than 65 TB of data, 340,000 studies and around 150 million instances. Those figures show the scale the docs have in view, but they do not tell you what your own archive will need. Index growth depends on how many DICOM tags Orthanc indexes, how many studies and series you store, and how often clients query by attributes outside the default set. Before tuning, measure the current size of the index tables, the number of instances per study in your typical archive, and the query patterns your modalities and viewers actually send.
Locking and concurrent writers are the next concern. Since Orthanc 1.9.2 with PostgreSQL and MySQL plugins 4.0, several Orthanc instances can read and write the same database, which supports horizontally scaled and highly available setups. Each added writer adds contention on the same index tables, so a cluster that scales out on the application side can slow down on the database side. Review the locking and transaction options in the plugin configuration against your ingest pattern, and watch for long-running deletions or bulk imports that hold locks while other clients wait. Confirm these choices with the plugin documentation for your Orthanc version, because the Orthanc release line moves quickly. The 1.13.0 release, dated 2026-08-15, rewrote storage-area access and parsing, so storage-side behavior may shift between releases.
Treat every tuning change as a hypothesis. Benchmark on hardware and a dataset that match your production system, using realistic ingest rates, study sizes and concurrent viewer and modality load, and record query latency, ingest throughput and database resource use before and after each change. A setting that helps a small test archive can add overhead at full scale, and a gain measured on fast local SSDs may not carry over to network-attached storage. Ask your DeployOpen team or your own engineers to define the benchmark scenarios and acceptance thresholds in writing before the tuning work starts, so results can be compared and repeated after future upgrades.
Limits and what to confirm in your environment
The PostgreSQL plugin sits between Orthanc, its storage layer and your database server, so a version mismatch in any one of them can surprise you later. The cards below list the items to verify with the plugin documentation, the Orthanc release notes and the PostgreSQL support policy before you fix a design.
Plugin and Orthanc version match
Confirm which PostgreSQL plugin release is built for the Orthanc core you run, and check that pairing before any upgrade. The scalability guidance ties shared-index multi-instance setups to Orthanc 1.9.2 and PostgreSQL plugin 4.0 or later, so older combinations need explicit confirmation. Ask the vendor or the Orthanc Book which plugin build matches your Docker image or package. Pin both versions in your change records.
Scalability FAQEffect of the 1.13.0 rewrite
Orthanc 1.13.0 rewrote storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use. Test whether your indexing, transcoding and deletion paths behave the same on a copy of your archive before moving production to this release. Confirm with the release notes whether any index behavior or plugin compatibility changed, and plan a rollback path for the database as well as the binaries.
Orthanc NEWS filePostgreSQL support windows
Check which PostgreSQL major version your database server runs against the official support calendar. PostgreSQL 14 is supported until November 12, 2026, so an archive that stays on it will need a planned major upgrade within the coming months. Version 18 is supported until November 14, 2030. Schedule the upgrade with the Orthanc upgrade plan, since schema and plugin compatibility must be rechecked for the target version.
PostgreSQL versioning policyNo built-in automatic failover
PostgreSQL provides replication and standby servers, but it does not detect a failed primary or promote a standby on its own. If your Orthanc high availability design depends on the database staying reachable, select and test an external failover tool, and confirm how Orthanc instances reconnect after promotion. Record the expected recovery behavior, including who approves promotion when no automated tool is in place.
PostgreSQL failover docsAGPLv3 licence for the plugin
The PostgreSQL plugin is licensed AGPLv3 or later, while the Orthanc core is GPLv3 or later. Have your legal or procurement team review what that means for your deployment, particularly if you modify the plugin or offer it to users over a network. Confirm the licence text shipped with the exact build you install, and keep records of any local changes.
Orthanc licensing FAQQuestions teams ask before setting up the PostgreSQL plugin
What does a PostgreSQL plugin setup for Orthanc cost?
No price is published for this work, and the cost is set by the written scope, so the useful question is what the scope contains. Cost is driven by the number of Orthanc instances, whether the index and storage are split across plugins, the PostgreSQL high availability design, the backup and restore approach, the authentication and network controls, and how much testing is needed against your data volume. Ask for a quote that lists each of these as a separate line, marks what is one-time work (design, build, validation, handover) and what recurs (upgrades, monitoring, retainers), and states what the client must supply. Orthanc itself has no paid edition, and the PostgreSQL License is permissive, so software licensing is not usually the cost driver.
How long does it take to set up the Orthanc PostgreSQL plugin?
Duration depends on your environment more than on the plugin itself, so no fixed timeline is given here. The main variables are how many instances will share one database, whether a high availability design is required, how large the existing archive is and how long migration or reindexing takes on your hardware, how quickly your security and change approvals run, and whether your database team is available. Ask the provider for a schedule tied to written milestones: environment review, a test build, load and failover testing, a cutover window, and handover. Confirm the expected duration of any archive import with a test on a copy of your data, because archive size changes this estimate most.
What must our team provide for the PostgreSQL setup?
Plan to provide database administration access, network paths and firewall rules, and certificates. On the database side, someone must own PostgreSQL server settings, roles, backups and restore testing, and the choice of major version, which should be one that is still supported at the time of go-live. Your network team must allow connections from each Orthanc host to the database port and any connection pooler, and must decide how traffic is encrypted. Certificates are needed for TLS to the database, for HTTPS in front of Orthanc, and for any DICOM TLS exchanges. Ask the provider to list every dependency in the quote so that approvals can start before the build begins.
Can our internal team set up the PostgreSQL plugin without a partner?
Yes, an experienced team can do this alone if it has PostgreSQL operations skills, Orthanc administration experience and time for testing. The work that most often needs outside depth is tuning for large archives, validating connection and locking settings under concurrent load, configuring SCRAM authentication and TLS correctly, and rehearsing failover and restore. Check whether your team has run PostgreSQL in production with backup and point-in-time recovery, and whether it has tested a major version upgrade. A partner is most useful when the deadline is fixed, when the team lacks one of these skills, or when you want an independent review of the design before it reaches production.
How is a quote built from a written scope?
A quote follows from a written scope that is agreed before work starts, and that scope defines the deliverables, the environments covered, the testing and the handover. Expect the scope to name the Orthanc version and plugin versions in use, the PostgreSQL version and hosting model, the number of Orthanc instances, the expected archive size, the high availability target, the backup method, and the documentation and training handed over. Each change to the scope, such as adding a second site or a failover test, should be priced as a written change. Ask for assumptions in writing, including what the client supplies and what happens if those inputs arrive late.
Which PostgreSQL version should we plan to run?
Choose a PostgreSQL major version that is still in its support window for your entire planned service life, and confirm the dates with the PostgreSQL versioning policy before you fix the design. The supported versions listed at the time of writing were 18, 17, 16, 15 and 14, with 14 ending in November 2026. Versions 13 and earlier are unsupported. Plan minor updates as routine maintenance, because minor releases do not change the storage format, and plan major upgrades as separate projects. Confirm with your Orthanc version which PostgreSQL releases the plugin supports, since compatibility is a separate check from PostgreSQL support.
What settings matter most for large archives?
The settings that matter most are those that govern connection count, locking, transaction handling and keep-alive behavior, because these determine how many Orthanc instances can share one index without contention. Review the plugin's connection and locking options and the transaction mode against your expected concurrency, then load test with realistic study counts. Confirm the keep-alive setting against your network devices and firewalls, since idle connections are often dropped. Use SCRAM password authentication rather than MD5, and check the PostgreSQL authentication documentation for the method that fits your directory service. Verify each value in a test environment on a copy of your archive size before you change production.
Running the index in production: backups, replication and upgrades
Once the Orthanc index lives in PostgreSQL, its recovery, availability and upgrade path become database operations decisions. The cards below cover the decisions that connect backups, replication, failover and version changes for an archive holding patient images.
Continuous archiving and point-in-time recovery
Base backups alone can leave hours of index changes unprotected. Continuous archiving ships write-ahead log segments to separate storage so the database can be restored to a chosen moment, such as just before a bad deletion or a faulty script run. Check that the archive location is not on the same disks as the primary, that restores are rehearsed against a copy of the Orthanc index, and that the Orthanc file storage is backed up on a schedule that matches the index. An index restored to a different point than the files will show studies that no longer exist or files with no index entry.
Continuous archiving docsHot standby for read-only queries
A hot standby replays changes from the primary and can serve read-only queries. For Orthanc, it gives a second copy of the index that can be promoted if the primary is lost, but it does not take over writes by itself. Confirm with your Orthanc version and plugin release whether any read traffic can safely be directed to a standby, because Orthanc expects to write index state. Treat the standby as a recovery target first and a read replica only after testing.
Synchronous or asynchronous replication
The replication mode sets how much index data you may lose. With synchronous replication, a commit waits until at least one standby confirms it, which protects recent writes but adds latency to every ingest and deletion. With asynchronous replication, commits return sooner, and the standby can lag behind the primary during load spikes or network trouble. Decide the acceptable loss window with the clinical and operations owners, then measure how much write latency the chosen mode adds under your real ingest rate.
Automatic failover needs external tools
PostgreSQL does not detect a failed primary or promote a standby on its own. A failover tool, an orchestrator or a documented manual procedure must make that decision and redirect Orthanc to the new primary. Choose the tool before go-live, test a forced failover with Orthanc running, and confirm how each Orthanc instance reconnects after the switch. Also plan how a former primary is rebuilt so it cannot accept writes after the switch.
PostgreSQL failover docsMinor updates replace executables
Minor PostgreSQL releases do not change the internal storage format, so applying one means replacing the executables and restarting the server. Schedule these updates within the supported minor release cadence, take a fresh backup before each one, and confirm the Orthanc plugin version still works with the server version in use. Ask your Orthanc partner or the plugin release notes which PostgreSQL versions each plugin release has been tested against.
Major upgrades and the Orthanc upgrade path
A major upgrade can use pg_dumpall with a restore, pg_upgrade, or logical replication, which PostgreSQL documents as allowing a switch with only several seconds of downtime. Each method has different rollback and validation effort, and each changes the Orthanc index layout only through the server itself. Plan the Orthanc core, plugin and PostgreSQL versions together, and follow the Orthanc upgrades group for schema changes and multi-instance cluster steps before touching production.
- Support per major version
- 5 years
How DeployOpen scopes and delivers the PostgreSQL index
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, so the Orthanc PostgreSQL index runs where your compliance and security teams can review it. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- We confirm whether the PostgreSQL index is the right fit, comparing it with the built-in SQLite index for your expected instance count.
- We record your Orthanc version, Docker or package install, PostgreSQL major version and plugin pairing in the written scope.
- We agree which connection, locking, transaction and keep-alive settings are in scope, and which authentication method your environment requires.
How we build
- We install and configure the PostgreSQL index plugin on infrastructure you control, with settings documented in a reviewable configuration.
- We set up SCRAM password authentication and confirm that Orthanc connects with the role privileges you approved.
- We test ingest, search and deletion against a dataset that reflects your archive size, then tune connection and transaction settings from the results.
How we hand over
- You receive the configuration files, a record of tested settings and the reasons behind each non-default value.
- We document backup, restore and point-in-time recovery steps for the Orthanc database, and run a restore test with your team.
- We walk your administrators through daily operations, including monitoring, log review and what to check before any Orthanc or PostgreSQL upgrade.
How we support
- Upgrades to Orthanc and to the PostgreSQL server are planned as separate changes, with a test run before production.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Before a clinical or audit review, we can prepare the configuration, access and backup evidence your teams ask for.

