Docs/Connections/Cloud Databases

Neon PostgreSQL Guide

Use this page when your PostgreSQL source or target is hosted in Neon.

This guide keeps the Neon-specific parts of the setup in one place:

  • project and branch connection details
  • required SSL behavior
  • Neon logical replication enablement for CDC source workflows

For the core workflow split, use:

Base setup

  1. Open the Neon Console.
  2. Select the project and branch that DBConvert Streams should use.

Neon Create Project

  1. Copy the PostgreSQL connection details.

Neon Connection Details

  1. Confirm the DBConvert Streams deployment can reach the Neon endpoint on port 5432.

Typical connection pattern:

postgres://user:[email protected]/dbname?sslmode=require

In DBConvert Streams, use the endpoint host, port 5432, username, password, database, and set SSL mode to require.

Pasting the connection string into Quick fill populates the fields for you.

SSL requirements

Neon connections are SSL-oriented by default. Treat TLS as required unless your Neon setup explicitly documents something different.

In practice:

  • enable SSL/TLS in the DBConvert Streams connection
  • use a verification mode that matches your certificate policy
  • test the connection before creating a stream

Open the SSL tab and set SSL Mode to Require. No certificate files are needed for a standard Neon connection.

CDC source preparation

If Neon is only a Load source or a target, the base PostgreSQL connection setup is enough.

If Neon is the CDC source, you must also enable logical replication in Neon first.

Typical flow:

  1. Open the Neon project settings.
  2. Enable logical replication for the project or branch.

Enable Logical Replication in Neon

  1. Confirm the chosen user has the privileges required by the PostgreSQL CDC workflow.
  2. Then complete the remaining steps in PostgreSQL CDC Source Configuration.

After enabling logical replication, verify:

SELECT name, setting
FROM pg_settings
WHERE name IN (
  'wal_level',
  'max_replication_slots',
  'max_wal_senders'
);

Check Replication Settings

DBConvert Streams reports the same state in its own UI. Open the database in Data Explorer — the CDC readiness card shows WAL_LEVEL, available replication slots, and WAL senders, and the connection carries a Neon badge.

Create the CDC stream

With logical replication enabled and the connection tested, the remaining steps happen in DBConvert Streams:

  1. Create a new stream and select the Neon connection as the source.
  2. On the Structure and Data step, set the Data Transfer Mode to Stream (Change Data Capture). If the option is disabled, wal_level is still replica — return to CDC source preparation.
  3. Choose which Capture Events to replicate and select the tables.
  4. Leave Initial Load + CDC selected to copy existing rows before change capture begins. Clear it if the stream should carry only changes made after it starts.
  5. Under Write mode, use Upsert — it matches rows by primary key, so replayed events do not duplicate data.
  1. Select the target connection and start the stream.

Neon keeps compute active while a replication slot has a connected consumer, so a running CDC stream prevents scale to zero. Budget for that before leaving a stream running against a Neon source.

Validation checklist

  1. Test the Neon connection from the Data Explorer sidebar (right-click → Test connection) or from the connection editor. If TLS fails, confirm SSL mode is set to require — Neon does not allow unencrypted connections.
  2. Open it in Data Explorer to confirm visible schemas and tables.
  3. If the workflow uses CDC, run SHOW wal_level and confirm it returns logical. If it shows replica, logical replication is not enabled in the Neon project settings.
  4. After Neon branch resets, compute restarts, or project-level changes, re-test the connection — Neon can reset replication state on these events.