---
title: "Deploy PostgreSQL with Wal2Json Plugin"
description: "A quick setup for PostgreSQL including the Wal2Json Plugin in the template"
category: "Storage"
url: https://railway.com/deploy/FcaxSv
---

# Deploy PostgreSQL with Wal2Json Plugin

A quick setup for PostgreSQL including the Wal2Json Plugin in the template

**[Deploy PostgreSQL with Wal2Json Plugin on Railway](https://railway.com/template/FcaxSv)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/FcaxSv/manifest.json

- **Creator:** Message IT
- **Category:** Storage
- **Total deploys:** 3

## Template content

### PostgreSQL-With-Wal2Json https://devicons.railway.app/PostgreSQL

- **Source:** nMessage/Meilisync-on-railway

## Documentation

A PostgreSQL deployment template for Railway, enabling quick setup with the Wal2Json plugin.

For more details about the Wal2Json plugin -> https://github.com/eulerto/wal2json

**About Wal2Json**

PostgreSQL records all changes—INSERTs, UPDATEs, and DELETEs—in a log called the Write-Ahead Log (WAL). This log ensures database consistency and allows for replication and recovery. However, WAL data is stored in a format optimized for internal database operations, not direct consumption.

Wal2Json bridges this gap by **converting WAL changes into structured JSON output**, making it easier for applications to process database updates in real time. This is especially useful for data replication, change auditing, event-driven architectures, and streaming data to external systems. The plugin works by using logical decoding, allowing applications to read database changes without requiring full physical replication.

Depending on configuration, UPDATE and DELETE operations can include previous row versions, making it possible to track before-and-after states of data changes. Changes can be consumed via logical replication slots for continuous streaming or queried directly using a SQL API.

## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.

Open this page in a browser: https://railway.com/deploy/FcaxSv
