What a post-quantum upgrade of PostgreSQL involves: software and licenses

PostgreSQL has no PostgreSQL-specific post-quantum feature in its documentation as of 2026-12-03. An upgrade today is a software question: the OpenSSL build, the ssl_groups setting and the client libraries, with no license change in the facts supplied.

On this page

Does a PostgreSQL post-quantum upgrade need new software or licenses?

If you plan a PostgreSQL 18 or 19 estate, the first question is whether a post-quantum upgrade means buying or installing something new. As of 2026-12-03, the PostgreSQL 18 and 19 release notes and current server and libpq documentation describe no post-quantum feature. Hybrid ML-KEM key exchange is not a built-in PostgreSQL function. It depends on the OpenSSL build that PostgreSQL links against (OpenSSL 3.5 in the one tested example, a February 2026 pgsql-hackers message) and on the server setting ssl_groups, which must name a group that the linked OpenSSL supports. The shipped default, X25519:prime256v1, contains no post-quantum group. The PostgreSQL Global Development Group supports each major version for 5 years after first release, and PostgreSQL 18 and 19 are listed as supported on the versioning page. The facts we checked contain no license cost for PostgreSQL itself, so the software question is mainly about the OpenSSL version your builds link against.

Planners should confirm three things before budgeting. First, identify the OpenSSL version used by each server and client build, including packaged builds from your operating system or a container image, since the 3.5 example is the only one tested. Second, check whether your PostgreSQL build is at 18 or later, because the thread notes that earlier versions rejected the ML-KEM group name in ssl_ecdh_curve, and we found no committer answer on whether that change was backported. Third, ask your PostgreSQL distributor or cloud provider whether its managed or packaged builds link a suitable OpenSSL and expose ssl_groups. Each of these checks is an inventory task, not a purchase. Any license or support fee would come from your distributor or provider, and the facts supply no figure for that.

Because no PostgreSQL-specific post-quantum signature feature appears in the documentation checked, certificate and key replacement is a separate decision from key exchange. The libpq connection parameters page documents no client-side setting for choosing key exchange groups, so client support also depends on the client's own OpenSSL. Record each finding with its date and version, and ask your vendor to state in writing which builds support the configuration you need.

Which PostgreSQL versions and components the upgrade question touches

This table compares the PostgreSQL releases still supported and the components that decide whether a post-quantum hybrid group can be negotiated, with the source and date for each cell. Read each row against the version you run, because the ssl_groups default and naming rules differ between releases. The main takeaway is that PostgreSQL 19 and 18 accept a hybrid ML-KEM group name through ssl_groups, while PostgreSQL 19 defaults still list no post-quantum group.

Version or componentWhat it showsSource and date
PostgreSQL 19 (19.0)First released November 19, 2026. Supported as of 2026-12-03. ssl_groups defaults to X25519:prime256v1 and accepts a colon-separated list of named groups.PG Versioning page, checked 2026-12-03; PG Connection settings, 19
PostgreSQL 18 (18.7)First released September 25, 2025. Supported as of 2026-12-03. Accepts ssl_groups with a hybrid name such as X25519MLKEM768 when the linked OpenSSL supports it.PG Versioning page, checked 2026-12-03; PG 18 release notes; PG hackers thread, 2026-02-19
PostgreSQL 14No longer supported as of 2026-12-03, so it receives no further fixes for TLS or other components.PG Versioning page, checked 2026-12-03
Versions before 18Could not name the ML-KEM group in the setting, because ssl_ecdh_curve rejected it. The thread asks about backporting, and no committer answer appears in the text read.PG hackers thread, 2026-02-19
ssl_groups and hybrid namesThe documented default is X25519:prime256v1, which contains no post-quantum group. A hybrid name is used only when set in ssl_groups and supported by OpenSSL.PG Connection settings, 19; PG hackers thread, 2026-02-19
OpenSSL dependencyPostgreSQL relies on OpenSSL for TLS on client and server. Named hybrid groups therefore depend on the OpenSSL build, and the thread shows OpenSSL 3.5 in use.PG SSL TCP docs; PG hackers thread, 2026-02-19
pgcrypto FIPS settingpgcrypto.builtin_crypto_enabled defaults to on and can be set to fips when OpenSSL is in FIPS mode. The documentation lists no post-quantum algorithm in pgcrypto.PG pgcrypto docs; PG 18 release notes
Confirm in your buildCheck the OpenSSL version and FIPS mode of the server build, then run the server with the intended ssl_groups value before planning changes.PG SSL TCP docs; PG pgcrypto docs

Which software parts an upgrade touches: OpenSSL, server settings and clients

A PostgreSQL post-quantum upgrade is a software change, not a hardware one. The server and clients negotiate TLS through the OpenSSL build they link against, so the OpenSSL version, the server's key exchange settings and each client's library are the parts to inventory first. The cards below cover the software and configuration items that would need review.

The OpenSSL build

PostgreSQL does not implement its own TLS. Both the server and the client rely on the OpenSSL build they are linked against, and the server reads the system-wide openssl.cnf file, which can be redirected with the OPENSSL_CONF environment variable. Whether a given key exchange group is available depends on the OpenSSL version, so the build is the first thing to record for each server and client. Check the exact OpenSSL version on every host and container image, including any bundled copies.

SSL docs

The ssl_groups server setting

In PostgreSQL 19, the ssl_groups setting selects the named groups for TLS key exchange as a colon-separated list, and it defaults to X25519:prime256v1. PostgreSQL 18 renamed the older ssl_ecdh_curve setting to ssl_groups, and the old name still works. The documentation states that X25519 is not allowed when OpenSSL is in FIPS mode, so FIPS-mode servers need a different list. Review this setting on every server before changing any group names.

Connection settings

The libpq client side

The libpq connection parameters page documents no groups parameter. For the client side, the documentation gives no PostgreSQL-specific setting for choosing key exchange groups, so client key exchange depends on the OpenSSL build and its defaults. Drivers and applications built on libpq inherit that build. Inventory each client library version and its linked OpenSSL to see which groups it can negotiate. Also check the sslmode setting, since prefer is kept only for backward compatibility.

libpq parameters

Server certificates and keys

The server loads its certificate and private key from ssl_cert_file and ssl_key_file, which default to server.crt and server.key in the data directory. The documentation states no restriction on key type, only that the key must match the certificate. Client certificates default to files under ~/.postgresql. Record each certificate's key algorithm and expiry, along with the CA chain and any CRL files, so you know which certificates a later algorithm change would reissue.

libpq SSL docs

The pgcrypto extension

The pgcrypto extension requires OpenSSL and provides functions for digests, crypt types and encryption with bf and aes. Its documented PGP support covers public-key encryption with DSA, Elgamal or RSA keys, and the page lists no signing support. No post-quantum algorithm appears in the documentation. Where pgcrypto is installed, its OpenSSL dependency means the same build review applies, and the setting pgcrypto.builtin_crypto_enabled controls whether built-in functions are available in FIPS mode.

How the upgrade differs by version line and deployment model

PostgreSQL 18 and 19 use OpenSSL on both server and client, and PostgreSQL does not supply its own TLS code. If you build the server yourself against a distribution OpenSSL, the TLS behavior depends on that OpenSSL version. The settings that matter most are ssl_groups, which defaults to X25519:prime256v1 in PostgreSQL 19, and ssl_tls13_ciphers, which uses OpenSSL's built-in suites when left blank.

  • Key exchange groups: ssl_groups is passed to OpenSSL, so a hybrid group such as X25519MLKEM768 only works if the linked OpenSSL build supports it. A February 2026 message on the pgsql-hackers list reports this working with PostgreSQL 18 and OpenSSL 3.5.
  • Default is not post-quantum: The documented default contains no post-quantum group, and the PostgreSQL 18 and 19 release notes do not mention post-quantum cryptography.
  • Certificates and signatures: The documentation sets no restriction on certificate key type. Plan certificate replacement separately from key exchange.
  • Version history: PostgreSQL 18 renamed ssl_ecdh_curve to ssl_groups, and the old name still works.
  • Library versions: PostgreSQL 18 removed support for OpenSSL versions older than 1.1.1.

Confirm the OpenSSL version your distribution ships and whether it supports the groups you intend to set.

What to do first: inventory OpenSSL and ssl_groups before any upgrade quote

This sequence gives you a written record of the PostgreSQL and OpenSSL builds in use, the current key exchange setting, and the libraries that depend on them. With that inventory in hand, you can scope an upgrade and ask vendors or partners for a quote that matches your actual environment.

  1. Record PostgreSQL and OpenSSL versions on every host

    On each PostgreSQL server and each client host, record the PostgreSQL major and minor version and the OpenSSL version it is linked against. Run SELECT version(); on the server, and check the linked library with ldd on Linux or otool -L on macOS against the postgres binary and the libpq library your clients load. The inventory is complete when every server and client has one row with a PostgreSQL version and an OpenSSL version, and the OpenSSL version comes from the binary in use, not from the package name alone.

  2. Read the current ssl_groups value

    On each server, run SHOW ssl_groups; and record the result for each instance. In PostgreSQL 19 the documented default is X25519:prime256v1. Note whether a host has changed this value from the default, and whether the server reports a version older than 18, since the setting was renamed from ssl_ecdh_curve in that release and the old name still works. The step is done when each server's ssl_groups value sits in your inventory alongside its versions.

  3. Test candidate group names in a lab

    Build a lab copy of each server version on the same OpenSSL build used in production, then set ssl_groups to a candidate list and connect with a TLS 1.3 client. The PostgreSQL hackers thread of 2026-02-19 reports that PostgreSQL 18 with OpenSSL 3.5 negotiated the hybrid group X25519MLKEM768 when ssl_groups listed it first, and it is a useful starting point, but your own test is the evidence you need. Record which group the handshake actually negotiated. The check passes only when the negotiated group appears in the client or server log or your TLS inspection output.

  4. Confirm libpq OpenSSL builds on each client

    For every application host and driver that connects to PostgreSQL, confirm which OpenSSL build libpq links against, using the same ldd or otool check as the server. The libpq connection parameters documentation lists no client-side setting for key exchange groups, so the client's OpenSSL build determines which groups can be offered. Record each client's libpq and OpenSSL version. The step is complete when no client is left unrecorded, including drivers bundled inside applications or containers.

  5. List pgcrypto and pg_basebackup dependencies

    Identify every database that has the pgcrypto extension installed by querying pg_extension, and note the functions your applications call. Record whether the server runs in FIPS mode, since pgcrypto.builtin_crypto_enabled can be set to fips in that case. Also list which backup jobs use pg_basebackup, and note their connection settings, since the page documents that a base backup uses the same libpq security settings as other clients. The check is a written list of extensions, functions and backup jobs tied to the hosts from the earlier steps.

  6. Request a written scope before quoting

    With the inventory complete, write a scope that lists each server, client and backup job, its PostgreSQL and OpenSSL versions, its current ssl_groups value, and the lab results for candidate groups. Ask any upgrade provider to quote against that written scope, and ask them to state in writing which components they will change, which they will test, and which they will leave as they are. The scope is done when a reviewer can read it and see what the quote covers without asking further questions.

Does a hybrid PostgreSQL group depend on the version and OpenSSL build?

The decision path starts with the PostgreSQL major version, where 18 or 19 is needed for the ssl_groups setting that accepts a hybrid name, and older versions are shown as a documented-unsupported branch. Next, the OpenSSL build linked to the server must support the group; the one tested example in the facts is OpenSSL 3.5 or newer with X25519MLKEM768 listed first. After setting ssl_groups, the reader should test the handshake from a real client, because the facts document no client-side groups parameter in libpq. Only this one tested path is shown, and no other version or build is confirmed.

The only tested path in the facts: version, OpenSSL build, ssl_groups, then a client handshake test.

What the PostgreSQL documentation does not publish yet about post-quantum upgrades

The PostgreSQL release notes and current documentation, checked on 2026-12-03, do not describe post-quantum algorithms, signatures or certificates. The cards below list each gap an upgrade planner should close with the project, a vendor or a managed-service provider before committing to a migration.

No post-quantum feature in the docs

The PostgreSQL 18 and 19 release notes and the current server and libpq documentation, checked on 2026-12-03, do not mention ML-KEM, ML-DSA or SLH-DSA. Any hybrid key exchange depends on setting ssl_groups to a group name that the linked OpenSSL build supports, and the documented default of X25519:prime256v1 contains no post-quantum group. Ask the PostgreSQL project whether a post-quantum feature is planned, and for which major version.

PG 19 release notes

No client-side groups parameter

The libpq connection parameters page documents no client-side setting for choosing key exchange groups. Clients therefore cannot be steered toward a hybrid group through PostgreSQL's own options, and the choice falls to the TLS library underneath. Ask each driver and client vendor how their libpq build selects groups, and whether a parameter is planned.

libpq connection parameters

No backport commitment for ML-KEM names

A pgsql-hackers message dated 2026-02-19 shows PostgreSQL 18 negotiating the hybrid group X25519MLKEM768 with OpenSSL 3.5. Earlier versions rejected that group name in ssl_ecdh_curve, and the message asks whether the change could be backported. The thread text contains no committer answer, so no backport is documented. Ask the project whether a fix will reach versions before 18, and which of your supported versions it would cover.

pgsql-hackers thread

No signature or certificate PQC support

The documentation describes no post-quantum signature or certificate support in the server or in libpq. Certificates are loaded from ssl_cert_file, ssl_key_file and ssl_ca_file, and the documentation states no restriction on key type, only that the key must match the certificate. Client certificate checks and pgcrypto signing are also undocumented for post-quantum keys. Ask the project or your certificate authority which key types are supported for server and client certificates.

PG SSL TCP docs

No license or price statement

The facts you have on PostgreSQL cover support windows and trademarks, but no license terms or price for post-quantum support. The project's versioning page lists PostgreSQL 19 as supported and 14 as no longer supported, so the upgrade window is set by support status, not by any post-quantum offer. Ask managed-service providers and commercial distributors in writing whether post-quantum support carries a separate fee, and what it covers.

PG Versioning page

What can break when you set a hybrid group on PostgreSQL

Setting a hybrid group in ssl_groups is the step most likely to break a PostgreSQL connection, because the server passes the value to OpenSSL and the result depends on the OpenSSL build it is linked against. In the one tested example, PostgreSQL 18 with ssl_groups set to X25519MLKEM768:X25519:prime256v1 negotiated the hybrid group X25519MLKEM768 over TLS 1.3 with OpenSSL 3.5, as shown in a pgsql-hackers message dated 2026-02-19. That result applies to that version pairing only. The same thread says PostgreSQL versions before 18 could not do this because ssl_ecdh_curve rejected the ML-KEM group name, so a server on an older release may fail to start or reject the configuration if you copy the value across. Confirm the server version and the OpenSSL build with openssl version before you change anything, and check the server log after a restart.

If a client does not offer the hybrid group, the handshake does not have to fail. The server negotiates from the list it was given, so a client without a matching group can fall back to the next classical group in the list, such as X25519 or prime256v1. That keeps connections working, but it also means a fallback can happen silently and your traffic may not use the hybrid group at all. The libpq documentation gives no client-side setting for choosing key exchange groups, so you cannot force the hybrid group from the client. Test with each client type you run, including poolers and proxies in the path, and record which group each one actually negotiates.

FIPS mode adds two separate limits. The PostgreSQL 19 documentation states that X25519 is not allowed when OpenSSL is in FIPS mode, so a list that depends on X25519 for fallback may leave you with no usable group on a FIPS build. Check fips_mode() on the server and make sure the list still contains an allowed group. The pgcrypto extension has its own FIPS switch: setting pgcrypto.builtin_crypto_enabled to fips disables the built-in gen_salt() and crypt() functions when OpenSSL is in FIPS mode, so any application that calls them will get an error. Find those calls before you enable the setting, and confirm with the vendor or the pgcrypto documentation which replacement your application should use.

Questions planners ask about PostgreSQL post-quantum upgrade cost and scope

Is PostgreSQL quantum safe today?

No product can be called quantum safe on the strength of its documentation, and the PostgreSQL documentation checked on 2026-12-03 does not describe any post-quantum key exchange or signature feature. The server default for ssl_groups is X25519:prime256v1, which contains no post-quantum group. Whether a deployment can use a hybrid post-quantum key exchange depends on two things: the server setting ssl_groups naming a group that the linked OpenSSL build supports, and that build. A February 2026 pgsql-hackers message shows PostgreSQL 18 negotiating the hybrid group X25519MLKEM768 over TLS 1.3 with OpenSSL 3.5. Confirm the exact OpenSSL version, the PostgreSQL version and the group list in your own environment before reporting anything to an assessor.

Which PostgreSQL version is needed to use ML-KEM group names?

The February 2026 pgsql-hackers thread reports that PostgreSQL versions before 18 rejected the ML-KEM group name, because the older ssl_ecdh_curve setting did not accept it. PostgreSQL 18 renamed that setting to ssl_groups and allows a colon-separated list, so the group name could be passed through. The same thread asks whether this change could be backported, and the text the facts cover contains no committer answer on that. Plan on PostgreSQL 18 or 19 as the starting point, and ask the PostgreSQL project or your distributor whether any older branch will receive it. PostgreSQL 14 is no longer supported as of 2026-12-03, and PostgreSQL 18 and 19 are listed as supported.

Does a PostgreSQL post-quantum upgrade cost a license?

The facts supplied do not include a license price, and PostgreSQL is an open-source project, so the cost depends on how you obtain and run it. The PostgreSQL trademark policy covers the names Postgres and PostgreSQL and the Elephant Logo, which are held by the PostgreSQL Community Association of Canada. That policy governs use of the name, not the cost of the software. If you use a commercial distribution or managed service, its license and support terms apply and may include fees. Ask the vendor or distributor whether any post-quantum-related build, package or support tier carries a separate charge, and get the answer in writing.

What breaks when PostgreSQL moves to post-quantum key exchange?

The change itself is narrow: it affects the TLS key exchange between clients and the server, and only when both ends negotiate a hybrid group. Things that commonly need review include the ssl_groups setting on the server, the OpenSSL version in the server and in each client library, and any client or pooler that sits between the application and the server and terminates or relays TLS. Certificates and their keys are a separate matter, because the documentation sets no key type restriction beyond the key matching the certificate. Check that every client library reports a supported OpenSSL build, and test connections with a non-production configuration before changing ssl_groups in production. Note that FIPS mode disallows X25519, which changes the group list you can use.

What should we ask the PostgreSQL vendor or distributor before upgrading?

Ask for the exact PostgreSQL version and the OpenSSL version it is built against, and whether the build accepts the ML-KEM group names in ssl_groups. Ask whether any older branch you run will get that support, since the facts show the change arrived in PostgreSQL 18. Ask which client libraries they ship or support, and whether the libpq client exposes any group setting, because the libpq documentation checked on 2026-12-03 lists none. Ask for any post-quantum roadmap or notice in writing with a date, and whether any fee applies to support for the change. A written answer with a date is what an assessor will accept as evidence.

Can our own team upgrade PostgreSQL for post-quantum key exchange, or do we need outside help?

Your team can do the work if it already runs PostgreSQL and owns its TLS configuration, OpenSSL builds and client libraries. The core steps are a version upgrade to a release that accepts the group names, a change to ssl_groups, and testing across every client and proxy. Outside help is most useful when the environment spans many clients, uses a managed service, or runs in FIPS mode, where group choices are narrower and need checking. DeployOpen plans, implements, tests and documents self-hosted open-source platforms inside a client's own infrastructure, under fixed scope agreed in writing before work starts. An engagement starts with the scope, not a price list, and a quote follows the written scope.

How DeployOpen works on this

DeployOpen plans a PostgreSQL post-quantum upgrade around your own environment, not a generic template. The work starts with a written scope that names the server versions, client paths, replication links and certificate chains involved, and it stays inside your own infrastructure throughout.

How we scope

  • We confirm which PostgreSQL major versions run in your estate, since PostgreSQL 14 is no longer supported and PostgreSQL 18 and 19 are listed as supported.
  • We record the OpenSSL build each server and client links against, because PostgreSQL relies on OpenSSL and does not supply its own TLS code.
  • Scope is fixed in writing before work starts, and it lists which software, licenses and environments each deliverable covers.

How we build

  • We test named-group settings such as ssl_groups in a non-production environment, checking that the linked OpenSSL build accepts the group names you choose.
  • We verify client sslmode settings and certificate chains, because the libpq default of prefer does not check the server certificate.
  • We review pgcrypto, pg_basebackup and password settings against the documentation, and we record any setting the vendor documents as not present.

How we hand over

  • You receive a written inventory of each server, client and replication link, with the configuration values and OpenSSL version recorded for each.
  • We document each change made, the test results behind it and the rollback steps, so your security and compliance teams can review them.
  • Handover notes flag which post-quantum support depends on a specific OpenSSL build, so you can confirm it against your own environment before relying on it.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so changes to PostgreSQL or OpenSSL can be rechecked as they ship.
  • We can retest after each PostgreSQL minor or major release, since the documented defaults and settings may change between versions.
  • Vendor statements change over time, so we can recheck the PostgreSQL documentation and release notes at an interval you agree in the retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.