<!-- Generated from the rendered page by scripts/write-llm-mirrors.mjs. Do not edit by hand. -->
Canonical: https://molo17.com/solutions/replicate-to-cedardb/
Markdown mirror: https://molo17.com/solutions/replicate-to-cedardb/index.md
Title: Replicate to CedarDB in real time with Gluesync | MOLO17
Description: Real-time replication to CedarDB from Oracle, SQL Server, PostgreSQL, MySQL, and MongoDB, with direct COPY snapshots over the PostgreSQL wire protocol.

[Solutions](/solutions/)  Replicate to CedarDB

 SOLUTION · REPLICATE TO CEDARDB

# Real-time data replication to CedarDB from your operational databases

**Committed changes from your systems of record reach CedarDB continuously, after a snapshot loaded with one direct COPY per flush.**

Gluesync by MOLO17 captures changes from Oracle, SQL Server, PostgreSQL, MySQL, IBM i, MongoDB, and other [heterogeneous sources](/integrations/?target=CedarDB#integration-finder) with a dedicated agent per database. The CedarDB agent, available from Gluesync 2.3.3.0, writes them over the PostgreSQL 16 wire protocol that CedarDB speaks, through the built-in PostgreSQL JDBC driver. Core Hub, the Gluesync control plane, runs every pipeline from one web UI and REST API.

[Start a Gluesync trial](/get-gluesync/) [Talk to us](/contacts/)

WHO THIS IS FOR

## Teams that want CedarDB to follow their operational systems

-   Data engineers evaluating CedarDB for analytics on fresh data, who need its tables fed from Oracle, SQL Server, PostgreSQL, or MySQL continuously instead of by a one-off import
-   Platform leads who want one Core Hub for every source that feeds CedarDB, backed by [best-in-class enterprise support, rated 4.9/5 by customers](/support/#customer-ratings)
-   Architects who need large initial loads to finish quickly, and want the snapshot written with `COPY` straight into the target table
-   Engineers who keep PostgreSQL-compatible copies up to date with scripts today and want [every source](/integrations/?target=CedarDB#integration-finder) delivered to CedarDB by one product, with snapshots and monitoring built in

THE PROBLEM

## A CedarDB copy loaded once drifts from its source

Teams that bring data into CedarDB usually start with an export and an import, then find that the source keeps changing while the load runs. Scheduled extracts leave the copy behind the systems of record, every extract adds read load to production, and each source needs its own tooling. Teams looking for real-time CedarDB ingestion usually weigh Debezium with a Kafka sink, one-time import tools that speak the PostgreSQL protocol, or scripts their own team keeps running.

Gluesync addresses that with **per-agent CDC into CedarDB**. A source agent reads each database's native change log, journal, or change stream; Core Hub routes the changes; the CedarDB agent applies them after a snapshot seeds each table. Whether the source is Oracle, PostgreSQL, or IBM i, the pipeline model and the operations stay the same.

HOW IT WORKS

## How Gluesync writes to CedarDB

### The PostgreSQL target, adapted to CedarDB

CedarDB speaks the PostgreSQL 16 wire protocol, so the CedarDB agent is the Gluesync PostgreSQL target with CedarDB's connection defaults and with the parts of the write path that CedarDB changes. It connects through the built-in PostgreSQL JDBC driver, with TLS and connection pooling. When the connection is checked, the agent runs `SELECT version()` and fails with a clear message if the server is not CedarDB.

-   **Batch writes:** by default the agent uses `INSERT`, `INSERT ... ON CONFLICT DO UPDATE` (an upsert by key), and `DELETE`. CedarDB has no `MERGE`, and the agent does not need it.
-   **Decimals:** a decimal is bound as text and cast to the precision and scale of the column, so every digit is stored.
-   **Data types:** enum types, arrays, and `vector` columns are written.

### Direct COPY snapshots, staged CDC

Bulk operations are set per entity, for the snapshot and for change capture.

-   **Snapshot:** each flush is one transaction with one `COPY` straight into the target table, with no staging table and no second pass. MOLO17's benchmark measured the direct `COPY` at about twice the speed of staging the rows and merging them.
-   **Change capture:** changes are written to a staging table with `COPY` and merged into the target table, in one transaction per flush.
-   **Existing rows:** if the target already holds a key that a snapshot flush writes, the `COPY` is rolled back and the entity is loaded through the staging merge, which replaces rows by key.

### Write conflicts are retried for you

CedarDB never waits for a row that another transaction is writing: it fails at once with SQLSTATE `40001`. The agent runs every write transaction again in a fresh transaction, for up to six attempts with a growing delay. Writes are idempotent (upsert by key, delete by key, staging merge), so a retry does not duplicate rows.

### Tables created by the agent

Gluesync can create the target tables, as it does for any SQL target. They are the PostgreSQL tables, except for the types CedarDB lacks or limits: CedarDB holds at most 38 digits in a `numeric`, so a wider type is created as `text` holding the plain digits of each value, never rounded, with a warning that names the column. `TRUNCATE` before snapshot is supported for clean reloads.

### What your CedarDB admin sets up

The agent needs a user that can read and write the target tables and, for bulk operations, create the staging tables. Ask your MOLO17 contact for the full setup guide.

1.  Run CedarDB Community or Enterprise edition. The Community edition limits a database to 64 GiB and turns it read-only once the limit is exceeded, so size the target with that in mind.
2.  Create a user with permission to read and write the target tables and, for bulk operations, to create the staging tables.
3.  Allow Core Hub to reach CedarDB on port 5432, the default port.
4.  In Core Hub, enter the host, the database name (default `postgres`), the username, and the password. Turn on TLS, with Trust server certificate for CedarDB's self-signed certificate, when you want an encrypted connection.
5.  Keep the Max connections count of all pipelines that write to the same server below 100, the most connections CedarDB accepts.

[Explore the general CDC streaming architecture →](/solutions/cdc-streaming/)

WRITE OPTIONS

## The CedarDB target agent

CedarDB has one Gluesync target agent. Every Gluesync source agent can feed it. CedarDB cannot be a source: it has no logical replication, triggers, or time travel to read changes from.

| Agent | Write technique | Versions | Best for |
| --- | --- | --- | --- |
| CedarDB agent | Built-in PostgreSQL JDBC driver over the PostgreSQL wire protocol; batch upserts, direct `COPY` snapshots, and staged `COPY` merges for CDC | Tested against CedarDB v2026-10-08, which reports PostgreSQL 16.3 compatibility. Available from Gluesync 2.3.3.0 | Analytics on CedarDB fed from Oracle, SQL Server, PostgreSQL, MySQL, or MongoDB, where large snapshots should load fast and every source stays in sync under one Core Hub. |

SOURCES AND TOPOLOGIES

## Feed CedarDB from the databases you already run

Any Gluesync source agent can feed CedarDB. Open the [integrations finder with CedarDB pre-selected](/integrations/?target=CedarDB#integration-finder) to see every source you can pair with it.

One Core Hub runs PostgreSQL to CedarDB and Oracle to CedarDB side by side, with the same snapshot and monitoring for each. [MOLO17 Professional Services](/solutions/professional-services/) can help plan the rollout with your team.

-   PostgreSQL to CedarDB from the write-ahead log, with the same wire protocol on the target side: see [PostgreSQL CDC](/solutions/postgresql-cdc/)
-   Oracle to CedarDB from the redo logs, through LogMiner or XStream: see [Oracle CDC](/solutions/oracle-cdc/)
-   MySQL to CedarDB from the binlog: see [MySQL CDC](/solutions/mysql-cdc/)
-   SQL Server to CedarDB through Change Data Capture or Change Tracking: see [SQL Server CDC](/solutions/sql-server-cdc/)

FAIR, HIGH-LEVEL COMPARISON

## Where Gluesync fits among CedarDB ingestion approaches

| Approach | What buyers usually get | Where Gluesync fits |
| --- | --- | --- |
| Debezium, Kafka Connect, and a JDBC sink connector | Open-source capture into Kafka topics, loaded by a sink connector; you run Kafka, Connect, offsets, and schemas, and handle retries on write conflicts yourself | Changes applied to CedarDB tables by key with no Kafka cluster in the path, and write conflicts retried by the agent. See the [Debezium alternative](/solutions/debezium-alternative/) page |
| One-time import with PostgreSQL tools | Bulk movement of a snapshot; keeping the target current with a live source is a separate job you build and run | Gluesync seeds each table with a direct `COPY` snapshot and then keeps applying the source's changes, so the copy does not fall behind |
| Managed ELT services | Scheduled syncs from a connector catalog; CedarDB as a destination depends on the product | Agents you deploy next to each source, native capture per engine, and a dedicated CedarDB target under one Core Hub; see [migrating to Gluesync](/migrate-to-gluesync/) |
| DIY scheduled ELT and scripts | Full control; your team owns extract queries, staging, merge logic, retries, and the load each run puts on production | Log-based capture, snapshot seeding, and Core Hub monitoring without pipeline code to maintain; read [batch ETL vs real-time data replication](/blog/batch-etl-vs-real-time-data-replication/) |

RELATED CONTENT

## CedarDB replication research and implementation detail

-   [Batch ETL vs real-time data replication: how to choose](/blog/batch-etl-vs-real-time-data-replication/)
-   [Log-based CDC explained](/blog/real-time-replication-log-based-cdc/)
-   [Replicate to PostgreSQL](/solutions/replicate-to-postgresql/)
-   [Debezium alternative: managed CDC versus Kafka + Debezium](/solutions/debezium-alternative/)
-   [Bulk load ↗](https://docs.molo17.com/gluesync/latest/core-hub/bulk-load.html)

FAQ

## CedarDB replication questions

What does replicating to CedarDB with Gluesync involve?

A source agent captures committed changes from your database through its native change mechanism, Core Hub routes them, and the CedarDB agent applies them to CedarDB tables continuously after a snapshot seeds each table.

Is the CedarDB agent generally available?

The CedarDB agent is generally available from Gluesync 2.3.3.0.

How does Gluesync write data into CedarDB?

Through the built-in PostgreSQL JDBC driver over the PostgreSQL wire protocol. By default it writes with INSERT, INSERT ... ON CONFLICT DO UPDATE and DELETE. With bulk operations on, a snapshot is loaded with one direct COPY into the target table per flush, and CDC changes are staged with COPY and merged.

Can CedarDB be a source?

No. CedarDB has no logical replication, no triggers and no time travel, so there is nothing to read changes from. The agent is target only.

Which sources can replicate to CedarDB?

Any Gluesync source agent, including Oracle, SQL Server, PostgreSQL, MySQL, IBM Db2 for i, Db2 for LUW, SAP HANA, and MongoDB. The integrations finder on our website lists every pairing.

Which CedarDB versions are supported?

The integration tests run against CedarDB v2026-10-08, which reports itself as PostgreSQL 16.3 compatible. Community and Enterprise editions are supported; the Community edition limits a database to 64 GiB.

What happens when two writes conflict in CedarDB?

CedarDB fails a conflicting write at once with SQLSTATE 40001. The agent retries the transaction up to six times with a growing delay, and because writes are idempotent a retry does not duplicate rows.

REPLICATE TO A TARGET

## Other targets Gluesync delivers to

-    [Replicate to Aerospike](/solutions/replicate-to-aerospike/)
-    [Replicate to DynamoDB](/solutions/replicate-to-dynamodb/)
-    [Replicate to Redshift](/solutions/replicate-to-redshift/)
-    [Replicate to Amazon S3 & S3-compatible](/solutions/replicate-to-amazon-s3/)
-    [Replicate to Cassandra](/solutions/replicate-to-cassandra/)
-    [Replicate to CouchDB](/solutions/replicate-to-couchdb/)
-    [Replicate to Apache Iceberg](/solutions/replicate-to-apache-iceberg/)
-    [Replicate to Kafka](/solutions/replicate-to-kafka/)
-    [Replicate to Cosmos DB](/solutions/replicate-to-cosmos-db/)
-    [Replicate to Azure Data Lake](/solutions/replicate-to-azure-data-lake/)
-    [Replicate to ClickHouse](/solutions/replicate-to-clickhouse/)
-    [Replicate to CockroachDB](/solutions/replicate-to-cockroachdb/)
-    [Replicate to Couchbase](/solutions/replicate-to-couchbase/)
-    [Replicate to Databricks](/solutions/replicate-to-databricks/)
-    [Replicate to Elasticsearch and OpenSearch](/solutions/replicate-to-elasticsearch/)
-    [Replicate to file stores](/solutions/replicate-to-file-stores/)
-    [Replicate to BigQuery](/solutions/replicate-to-bigquery/)
-    [Replicate to Google Cloud Storage](/solutions/replicate-to-google-cloud-storage/)
-    [Replicate to Google Pub/Sub](/solutions/replicate-to-google-pubsub/)
-    [Replicate to Greenplum](/solutions/replicate-to-greenplum/)
-    [Replicate to GridGain](/solutions/replicate-to-gridgain/)
-    [Replicate to Db2](/solutions/replicate-to-db2/)
-    [Replicate to Informix](/solutions/replicate-to-informix/)
-    [Replicate to MariaDB](/solutions/replicate-to-mariadb/)
-    [Replicate to Microsoft Fabric](/solutions/replicate-to-microsoft-fabric/)
-    [Replicate to SQL Server](/solutions/replicate-to-sql-server/)
-    [Replicate to MongoDB](/solutions/replicate-to-mongodb/)
-    [Replicate to MySQL](/solutions/replicate-to-mysql/)
-    [Replicate to Neo4j](/solutions/replicate-to-neo4j/)
-    [Replicate to Oracle](/solutions/replicate-to-oracle/)
-    [Replicate to PostgreSQL](/solutions/replicate-to-postgresql/)
-    [Replicate to RavenDB](/solutions/replicate-to-ravendb/)
-    [Replicate to Redis](/solutions/replicate-to-redis/)
-    [Replicate to Redis Streams](/solutions/replicate-to-redis-streams/)
-    [Replicate to SAP ASE](/solutions/replicate-to-sap-ase/)
-    [Replicate to SAP HANA](/solutions/replicate-to-sap-hana/)
-    [Replicate to SAP SQL Anywhere](/solutions/replicate-to-sap-sql-anywhere/)
-    [Replicate to ScyllaDB](/solutions/replicate-to-scylladb/)
-    [Replicate to SingleStore](/solutions/replicate-to-singlestore/)
-    [Replicate to Snowflake](/solutions/replicate-to-snowflake/)
-    [Replicate to Solace PubSub+](/solutions/replicate-to-solace/)
-    [Replicate to Supabase](/solutions/replicate-to-supabase/)
-    [Replicate to Vertica](/solutions/replicate-to-vertica/)
-    [Replicate to WarehousePG](/solutions/replicate-to-warehousepg/)
-    [Replicate to YugabyteDB](/solutions/replicate-to-yugabytedb/)

## Evaluate Gluesync with your CedarDB database

Start a trial on your infrastructure, or talk to MOLO17 about your sources, the size of your initial loads, and how CedarDB fits your analytics stack.

[Start a Gluesync trial](/get-gluesync/) [Talk to MOLO17](/contacts/)
