SQL Server 2016 end of support: upgrade, pay for ESUs or move to PostgreSQL

SQL Server 2016 extended support ended in July 2026, so the database now needs a supported path. This page compares upgrading, buying Extended Security Updates through 2029 and moving to a supported PostgreSQL major version, with the cost drivers and risks of each.

On this page

Why SQL Server 2016 now needs a supported path

A production SQL Server 2016 instance that is past extended support can no longer be treated as a supported database, and security and compliance teams will expect a supported platform under every regulated workload. The three paths are upgrading to a newer SQL Server release, buying Extended Security Updates through 2029, or moving the database to a supported PostgreSQL major version. The right choice depends on which applications connect to the instance and on the evidence the organization must produce for its auditors and customers, not on the cost of any single line item.

Start with the evidence. Ask the compliance lead which controls require a vendor-supported database version, and what proof they accept: patch records, a vendor support statement, or a documented exception with a compensating control. Then inventory each application that connects to the instance, including its driver, T-SQL dependencies, SQL Server Agent jobs, linked servers and any reporting or integration tools. That inventory shows which workloads can move quickly and which depend on SQL Server-specific features that will take longer to rework.

If the answer is PostgreSQL, target a currently supported major version. PostgreSQL 14 support ends November 12, 2026, so a new deployment should run PostgreSQL 17 or 18. The PostgreSQL versioning policy lists the end-of-support dates for each release, and those dates should go into the migration plan and the risk register from the start.

If you choose ESUs, get the terms in writing: which servers and cores are covered, the price for each year, and how the coverage is licensed with Microsoft or your reseller. Confirm with your Microsoft licensing contact whether the instance qualifies. If you choose an upgrade or a PostgreSQL move, set a date for the decision and a dated exit plan for the instance, so the interim period has a clear end.

What a supported database must provide under this constraint

A compliance review or security audit will not accept a database just because it runs. It will ask whether the version is still supported, whether clients authenticate strongly, whether the service survives a failure, and whether backups can be restored to a point in time. Each card below is a requirement to evidence before you choose between upgrading, buying ESUs or moving to PostgreSQL.

Vendor-supported version with a published end date

A supported database has a published end-of-life date that auditors can read and calendar. PostgreSQL publishes support windows per major version, with 14 supported to November 12, 2026, and 17 to November 8, 2029. Compare this with the SQL Server 2016 timeline, where the choice is between a newer release and paid ESUs. Confirm with your own policy whether a version must be supported for the full audit period, and plan the next major upgrade before the end date rather than after it.

PostgreSQL versioning policy

Timely patch cadence

A supported database must receive fixes on a predictable schedule. PostgreSQL ships minor releases at least once every three months, and minor releases never change the on-disk storage format, so applying them means replacing executables and restarting. Write down who approves a minor update, how long a maintenance window is, and how you prove the fix reached every node. Your change policy, not the vendor, sets the acceptable patch interval.

Minor release interval
3 months

Strong client authentication

Auditors test how users and applications prove identity to the database. PostgreSQL supports SCRAM password authentication, certificate authentication, and directory-backed methods such as GSSAPI, SSPI, LDAP and OAuth 2.0. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so any role still using MD5 becomes a finding. Check that password_encryption is set to scram-sha-256 and that pg_hba.conf rejects anonymous or weak methods for remote hosts.

PostgreSQL authentication methods

High availability with a defined failover process

Availability controls ask what happens when the primary fails and who decides. PostgreSQL supports hot standby servers that serve read-only queries, and it offers both synchronous replication, where a commit waits for standbys, and asynchronous replication. PostgreSQL does not detect a failed primary or promote a standby by itself, so you need an external failover tool and a written runbook. Confirm your recovery time and data loss targets, then test failover against them.

PostgreSQL failover docs

Tested backup and point-in-time recovery

A backup that has never been restored is not evidence. PostgreSQL continuous archiving with a base backup and archived write-ahead logs makes point-in-time recovery possible, but only if the archive is complete and the restore has been rehearsed. Ask for restore test records, the retention period your policy requires, and where archives are stored and encrypted. The database team and the auditor should both see the same restore timing results.

Continuous archiving and PITR

Upgrade, ESUs or PostgreSQL: how each option meets the constraint

This table compares three ways to keep a SQL Server 2016 database under vendor support: upgrading to a newer SQL Server, buying Extended Security Updates, or moving to PostgreSQL. Read each row as a question you need answered before committing, since the SQL Server prices and terms are not set out here and must be confirmed with Microsoft or a licensing partner.

Decision pointUpgrade to newer SQL ServerBuy ESUs through 2029Move to PostgreSQL
Support after the changeMainstream support on the new release, with its own end-of-support date to confirmSecurity updates only, through 2029 per the constraint being testedPostgreSQL 17 supported to November 8, 2029; PostgreSQL 18 supported to November 14, 2030
One-time workLicence purchase or upgrade, test cycle, compatibility checks, application changesLittle engineering work, but enrolment and eligibility steps to confirmSchema and T-SQL conversion, application rewrites, data migration, cutover rehearsal
Recurring costLicensing or subscription renewals on the new release, plus maintenanceAnnual ESU charges for each covered server, to confirm with Microsoft or a partnerNo licence fee; recurring spend on staff, support contracts and hosting
What drives cost upCore count, edition choice, Software Assurance terms, number of serversNumber of licensed cores or servers and how long the extension is heldNumber of database objects using T-SQL or SQL Server features, application count, staff skills
Effort on applicationsLow to moderate, mostly regression testing of stored procedures and jobsNone beyond existing patching and testingHighest of the three, since T-SQL and PL/pgSQL differ and drivers may change
Ongoing exit optionSame licensing model applies at the next end-of-support dateDeadline arrives in 2029 and the decision repeatsMajor upgrades can use pg_upgrade or logical replication with short downtime
Main riskRepeating the same end-of-support cycle with the same licensing exposurePaying to delay a migration while the platform stays on an unsupported path after 2029Application behavior changes that testing misses, and skills gaps in the operations team
Confirm before decidingCurrent prices, edition terms and the next lifecycle date with Microsoft or a licensing partnerCurrent ESU pricing, eligibility, billing period and whether it covers your editionWhich features and extensions your workload needs, and a PostgreSQL support contract if you want one

Where PostgreSQL meets the constraint and where it needs work

PostgreSQL removes the licensing question that SQL Server raises. The server is released under the PostgreSQL License, a liberal open source license similar to the BSD or MIT licenses, so there is no per-core or CAL charge to pay. Support works differently, though. The PostgreSQL project releases 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 14 is supported until November 12, 2026, so a cluster on 14 has to move to a later major version within months of this date. Check the current support table on the PostgreSQL versioning policy and plan your own upgrade window against it. Commercial support for PostgreSQL comes from vendors and consultancies, so the support cost is a contract you choose, not a fixed license fee.

The gaps are where the migration effort sits. PostgreSQL does not detect a failed primary or promote a standby on its own. Hot standby and synchronous or asynchronous replication are built in, but automatic failover needs external tooling such as Patroni, which you must install, configure, test and operate, along with the consensus store it depends on. Read the PostgreSQL failover documentation before you accept that a standby will take over during an outage. T-SQL, SQL Server Agent jobs and features such as availability group listeners will not run unchanged. Stored procedures move to PL/pgSQL, scheduled jobs move to cron, pg_cron or an external scheduler, and any dependency on SQL Server-specific features must be replaced. Confirm each application's dependencies, drivers, connection strings and scheduled jobs in your own environment before you commit to a date.

How to move the database to PostgreSQL under the deadline

This sequence takes a SQL Server 2016 estate from a full inventory to a validated PostgreSQL cluster in your own infrastructure, with a cutover that keeps a rollback path until the target is proven.

  1. Inventory every instance, database and dependency

    The database owner and application leads list each SQL Server 2016 instance, database, linked server, SQL Agent job, SSIS or reporting dependency, and every application connection string. Record data volume, daily change rate, stored procedures, CLR assemblies, and any feature that has no direct PostgreSQL equivalent. Each entry gets an owner and a target decision: move, upgrade, or retire. The output is a signed inventory that becomes the scope for every later step. Work is done when no connection string or scheduled job is left unassigned.

  2. Choose the target major version

    The platform team compares PostgreSQL 17 (supported to November 8, 2029) and PostgreSQL 18 (supported to November 14, 2030), using the PostgreSQL versioning policy as the source for those dates. Check each extension and driver the applications need against the chosen version. Confirm the support window fits the organization's own lifecycle planning. The output is a written version decision approved by the architecture and security owners.

  3. Build the PostgreSQL cluster securely

    The infrastructure team builds the cluster in the organization's own data center or cloud account, with a hot standby for read-only queries and a chosen replication mode. Configure SCRAM password authentication or the directory-based method the organization already uses, enable TLS for every client connection, and restrict access in the host-based authentication file. Set up continuous archiving and point-in-time recovery, and place PgBouncer in front if connection counts require it. Confirm that automatic failover is handled by an external tool, because PostgreSQL does not detect primary failure on its own. The output is a documented build and a restore test that succeeds.

  4. Convert schema and code against production copies

    Developers convert T-SQL objects, stored procedures and SQL Agent logic to PL/pgSQL and to scheduled jobs outside the database, then load restored copies of production data into the new cluster. Run the application test suite and a set of representative queries, and compare row counts, checksums and query plans against SQL Server results. Record every behavioral difference, such as collation, null handling and transaction semantics, and decide whether the application or the converted code absorbs it. The output is a passing regression run and a list of accepted differences signed by the application owner.

  5. Set up logical replication for cutover

    For databases that cannot tolerate a long outage, the database team creates a publication on the source and a subscription on the PostgreSQL target, then lets the initial copy and ongoing changes catch up. Logical replication works between different major versions, so the target can run a newer release than the source. Monitor lag and replication errors daily, and confirm that sequences, large objects and schema changes are handled as the documentation describes. For smaller databases, a planned dump and restore is an acceptable alternative. The output is a replicated target that stays in sync with the source until cutover.

  6. Verify data and rehearse the cutover

    Before the production window, the team reruns reconciliation checks, confirms that application configuration points to the new endpoint in a staging environment, and rehearses the full switch, including connection string changes, job rescheduling and reporting repointing. The business owner signs off on acceptance criteria. The rehearsal should record the actual downtime measured, which is the figure to report rather than any estimate. The output is a rehearsal log with measured timings and a signed go decision.

  7. Cut over and keep a rollback path

    The team stops writes to the SQL Server source, lets replication drain, confirms that the final rows match, and switches application connection strings to PostgreSQL. The SQL Server 2016 instance stays read-only and intact, with its backups, so the team can reverse the direction of replication or repoint applications if a defect appears. Monitor error rates, slow queries and authentication failures during the first business cycle. The output is a confirmed production switch and a documented rollback decision point.

  8. Validate the target before retiring the source

    Once the business owners accept production behavior, the team runs backup restores, failover tests and a security review of authentication, TLS and audit logging on the PostgreSQL cluster. Only after these checks pass and the retention period agreed by compliance ends does the organization decommission SQL Server 2016 and remove its licenses or ESU purchases. Confirm with procurement and the licensing team that no renewal remains active. The output is a retirement record that the auditors and the finance team can both read.

Decision path and migration phases from SQL Server 2016 to PostgreSQL

The path starts with one question: can the application move to PostgreSQL in the planned window? If yes, the team inventories databases, objects and code, converts schema and application code, and builds the target PostgreSQL cluster in its own infrastructure. Data moves by logical replication or dump and restore, followed by validation of data and queries before cutover. If the application cannot move yet, the ESU or upgrade bridge keeps SQL Server supported while conversion proceeds, and it runs until cutover. Decommissioning follows only after validation and rollback plans are signed off.

Decision gate, parallel SQL Server bridge and the migration phases to cutover.

Which path fits which kind of workload

When your team owns the application code, the usual first path is to move the database to PostgreSQL, because you can change the data access layer, stored procedures and T-SQL on your own schedule. The work is mostly in translating T-SQL to PL/pgSQL, reviewing isolation and locking behavior, and testing query plans against realistic data volumes. A short bridge on a supported SQL Server release can still be useful while the code is reworked, and the duration of that bridge depends on how much logic lives in the database.

  • Inventory database code: List stored procedures, functions, triggers, jobs and linked server calls, and mark which ones use T-SQL features with no direct PostgreSQL equivalent.
  • Test data access paths: Run the application test suite against PostgreSQL in a staging environment and compare results and timing with the current system.
  • Plan the cutover method: Logical replication between PostgreSQL major versions can reduce downtime, but the application's change capture and sequence handling need to be proven first.
  • Decide the bridge: If a supported SQL Server release is needed during rework, confirm the license and support terms with your Microsoft account team before committing.
  • Assign code ownership: Name the people who will maintain queries and migrations after go-live.

Confirm the application's database driver versions, connection pooling setup and authentication method with your developers before you set the target date.

Evidence auditors and security teams ask for during the move

Whichever path you choose, the same handful of records will be requested by internal audit, the external auditor and your security team. Collecting them as the work happens is cheaper than rebuilding them afterward. DeployOpen can prepare this evidence, but auditors and certification bodies issue any report or attestation.

Version and support-date inventory

List every SQL Server 2016 instance, its edition, patch level, host, business owner and the support end date that applies to it. Add the target for each instance (upgrade, ESU enrollment or PostgreSQL) so auditors can see that no database is left without a decision. Refresh the inventory at each cutover wave, since instances tend to appear in old documentation and shadow environments. Ask your Microsoft account team to confirm the current ESU terms for each instance before you rely on them.

Decision record per database

For each database, record the chosen path (upgrade, ESU or PostgreSQL), the business and technical reasons, the people who approved it and the review date. Include the applications that depend on it and any features the database uses that do not map directly, such as T-SQL procedures or CLR code. A short record per database lets an auditor follow a single decision from the inventory to the outcome.

Authentication configuration evidence

Export the PostgreSQL authentication settings that show how users and services log in, such as pg_hba.conf entries and the password_encryption setting. Show that SCRAM is used rather than MD5, and document any directory-backed login through GSSAPI, LDAP or certificate authentication. Keep the configuration under version control so the approved state can be compared with the running state at any date. Confirm with your security team which methods they accept for each account type.

Authentication methods

Backup and point-in-time recovery test results

Store dated results from restore tests, not only backup job logs. Each test should restore a copy to a separate server, record the time taken, confirm row counts or checksums against the source, and show a point-in-time restore from archived WAL. A backup that has never been restored does not give auditors evidence that recovery works. Keep test records for each database in the migration scope.

Continuous archiving docs

Failover test results for the high availability design

Record the failover tests for the design you chose. PostgreSQL does not detect a failed primary or promote a standby by itself, so the record must name the external tool that does this and show what happened when the primary was stopped. Include whether replication was synchronous or asynchronous, the data loss expected from each, and the client reconnection behavior. Rerun the test after any change to the cluster.

Failover documentation

Cutover and rollback records

Document each cutover with the start and end times, the replication lag at switchover, the validation queries run against both sides and the sign-off from the application owner. Write the rollback plan with its trigger conditions and tested steps, and record whether the rollback was rehearsed. These records show that the change was controlled and that the organization could return to SQL Server 2016 if a defect appeared, within the window it had agreed.

Questions buyers ask before choosing a path

What does the cost of each path depend on?

The cost depends on which path you take and on what each one needs from your own budget. An upgrade costs the new SQL Server licenses, the hardware or cloud capacity that version needs, and the testing effort. Extended Security Updates cost licensing fees for each year of coverage, and those fees are set by Microsoft and your licensing terms, so confirm the current ESU pricing and eligibility with Microsoft or a licensing partner before you budget. A move to PostgreSQL has no license fee for the database itself, so its costs are one-time migration work, staff training, and support or managed services if you choose them. Ask every option for its recurring and one-time components in writing so the comparison is like for like.

How long does a migration to PostgreSQL take?

The duration depends mostly on the number and complexity of the databases, the amount of T-SQL and SQL Server-specific features in use, the size of the data, and how much downtime the business accepts. Tooling matters too: PostgreSQL's documentation states that logical replication works between different major versions, which can keep the cutover downtime to several seconds for suitable systems. Schema conversion, stored procedure rewrites, application query changes and testing usually take longer than the data copy itself. Inventory every database, linked server, SQL Agent job and application connection first, then ask for a timeline built from that inventory rather than from a generic estimate.

What do our DBAs and application owners need to contribute?

Your DBAs need to own the inventory, the performance baseline, the cutover plan and the rollback plan, and they need to learn PostgreSQL operations such as vacuuming, backups and upgrades. Application owners need to identify every query, driver, connection string and feature the application depends on, and they need to schedule test cycles with business users who can validate results. Security teams should review authentication, since PostgreSQL supports SCRAM, certificate, LDAP and other methods that must be mapped to your identity setup. Agree on these responsibilities in the scope document so nobody discovers an unowned task during cutover.

Can our team migrate without outside help?

Some teams can, particularly when they have experienced DBAs, a small number of simple databases and time to test. Others find that the risk sits in application code and in the features that do not map directly, such as SQL Server Agent jobs, SSIS packages or reporting subscriptions, which need separate work. Be honest about your team's capacity and PostgreSQL experience before deciding. If you want outside help, DeployOpen plans, implements, integrates, hardens, backs up, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts.

Does PostgreSQL meet our high availability and security needs?

PostgreSQL provides hot standby servers, synchronous and asynchronous replication, and point-in-time recovery through continuous archiving. It does not include software that detects a primary failure and promotes a standby, so automatic failover requires an external tool. Security features include SCRAM password authentication, certificate authentication, LDAP, GSSAPI and OAuth 2.0 in recent versions. Check each requirement against your availability target, recovery objectives and audit needs, then confirm that the tools you select satisfy them in your own environment before you commit.

Which PostgreSQL version should we target, and how long will it be supported?

Target a version that will still receive fixes for the length of your planning horizon. According to the PostgreSQL versioning policy, version 18 was first released September 25, 2025 and is supported until November 14, 2030, version 17 until November 8, 2029, version 16 until November 9, 2028, and version 15 until November 11, 2027. Version 14 is supported until November 12, 2026, so avoid it for a new migration. Confirm the current status of each version on the official versioning page before you finalize the target.

How do we get an accurate quote from a written scope?

Start with a written scope that lists every database, its size, its dependencies, the SQL Server features in use, the availability and recovery targets, the compliance evidence you need and the acceptance tests. Ask each provider to quote one-time work and recurring support separately, and to state what is excluded. DeployOpen does not publish a price list, and a quote follows from the written scope, so the more complete your inventory, the more precise the quote will be. Ask Microsoft or a licensing partner to confirm ESU and upgrade pricing for your exact server and core count, so the comparison uses current numbers.

How DeployOpen plans and deploys the PostgreSQL move

DeployOpen plans and deploys the move from SQL Server 2016 in your own infrastructure, with the decision between upgrading, buying Extended Security Updates and moving to PostgreSQL made against your applications, data and compliance evidence. The work runs as a fixed-scope engagement with written deliverables, followed by optional retainer support.

How we scope

  • We inventory the SQL Server 2016 instances, databases, T-SQL features, SQL Agent jobs and connected applications before recommending a path.
  • The written scope states which databases move, which stay on SQL Server, and which ESU or upgrade option applies to each.
  • We confirm with you and your vendors the support dates, licensing terms and extension tooling that apply to your environment.

How we build

  • We deploy PostgreSQL in your own cloud account, data center or air-gapped network, with high availability and backups designed to your recovery targets.
  • We convert or rewrite T-SQL, stored procedures and data types, and test the changed application code against copies of your data.
  • We use logical replication or pg_upgrade-style cutover planning where it fits, and document the expected downtime from rehearsals.

How we hand over

  • You receive architecture diagrams, runbooks, configuration records and the test results that show parity with the old database.
  • We set up SSO or directory-based authentication, access control and audit logging so your security and compliance teams can review the platform.
  • We deliver a retest of the security configuration and a handover session with your operations staff before the source system is retired.

How we support

  • Ongoing patching, PostgreSQL minor and major upgrades, backup testing and monitoring can be covered by a retainer.
  • Continuous security testing of the database and its applications is available as a retainer, scoped separately from the migration.
  • Compliance readiness support prepares the systems, controls and evidence for your assessors, while independent auditors issue any formal opinion.

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.