Design, migration and performance for PostgreSQL databases

PostgreSQL consulting for businesses: we design the PostgreSQL databases of the applications we build, migrate to PostgreSQL from Oracle, SQL Server or MySQL, and fix performance problems in databases that are already in production.

PostgreSQL 18 the current stable version · No license fees per server or per core

PostgreSQL consulting: PostgreSQL logo surrounded by its extensions and tools, including JSONB, PostGIS, TimescaleDB, logical replication, pg_stat_statements, pgvector, Amazon RDS and Aurora, ora2pg and pgloader
// what-is-postgresql

What is PostgreSQL

PostgreSQL is an open-source relational database with more than thirty years of development. It was born at the University of California, Berkeley, and today it is maintained by a global community of developers and companies, under its own license, similar to BSD or MIT, which lets you use it without paying license fees.

It follows the SQL standard, protects data integrity with transactions, and supports JSON data, full-text search, geographic data with PostGIS and vectors for artificial intelligence with pgvector. It ships one major release a year, and each one gets fixes for five years.
  • Integrity: transactions, foreign keys and constraints that prevent inconsistent data from being saved.
  • Extensible: extensions such as PostGIS for maps, pgvector for AI or TimescaleDB for time series.
  • Managed or self-hosted: it runs on your own server or as a managed service on AWS (RDS and Aurora), Azure, Google Cloud or Supabase.
PostgreSQL database design in code: an orders table with a foreign key, a status check constraint, a JSONB column and a composite index, and the EXPLAIN ANALYZE plan showing an index scan in 0.084 ms
// when-it-fits

When we recommend PostgreSQL

For most of the applications we build, PostgreSQL is our default database. These are the cases where it adds the most value:
  • Oracle or SQL Server licenses that weigh on the budget every year and are used for an in-house application.
  • Old, unsupported databases, such as versions of MySQL, SQL Server or PostgreSQL itself that no longer receive patches.
  • Applications that mix relational and JSON data, which today are spread across several databases.
  • AI projects that need to search documents or products by meaning, with pgvector in the same database.
  • Slow databases that grew without indexes or maintenance, even if the engine stays the same.
Oracle to PostgreSQL migration: type and function mapping (NUMBER to bigint or numeric, VARCHAR2 to varchar, CLOB to text, SYSDATE to now(), NVL to coalesce, ROWNUM to LIMIT) and the terminal migrating schema and data with ora2pg and psql
// comparison

PostgreSQL vs MySQL vs SQL Server vs Oracle: how they differ

All four are mature relational databases. What changes is the licensing model, the features they include out of the box and the cost of running them in production.

PostgreSQL vs MySQL vs SQL Server vs Oracle comparison across five criteria. License: open source with no fees; open source (GPL) and a commercial edition; commercial per core with a limited free Express edition; commercial per processor or user. Data types: JSONB, arrays, ranges and custom types; JSON and standard types in MySQL and SQL Server; JSON, XML and object types in Oracle. Extensions: very broad (PostGIS, pgvector, TimescaleDB); plugins; none; paid options. Managed services: every major cloud and Supabase; every major cloud; Azure SQL, Amazon RDS and Google Cloud SQL; Oracle Cloud and Amazon RDS. Best fit: business applications, data and AI; websites with simple queries; Microsoft environments with licenses already paid; large systems that depend on Oracle
Download comparison

Indicative comparison. You can enlarge it, or download it and share it citing the source.

// services

Our PostgreSQL consulting services

PostgreSQL databases from start to finish: design, migration, performance and maintenance, within the applications we build or maintain.

Data model design

Tables, relationships, constraints and indexes designed for the application's real queries.

Migration to PostgreSQL

From Oracle, SQL Server or MySQL: schema, data, procedures and the application's queries.

Performance tuning

Analysis of slow queries with pg_stat_statements and EXPLAIN, indexes, partitioning and configuration tuning.

Vector search for AI

pgvector to search documents and products by meaning, alongside the rest of your data.

Managed PostgreSQL

Amazon RDS and Aurora, Supabase or your own server, with backups, replicas and alerts.

Upgrades and maintenance

Moving to supported versions, tested backups and permission reviews.

// migrate-to-postgresql

How we migrate a database to PostgreSQL

01

Inventory

We review tables, data types, stored procedures, triggers and the application's queries, and estimate the effort for each part.

02

Schema and code

We convert the schema with tools such as ora2pg or pgloader and manually adapt what doesn't translate on its own: procedures, functions and queries specific to the previous engine.

03

Dry run with real data

We migrate a copy of the data, compare row counts and totals, and test the application against PostgreSQL until everything matches.

04

Cutover and follow-up

We plan the cutover in an agreed window, with a rollback ready, and monitor performance during the first few weeks.

$ offing init tu-proyecto

Want to move to PostgreSQL, or is your database slow?

Tell us which database you use and what worries you. On the first call, with the person who will lead the project, we'll tell you whether it's worth migrating, optimizing the current one or both.

Book a call
// faq

Frequently asked questions about PostgreSQL

It is an open-source relational database with no license fees, known for its reliability, its compliance with the SQL standard and its extensions. It is used in business applications, SaaS platforms, systems with geographic data and artificial intelligence projects.

For business applications with many rules, reports or JSON data, we recommend PostgreSQL for its integrity, its data types and its extensions. MySQL works well for websites and applications with simple queries. If your application already runs on MySQL and works, we won't suggest changing it without a reason: we optimize and maintain it, as we explain on our MySQL page.

The main saving is in licenses, which don't exist in PostgreSQL. In return there is a migration cost that depends mostly on how much logic lives in stored procedures. In the initial audit we compare both costs over several years so you can decide based on data.

A database with little logic in procedures can be migrated in a few weeks. If there are hundreds of procedures or the application relies on features very specific to Oracle or SQL Server, the project is measured in months. The initial audit gives an estimate for your case.

We start by measuring: pg_stat_statements shows which queries take the most time, and EXPLAIN shows why. It is usually solved with indexes, rewritten queries, configuration tuning or maintenance (vacuum and statistics), without changing servers.

The current stable version is PostgreSQL 18. Each major version receives fixes for five years: PostgreSQL 14 stopped receiving them on November 12, 2026, and PostgreSQL 15 will in November 2027. If you are on an earlier version, it's worth planning the upgrade.

Yes. With the pgvector extension it stores vectors and searches by similarity, so an AI assistant can find the relevant documents or products without setting up another database. It works well with the AI agents and MCP servers we build.

For most companies, a managed service such as Amazon RDS or Aurora reduces the work of backups, upgrades and replicas. Your own server makes sense with special data residency requirements or with volumes that make it cheaper. On AWS you can use the Spain region; we explain it on our AWS and Cloudflare infrastructure page.

Almost always with a short, planned downtime. If the application can't stop, both engines can be kept in sync with replication tools such as AWS DMS, and the cutover done in minutes.

Yes, for the databases of the applications we build or maintain: performance, backups, version upgrades and permission reviews, within the same application maintenance contract.