Neon vs PostgreSQL

Neon: Preview environments and serverless apps on Postgres.; PostgreSQL: The default database for new products.

FieldNeonPostgreSQL
PricingFree tierOpen source
Open sourceYesYes
EcosystemLanguage-agnosticLanguage-agnostic
LicenseApache-2.0PostgreSQL License
CategoryDatabases & ORMsDatabases & ORMs

Choose PostgreSQL over Neon when

Choose it when you want to run your own PostgreSQL server and control which release and extensions you deploy.

The PostgreSQL project distributes source code and packages for running a database server (PostgreSQL downloads). A database administrator uses CREATE EXTENSION to load extensions whose supporting files are installed on the server (extension documentation). You can choose a backup approach from SQL dumps, file-system backups and continuous archiving (backup documentation).

SourceChecked 29 November 2026

Choose Neon over PostgreSQL when

Choose it when you want a managed PostgreSQL service that can branch a database for each preview or test environment.

Neon is a managed PostgreSQL service with branch-specific connection strings (connection guide). You can create a child branch from an existing database state to test schema or data changes in isolation (branching documentation). Compute can suspend after inactivity and resume when a connection arrives (scale-to-zero documentation).

SourceChecked 29 November 2026

Neon

Serverless Postgres with autoscaling, scale-to-zero and instant database branching.

Choose Neon if

Preview environments and serverless apps on Postgres.

Why it’s here

Neon runs managed PostgreSQL with separate compute and storage layers. A compute endpoint runs queries for a branch, while the storage layer retains database history independently (architecture documentation). That design lets Neon create a branch from an existing database state using copy-on-write storage, then run queries on the two branches independently (architecture documentation, branching documentation).

Pick it when

  • Each preview or test environment needs representative schema and data. Create a child branch from a parent and use the child's connection details so schema changes and test writes stay on that branch (branching documentation, connection guide).
  • Traffic is intermittent and your app can tolerate waking an idle database. Neon can suspend inactive compute and resume it when a client connects (scale-to-zero documentation).
  • Your application opens many concurrent connections. The Connect dialog offers a pooled connection string as well as a direct endpoint, so clients can choose the connection type their workload needs (connection guide).

Skip it when

  • Your operations require host access, a PostgreSQL superuser or custom tablespaces. Neon provides a managed role with elevated permissions and does not expose the host or support CREATE TABLESPACE (compatibility documentation).
  • Every request needs an already warm database on the Free plan. Its five-minute inactivity window is fixed. Paid plans can disable scale-to-zero (scale-to-zero documentation).

Current state

Neon made PostgreSQL 19 available on 2026-11-19 and its compatibility guide identifies PostgreSQL 18 as the default for new projects (Neon changelog, compatibility documentation). The Neon CLI's latest published version is 9.10.0, dated 2026-11-26 (npm version and publish history). The Neon source repository uses Apache 2.0 (licence).

Setup

In the Neon Console, open a project and choose Connect. Select the branch, database and role, then copy the connection string for your PostgreSQL client or application driver (connection guide).

Pricing

Free is $0 and includes 100 compute unit hours and 1 GB of database storage per project. Launch is usage-based at $0.106 per compute unit hour and $0.35 per GB-month of database storage. Scale is usage-based at $0.222 per compute unit hour and $0.35 per GB-month of database storage (Neon pricing).

Watch out for

Idle connections can close and lose session state, so an application that depends on it must restore it when reconnecting (compatibility documentation). On Free, exhausting a project's monthly compute or data transfer allowance suspends its compute until the next billing period or an upgrade (pricing FAQ).

Neon on GitHub

PostgreSQL

A mature, open-source relational database known for reliability, standards compliance and a rich extension ecosystem.

Choose PostgreSQL if

The default database for new products.

Why it’s here

PostgreSQL is a relational database server with transactions, constraints and indexes. It also has a jsonb data type, so an application can store records with a defined schema alongside documents whose shape varies, then query both with SQL (PostgreSQL overview, JSON documentation). The database uses multiversion concurrency control so queries see a snapshot of the data while other transactions are running (concurrency documentation).

Pick it when

  • Several application processes share the same transactional data. PostgreSQL's multiversion concurrency control allows ordinary readers and writers to proceed without taking locks that conflict with each other (concurrency documentation).
  • You need to filter documents by keys, values or paths. PostgreSQL can index jsonb with GIN, and the documentation describes which query operators each GIN operator class supports (JSON indexing).
  • You want to add database capabilities through extensions. Once the extension's supporting files are installed on the server, CREATE EXTENSION loads it into the current database. Check which privileges it requires before choosing how to deploy it (extension documentation).

Skip it when

  • Your application needs an embedded SQL database that travels with a local file. PostgreSQL uses a server that clients connect to, and the setup guide creates databases on that running server (database creation tutorial).
  • You cannot operate backups and upgrades for a self-managed service. PostgreSQL documents several backup methods, and major upgrades require a migration step for the data directory (backup documentation, versioning policy).

Current state

PostgreSQL 19.0 was released on 2026-11-19. The project supports each major version for five years (PostgreSQL 19 release notes, versioning policy). PostgreSQL uses the PostgreSQL License (licence text).

Setup

Install the package listed for your operating system. With a running server and a role allowed to create databases, run createdb mydb (downloads, database creation tutorial).

Watch out for

A major upgrade requires a dump and reload or pg_upgrade. A minor upgrade typically involves replacing the binaries and restarting the server. Check the release notes for any extra steps before applying either kind of upgrade (versioning policy). A dump, a file-system backup and continuous archiving have different recovery properties, so choose based on what you need to restore (backup documentation).