Diagram: data flowing from a SQL Server database into a PostgreSQL database, with a check mark for verified data

Case study · Database migration

Moving a production data warehouse from SQL Server to PostgreSQL

The client ran a production data warehouse on Microsoft SQL Server. We moved it to self-managed PostgreSQL, with the same data and the same reports. Then we compared every table on both systems before calling it done. The work covered database migration, data verification and reporting.

The problem

SQL Server is licensed per processor core, and the license bill grows every time the hardware grows. This warehouse mostly stored data and served reports. That is work an open-source database does well.

The real risk in a database move is not the move itself. It is silent damage: wrong totals, doubled rows and shifted dates that pass a quick look and turn up weeks later.

What we built

We moved the warehouse onto self-managed PostgreSQL. Same data, same reports.

There was no all-at-once cutover. The old SQL Server stayed online, read-only, as a fallback until the new system was proven.

PostgreSQL runs on any cloud or hardware, so the warehouse is not tied to one vendor.

How we proved it

We didn't stop at moving the data. We compared every table on both systems and ran the reports side by side. The result was zero differences.

We also found and closed a quieter trap: data that could double if a load ran twice. To prove the fix, we loaded the data a second time and confirmed the row counts never moved.

This table-by-table method is the core of our Migration and reconciliation proof.

The result

  • Every table checked against the old system, with zero differences.
  • The database license cost is now $0. PostgreSQL is open source.
  • One report that used to run for hours now finishes in under a second.
  • The warehouse can run on any cloud or hardware the client chooses.

What the client kept

A production warehouse on PostgreSQL, serving the same reports its people already used. No license ties it to a vendor, and the client owns the database, the code and the data.

Planning a database move? Tell us about it.

← All case studies