wal2mongo
PostgreSQL logical decoding output plugin for MongoDB
wal2mongo : PostgreSQL logical decoding output plugin for MongoDB
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9640 | wal2mongo | wal2mongo | 1.0.7 |
ETL | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s---- | No | Yes | No | No | no | no |
| Relationships | |
|---|---|
| See Also | wal2json decoderbufs test_decoding pgoutput decoder_raw pgmqtt kafka_fdw pgq pg_protobuf pgproto |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.7 |
18 17 16 15 14 | wal2mongo |
- |
| RPM | PGDG | 1.0.7 |
18 17 16 15 14 | wal2mongo_$v |
- |
| DEB | PIGSTY | 1.0.7 |
18 17 16 15 14 | postgresql-$v-wal2mongo |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| el8.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| el9.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| el9.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| el10.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| el10.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 | PGDG 1.0.7 |
| d12.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| d12.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| d13.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| d13.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u22.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u22.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u24.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u24.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u26.x86_64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
| u26.aarch64 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 | PIGSTY 1.0.7 |
Source
github.com/HighgoSoftware/wal2mongo
wal2mongo-1.0.7.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
This extension does not need CREATE EXTENSION DDL command
Usage
wal2mongo: PostgreSQL logical decoding output plugin for MongoDB
A logical decoding output plugin that formats PostgreSQL WAL changes as MongoDB-compatible commands, enabling data replication from PostgreSQL to MongoDB.
Configuration
In postgresql.conf:
Using with SQL Functions
Using with pg_recvlogical
Replicating to MongoDB
The output can be applied directly in the MongoDB shell:
Or save to a .js file and import:
Output Format
- INSERT:
db.<table>.insertOne( { <columns> } ) - UPDATE:
db.<table>.updateOne( { <key> }, { $set: { <changes> } } ) - DELETE:
db.<table>.deleteOne( { <key> } )
Tables need a primary key or replica identity for UPDATE/DELETE operations to be captured.